@import url('https://fonts.googleapis.com/css2?family=Helvetica+Neue:wght@300;400;700;900&display=swap');

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.2;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 2px solid #000000;
    padding-bottom: 20px;
}

.title-section h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title-section .subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666666;
}

.info-block {
    text-align: right;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
}

.info-block .date {
    font-weight: 700;
    margin-bottom: 5px;
}

/* Categories */
.category-system {
    margin-bottom: 40px;
}

.category-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #000000;
}

.category-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    margin-bottom: 20px;
}

.category-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.category-item {
    background: #ffffff;
    border: 1px solid #000000;
    padding: 15px 20px;
    cursor: pointer;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.1s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item:hover:not(:disabled) {
    background: #f0f0f0;
}

.category-item.active {
    background: #000000;
    color: #ffffff;
    font-weight: 700;
}

.category-item:disabled {
    background: #f8f8f8;
    border-color: #e0e0e0;
    cursor: default;
}

/* Main content grid */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.item-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
}

.item-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    text-decoration: none;
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
    transition: all 0.1s ease;
}

.item-link:hover {
    background: #000000;
    color: #ffffff;
    padding: 2px 6px;
}

/* Images */
.item-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.item-image {
    border: 1px solid #000000;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Specs */
.specs-section {
    border-left: 2px solid #000000;
    padding-left: 30px;
}

.specs-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.specs-grid {
    display: grid;
    gap: 15px;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 8px;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666666;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 400;
}

/* Navigation */
.navigation-system {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    border-top: 2px solid #000000;
    padding-top: 30px;
}

.nav-button {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 15px 30px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.nav-button:hover:not(:disabled) {
    background: #000000;
    color: #ffffff;
}

.nav-button:disabled {
    background: #f5f5f5;
    color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}

.counter-display {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.counter-display .current {
    font-size: 3rem;
    font-weight: 900;
    display: block;
    line-height: 0.8;
}

.counter-display .total {
    font-size: 0.8rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #999999;
}

/* Loading / Error */
.loading-state {
    text-align: center;
    padding: 100px 20px;
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #666666;
}

.error-state {
    background: #000000;
    color: #ffffff;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #cccccc;
    display: flex;
    gap: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer a {
    color: #666666;
    text-decoration: none;
}

.site-footer a:hover {
    color: #000000;
}

/* Legal pages */
.legal-content {
    max-width: 640px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.legal-content h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 10px;
}

.legal-content a {
    color: #000000;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-block {
        text-align: left;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .specs-section {
        border-left: none;
        border-top: 2px solid #000000;
        padding-left: 0;
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .title-section h1 {
        font-size: 3rem;
    }

    .item-images {
        grid-template-columns: 1fr;
    }

    .item-image {
        aspect-ratio: 16 / 9;
    }

    h2 {
        font-size: 1.8rem;
    }

    .navigation-system {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .nav-button {
        width: 100%;
    }

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

    .site-footer {
        flex-direction: column;
        gap: 10px;
    }
}
