/* Project Showcase Page Styles */
/* Supplements the base styles.css */

:root {
    --success-green: #38a169;
    --pp-nav-height: 58px;
}

[data-theme="dark"] {
    --success-green: #68d391;
}

/* ── Nav ── */
.pp-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--illini-blue);
    border-bottom: 3px solid var(--illini-orange);
    padding: 0.9rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .pp-nav {
    background: #0a1628;
}

.pp-nav .pp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
    white-space: nowrap;
}

.pp-back-link:hover {
    color: white;
    border-color: var(--illini-orange);
    transform: translateX(-3px);
}

.pp-nav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.pp-nav-brand .bracket {
    color: var(--illini-orange);
}

/* ── Container ── */
.pp-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Hero ── */
.pp-hero {
    position: relative;
    background: linear-gradient(135deg, #060e1c 0%, var(--illini-blue-dark) 35%, var(--illini-blue) 70%, var(--illini-blue-light) 100%);
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}

.pp-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pp-hero-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--illini-orange);
}

.pp-hero-circle-1 {
    width: 560px;
    height: 560px;
    top: -220px;
    right: -120px;
    opacity: 0.055;
}

.pp-hero-circle-2 {
    width: 320px;
    height: 320px;
    bottom: -120px;
    left: -80px;
    opacity: 0.04;
}

.pp-hero-inner {
    position: relative;
    z-index: 1;
}

.pp-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pp-hero-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pp-hero-stat {
    background: rgba(232, 74, 39, 0.15);
    border: 1px solid rgba(232, 74, 39, 0.45);
    color: #ffab94;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pp-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.7rem, 4.5vw, 2.75rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    max-width: 820px;
}

.pp-hero-overview {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    max-width: 740px;
    margin-bottom: 1.75rem;
}

.pp-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.pp-hero-tags .tag {
    background: rgba(232, 74, 39, 0.12);
    border: 1px solid rgba(232, 74, 39, 0.35);
    color: #ffab94;
    font-size: 0.77rem;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.pp-hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.pp-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.5rem;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.pp-hero-btn-primary {
    background: var(--illini-orange);
    color: white;
    box-shadow: 0 4px 18px rgba(232, 74, 39, 0.4);
}

.pp-hero-btn-primary:hover {
    background: var(--illini-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 7px 24px rgba(232, 74, 39, 0.5);
}

.pp-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.pp-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    transform: translateY(-2px);
}

/* ── Media Section ── */
.pp-media-section {
    background: var(--bg-secondary);
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pp-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.pp-video-wrap iframe,
.pp-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pp-img-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    background: var(--bg-tertiary);
}

.pp-media-img {
    max-width: 100%;
    max-height: 520px;
    width: 100%;
    object-fit: contain;
    display: block;
}

/* ── Links Bar ── */
.pp-links-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.pp-links-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.pp-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 7px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.pp-link-github {
    background: var(--illini-blue);
    color: white;
}

.pp-link-github:hover {
    background: var(--illini-blue-light);
    transform: translateY(-2px);
}

.pp-link-pdf {
    background: transparent;
    color: var(--illini-orange);
    border-color: var(--illini-orange);
}

.pp-link-pdf:hover {
    background: var(--illini-orange);
    color: white;
    transform: translateY(-2px);
}

.pp-link-demo {
    background: var(--illini-orange);
    color: white;
}

.pp-link-demo:hover {
    background: var(--illini-orange-dark);
    transform: translateY(-2px);
}

/* ── Content Sections ── */
.pp-content-section {
    background: var(--bg-primary);
    padding: 3rem 0 5rem;
}

.pp-section {
    margin-bottom: 1.75rem;
    padding: 2rem 2.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--illini-orange);
    box-shadow: var(--shadow);
}

.pp-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--illini-blue);
    margin-bottom: 0.9rem;
}

[data-theme="dark"] .pp-section h3 {
    color: #e8935a;
}

.pp-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.2rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.82rem;
}

.pp-section p {
    color: var(--text-secondary);
    line-height: 1.72;
    margin-bottom: 0.7rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.96rem;
}

.pp-section ul,
.pp-section ol {
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
}

.pp-section li {
    color: var(--text-secondary);
    line-height: 1.68;
    margin-bottom: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.96rem;
}

.pp-section strong {
    color: var(--text-primary);
}

.pp-section .tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.pp-section .tech-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}

/* Results table dark mode overrides */
.pp-section table {
    border-radius: 8px;
    overflow: hidden;
}

[data-theme="dark"] .pp-section table tbody tr {
    background: transparent !important;
}

[data-theme="dark"] .pp-section table tbody tr:nth-child(even) {
    background: var(--bg-tertiary) !important;
}

[data-theme="dark"] .pp-section table td {
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .pp-section table th {
    border-color: var(--border-color) !important;
}

/* PDF buttons inside sections */
.pp-section .project-pdf-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pp-section .pdf-view-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--illini-orange);
    border: 2px solid var(--illini-orange);
    background: transparent;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pp-section .pdf-view-button:hover {
    background: var(--illini-orange);
    color: white;
    transform: translateY(-2px);
}

/* ── Footer ── */
.pp-footer {
    background: var(--illini-blue);
    padding: 4rem 0;
    text-align: center;
}

[data-theme="dark"] .pp-footer {
    background: #060e1c;
}

.pp-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.pp-footer-inner > p {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
}

.pp-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--illini-orange);
    color: white;
    padding: 0.875rem 2.25rem;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 18px rgba(232, 74, 39, 0.4);
}

.pp-footer-btn:hover {
    background: var(--illini-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 7px 24px rgba(232, 74, 39, 0.5);
}

.pp-footer-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
}

.pp-footer-brand .bracket {
    color: rgba(232, 74, 39, 0.6);
}

/* ── Page Loading ── */
.page-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-color);
    border-top-color: var(--illini-orange);
    border-radius: 50%;
    animation: pp-spin 0.75s linear infinite;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .pp-hero {
        padding: 3.5rem 0 3rem;
    }

    .pp-section {
        padding: 1.5rem 1.25rem;
    }

    .pp-nav .pp-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pp-links-grid {
        justify-content: flex-start;
    }

    .pp-section table {
        font-size: 0.82rem;
    }

    .pp-section table th,
    .pp-section table td {
        padding: 0.5rem !important;
    }

    .pp-footer {
        padding: 3rem 0;
    }
}
