/* ============================================
   DIGITAL ATELIER - Case Study CSS
   Project Detail Page Styles
   ============================================ */

/* === Project Navigation === */
.project-nav {
    background: transparent !important;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--duration-normal) var(--ease-out);
}

.nav-back svg {
    width: 20px;
    height: 20px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.nav-back:hover {
    color: var(--accent);
}

.nav-back:hover svg {
    transform: translateX(-4px);
}

/* === Project Hero === */
.project-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 77, 77, 0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-meta-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.meta-item {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.meta-divider {
    color: var(--text-muted);
}

.project-title-hero {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0 0 var(--space-md) 0;
    width: 100%;
    text-align: center;
}

.project-title-hero .title-line {
    display: block;
    overflow: hidden;
}

.project-title-hero .title-line:first-child {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s forwards;
}

/* Hero liquid logos */
.about-hero-logo,
.project-hero-logo {
    height: clamp(60px, 12vw, 120px);
    width: auto;
    max-width: 90vw;
    display: block;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s forwards;
}

.project-title-hero .title-line.accent {
    color: var(--accent);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.project-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-cta-project {
    margin-top: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.7s forwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-hover);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0; top: 20px; }
}

/* === Project Sections === */
.project-section {
    padding: var(--space-2xl) var(--space-lg);
}

.section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
    max-width: var(--container-width);
    margin: 0 auto;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    position: sticky;
    top: calc(var(--nav-height) + var(--space-md));
}

/* Overview Section */
.overview-intro {
    margin-bottom: var(--space-xl);
}

.intro-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.overview-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.detail-block {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.detail-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.detail-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
}

.status-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* === Full Width Media === */
.full-width-media {
    padding: 0 var(--space-lg);
    margin: var(--space-xl) 0;
}

.media-placeholder {
    width: 100%;
    aspect-ratio: 21/9;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent, #059669) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.2);
}

/* === Media Grid === */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-lg);
    max-width: var(--container-width);
    margin: 0 auto;
}

.media-item {
    border-radius: 16px;
    overflow: hidden;
}

.media-item .media-placeholder {
    aspect-ratio: 4/3;
}

.media-wide {
    grid-column: span 2;
}

.media-wide .media-placeholder {
    aspect-ratio: 21/9;
}

/* === Process Steps === */
.process-step {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.3;
    line-height: 1;
    min-width: 80px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Tech Section === */
.tech-section {
    background: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all var(--duration-normal) var(--ease-out);
}

.tech-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.tech-icon {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    transition: color var(--duration-normal) var(--ease-out);
}

.tech-item:hover .tech-icon {
    color: var(--accent);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 500;
}

/* === Results Section === */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.result-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.result-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.results-quote {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: 16px;
    border-left: 4px solid var(--accent);
}

.results-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.results-quote cite {
    display: flex;
    flex-direction: column;
    font-style: normal;
}

.results-quote cite strong {
    font-size: 1rem;
    font-weight: 600;
}

.results-quote cite span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Next Project === */
.next-project {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg-secondary);
}

.next-project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.next-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.next-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: color var(--duration-normal) var(--ease-out);
}

.next-project-link:hover .next-title {
    color: var(--accent);
}

.next-arrow {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    opacity: 1;
    transition: all var(--duration-normal) var(--ease-out);
}

.next-project-link:hover .next-arrow {
    transform: translateY(-50%) translateX(10px);
}

.next-arrow svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .sidebar-title {
        position: static;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .next-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: var(--space-lg) var(--space-md);
    }

    .project-section {
        padding: var(--space-xl) var(--space-md);
    }

    .project-meta-hero {
        flex-wrap: wrap;
    }

    .overview-details {
        grid-template-columns: 1fr;
    }

    .project-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-grid {
        grid-template-columns: 1fr;
        padding: var(--space-lg) var(--space-md);
    }

    .media-wide {
        grid-column: span 1;
    }

    .process-step {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .step-number {
        font-size: 2rem;
        min-width: auto;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .full-width-media {
        padding: 0 var(--space-md);
    }
}