/* Product Modal Styles - From PRODUCTS_INDEX.html */

:root {
    --td1-lilac: #C1A2FF;
    --td1-purple: #B38DFF;
    --text-primary: #EAEAEA;
    --text-secondary: #A0A0A0;
}

.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.product-modal.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

.modal-product-icon {
    font-size: 72px;
    margin-bottom: 24px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(193, 162, 255, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.modal-product-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, white, var(--td1-lilac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-product-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.modal-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.modal-tab {
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-tab:hover {
    background: rgba(193, 162, 255, 0.1);
    border-color: rgba(193, 162, 255, 0.3);
    color: var(--text-primary);
}

.modal-tab.active {
    background: linear-gradient(135deg, var(--td1-lilac), var(--td1-purple));
    border-color: var(--td1-lilac);
    color: white;
    box-shadow: 0 4px 20px rgba(193, 162, 255, 0.3);
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.modal-section {
    background: rgba(15, 25, 40, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--td1-lilac);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-section-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-section-content p {
    margin-bottom: 16px;
    font-size: 16px;
}

.modal-section-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
}

.modal-section-content li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
}

.modal-section-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
    font-size: 18px;
}

.pricing-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.pricing-tier-modal {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-tier-modal:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(193, 162, 255, 0.2);
    border-color: rgba(193, 162, 255, 0.4);
}

.pricing-tier-name-modal {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pricing-tier-price-modal {
    font-size: 36px;
    font-weight: 800;
    color: var(--td1-lilac);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--td1-lilac), var(--td1-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-tier-features-modal {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.pricing-tier-features-modal div {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.pricing-tier-features-modal div::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--td1-lilac);
    font-weight: 700;
}

.buy-button {
    width: 100%;
    padding: 14px 24px;
    margin-top: 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.buy-button.contact-sales {
    background: linear-gradient(135deg, var(--td1-lilac) 0%, var(--td1-purple) 100%);
}

.buy-button.contact-sales:hover {
    box-shadow: 0 8px 24px rgba(193, 162, 255, 0.4);
}

.buy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Demo Mode Styles */
.demo-mode-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-mode-btn:hover {
    background: rgba(193, 162, 255, 0.1);
    border-color: rgba(193, 162, 255, 0.3);
    color: var(--text-primary);
}

.demo-mode-btn.active {
    background: linear-gradient(135deg, var(--td1-lilac), var(--td1-purple));
    border-color: var(--td1-lilac);
    color: white;
    box-shadow: 0 4px 12px rgba(193, 162, 255, 0.3);
}

.demo-mode-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.demo-mode-panel.active {
    display: block;
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.screenshot-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(193, 162, 255, 0.3);
    border-color: var(--td1-lilac);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* Video Player */
.video-player-container {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-player-container video {
    width: 100%;
    max-height: 600px;
    display: block;
}

/* File Browser (GitHub-style) */
.file-browser {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-top: 24px;
}

.file-browser-header {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.file-search {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 14px;
}

.file-search:focus {
    outline: none;
    border-color: var(--td1-lilac);
    background: rgba(193, 162, 255, 0.1);
}

.file-view-toggle {
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-view-toggle:hover {
    background: rgba(193, 162, 255, 0.1);
    border-color: var(--td1-lilac);
}

.file-tree {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.file-tree-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.file-tree-item:hover {
    background: rgba(193, 162, 255, 0.1);
    color: var(--text-primary);
}

.file-tree-item.active {
    background: rgba(193, 162, 255, 0.2);
    color: var(--td1-lilac);
    font-weight: 600;
}

.file-tree-item.folder {
    font-weight: 600;
}

.file-icon {
    font-size: 16px;
}

.file-content {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    background: rgba(0, 0, 0, 0.5);
    max-height: 500px;
    overflow-y: auto;
}

.file-content pre {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    background: transparent;
}

.file-content code {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

.file-content .file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.file-content .file-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.file-content .file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Live Demo Container */
.live-demo-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal-tabs {
        flex-direction: column;
    }
    .modal-tab {
        width: 100%;
        text-align: center;
    }
    .pricing-grid-modal {
        grid-template-columns: 1fr;
    }
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
    .file-browser-header {
        flex-direction: column;
    }
}

