/* ==========================================
   PROJECT PAGE STYLES
   ========================================== */

/* === Reset & Base (shared) === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
}

:root {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #0d5c56;
    --accent: #f59e0b;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --gradient-1: linear-gradient(135deg, #0f766e, #14b8a6);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Project Nav === */
.project-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.project-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
}

.project-nav a {
    transition: var(--transition);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-light);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-logo span {
    color: var(--primary-light);
}

/* === Project Hero === */
.project-hero {
    padding: 140px 24px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.project-hero .tag {
    display: inline-block;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary-light);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.project-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.project-hero .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-light);
}

/* === Project Image Banner === */
.project-banner {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.banner-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-darker));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.banner-placeholder .project-image-banner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    object-fit: fill;
}

.banner-placeholder i {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 16px;
}

.banner-placeholder p {
    font-size: 1rem;
}

/* === Project Body === */
.project-body {
    padding-bottom: 80px;
}

.project-body h2 {
    font-size: 1.6rem;
    margin: 48px 0 16px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.project-body h2 i {
    color: var(--primary-light);
    margin-right: 10px;
}

.project-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.project-body ul {
    margin-bottom: 20px;
    padding-left: 0;
}

.project-body ul li {
    color: var(--text-secondary);
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.7;
}

.project-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* Highlight Cards */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: var(--primary);
}

.highlight-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    display: block;
}

.highlight-card .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 24px;
}

.tech-stack .tech-tag {
    padding: 8px 20px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

/* Code Block */
.code-block {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.code-block .comment {
    color: var(--text-muted);
}

.code-block .keyword {
    color: #c084fc;
}

.code-block .string {
    color: #86efac;
}

.code-block .function {
    color: #93c5fd;
}

/* Results table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.results-table th,
.results-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.results-table th {
    background: var(--bg-card);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.results-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA */
.project-cta {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.project-cta h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.project-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

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

/* Footer */
.project-footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.project-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 2rem;
    }

    .project-meta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .banner-placeholder {
        height: 250px;
    }

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

@media (max-width: 480px) {
    .project-hero h1 {
        font-size: 1.6rem;
    }

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