/* Project Preview Styles */
.project-preview {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0f1e 0%, #131b2e 50%, #0a0f1e 100%);
    position: relative;
}

.project-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(20, 184, 166, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.project-description {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #fca5a5;
    font-size: 0.9rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-notice svg {
    color: #ef4444;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.project-info {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.info-section {
    margin-bottom: 2rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: #cbd5e1;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #14b8a6;
    font-weight: bold;
}

/* Screenshots Section */
.screenshots-section {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.screenshots-section h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    background: rgba(51, 65, 85, 0.3);
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-2px);
}

.screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #64748b;
    text-align: center;
    padding: 1rem;
}

.screenshot-placeholder p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* iframe Section */
.iframe-section {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.iframe-section h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
    background: #0f172a;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #cbd5e1;
    z-index: 2;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.iframe-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #cbd5e1;
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.iframe-error p {
    margin-bottom: 1.5rem;
    color: #94a3b8;
}

.btn-fullscreen {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-fullscreen:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .project-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .iframe-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .project-preview {
        padding: 6rem 0 2rem;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .project-info,
    .screenshots-section,
    .iframe-section {
        padding: 1.5rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .iframe-container {
        height: 300px;
    }
}

/* Header adjustments for project pages */
.header .nav .btn-fullscreen {
    margin-left: 1rem;
}
