/* ppuzzle.net - Evolved Minimal Sidebar / Cool Grays / Glitch Art */
/* Colors: #F5F5FA, #E8E8EE, #B8B8CA, #6A6A7A, #6A6A78, #3A3A4A, #1A1A2A, #E84040 */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 400;
    color: #1A1A2A;
    background: #F5F5FA;
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: #E8E8EE;
    border-right: 1px solid rgba(26,26,42,0.08);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(26,26,42,0.06);
}

.sidebar-logo {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2A;
    letter-spacing: 0.05em;
}

.sidebar-logo-ext {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #E84040;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6A6A7A;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-left: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.sidebar-link:hover {
    color: #1A1A2A;
    background: rgba(26,26,42,0.04);
}

.sidebar-link.active {
    color: #1A1A2A;
    border-left-color: #3A3A4A;
    background: rgba(26,26,42,0.04);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(26,26,42,0.06);
}

.sidebar-version {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    color: #B8B8CA;
    letter-spacing: 0.05em;
}

/* Main Content */
.main {
    margin-left: 200px;
    flex: 1;
    min-height: 100vh;
}

/* Top Bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245,245,250,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(26,26,42,0.06);
    padding: 0 32px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #3A3A4A;
    display: block;
}

.topbar-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6A6A78;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.topbar-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3A3A4A;
}

.status-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6A6A78;
    letter-spacing: 0.06em;
}

/* Hero */
.hero {
    padding: 80px 32px 40px;
    border-bottom: 1px solid rgba(26,26,42,0.06);
}

.hero-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: #1A1A2A;
    letter-spacing: 0.02em;
    position: relative;
}

.hero-title.glitch-active {
    animation: glitch 0.1s steps(2) forwards;
}

@keyframes glitch {
    0% { transform: translate(0); clip-path: inset(0 0 0 0); }
    25% { transform: translate(-3px, 1px); clip-path: inset(20% 0 40% 0); }
    50% { transform: translate(2px, -1px); clip-path: inset(50% 0 10% 0); }
    75% { transform: translate(-1px, 2px); clip-path: inset(10% 0 60% 0); }
    100% { transform: translate(0); clip-path: inset(0 0 0 0); }
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #6A6A7A;
    margin-top: 12px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.3s forwards;
}

.hero-line {
    width: 40px;
    height: 2px;
    background: #3A3A4A;
    margin-top: 24px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    padding: 32px;
}

/* Cards */
.card {
    background: #E8E8EE;
    border: 1px solid rgba(26,26,42,0.06);
    border-radius: 4px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    box-shadow: 0 4px 20px rgba(26,26,42,0.08);
}

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

.card-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6A6A78;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.card-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A1A2A;
    margin-bottom: 8px;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #6A6A7A;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(26,26,42,0.06);
}

.meta-item {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #B8B8CA;
}

.meta-sep {
    color: #B8B8CA;
    font-size: 0.75rem;
}

/* Stats */
.card-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(26,26,42,0.06);
}

.stat-value {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A2A;
    display: block;
}

.stat-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #B8B8CA;
    letter-spacing: 0.08em;
}

/* Data Rows */
.data-rows {
    margin-top: 16px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(26,26,42,0.04);
}

.data-key {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6A6A78;
    letter-spacing: 0.06em;
}

.data-val {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #1A1A2A;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(58,58,74,0.08);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer */
.footer {
    padding: 40px 32px;
    text-align: center;
}

.footer-line {
    width: 40px;
    height: 1px;
    background: #B8B8CA;
    margin: 0 auto 16px;
}

.footer-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    color: #B8B8CA;
    letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main {
        margin-left: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px;
    }
    .card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .card-wide {
        grid-column: span 1;
    }
    .hero {
        padding: 60px 24px 32px;
    }
}
