/* ========================================
   Post Page Specific Styles
   ======================================== */

/* Hero Banner */
.post-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.post-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    opacity: 0.9;
}

.post-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.post-date {
    opacity: 0.7;
}

.post-hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.post-hero-subtitle {
    font-size: 1.75rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Decorative Graphics */
.post-hero-graphic {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    opacity: 0.1;
    pointer-events: none;
}

.graphic-circle,
.graphic-square,
.graphic-triangle {
    position: absolute;
    background: white;
}

.graphic-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.graphic-square {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 30%;
    transform: rotate(45deg);
    animation: float 10s ease-in-out infinite 1s;
}

.graphic-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid white;
    top: 40%;
    right: 5%;
    animation: float 12s ease-in-out infinite 2s;
}

/* Post Content Container */
.post-content {
    background: var(--color-background);
}

.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Content Blocks */
.content-block {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.content-block:nth-child(1) { animation-delay: 0.1s; }
.content-block:nth-child(2) { animation-delay: 0.2s; }
.content-block:nth-child(3) { animation-delay: 0.3s; }
.content-block:nth-child(4) { animation-delay: 0.4s; }
.content-block:nth-child(5) { animation-delay: 0.5s; }

.alt-block {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.highlight-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--color-accent);
}

.block-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.block-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.block-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.block-content strong {
    color: var(--color-accent);
    font-weight: 700;
}

.block-content em {
    font-style: italic;
    color: var(--color-secondary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Step List */
.step-list {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--color-text-light);
    margin: 0;
}

/* Tech Stack */
.tech-stack {
    background: var(--color-surface);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--color-border);
}

.tech-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    font-weight: 600;
}

.tech-value {
    font-weight: 600;
    color: var(--color-primary);
}

/* Code Showcase */
.code-showcase {
    background: #2c3e50;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.code-header {
    background: #1a252f;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.code-language {
    color: #4a90e2;
}

.code-showcase pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-showcase code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e8e8e8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Blockquote */
.student-quote {
    background: white;
    border-left: 4px solid var(--color-accent);
    padding: 2rem;
    margin: 3rem 0;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    border-radius: 0 8px 8px 0;
}

.student-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 1rem;
    color: var(--color-text-light);
    font-family: var(--font-mono);
}

/* Future List */
.future-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.future-list li {
    padding: 1rem 0 1rem 2.5rem;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

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

.future-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 700;
}

.future-list strong {
    color: var(--color-accent);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 4rem;
    border-radius: 16px;
    text-align: center;
    margin: 4rem 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 3rem 0;
    border-top: 2px solid var(--color-border);
    margin-top: 4rem;
}

.nav-back, .nav-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-back:hover, .nav-next:hover {
    color: var(--color-accent-light);
    transform: translateX(-4px);
}

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

.nav-arrow {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .post-hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .post-hero-title {
        font-size: 2.5rem;
    }
    
    .post-hero-subtitle {
        font-size: 1.25rem;
    }
    
    .post-hero-graphic {
        display: none;
    }
    
    .post-container {
        padding: 2rem 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}
