/* ===========================
   SE KÒB POU GENYEN — Style
   =========================== */

/* Variables */
:root {
    --black: #000000;
    --black-soft: #0B0B0B;
    --black-card: #101010;
    --gold: #D4AF37;
    --gold-light: #F0C95A;
    --gold-dark: #B88A24;
    --white: #FFFFFF;
    --gray: #A7A7A7;
    --gray-light: #D4D4D4;
    --border: #242424;
    --radius: 16px;
    --radius-pill: 100px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* Container */
.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

/* ===========================
   Header
   =========================== */
.site-header {
    padding: 48px 0 24px;
    text-align: center;
}

.site-header .logo {
    display: inline-block;
    width: 180px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* ===========================
   Hero
   =========================== */
.hero {
    text-align: center;
    padding: 48px 0 56px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.7rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero-title .gold-text {
    color: var(--gold);
}

.hero-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.hero-description strong {
    color: var(--white);
}

.hero-description .gold-text {
    color: var(--gold);
}

/* ===========================
   Navigation
   =========================== */
.category-nav-wrapper {
    padding: 0 0 56px;
}

.category-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.category-button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.category-button.active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* ===========================
   Resources
   =========================== */
.resources-section {
    padding-bottom: 72px;
}

.resources-section .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--gray-light);
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.resource-card {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.resource-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin: -6px 0 0;
}

.resource-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.resource-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.resource-country {
    font-size: 0.75rem;
    color: var(--gray);
}

.resource-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.resource-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.resource-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.resource-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

.resource-price.free {
    color: var(--gold-light);
}

.resource-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.2s ease;
}

.resource-link:hover {
    color: var(--gold);
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--gray);
    font-size: 1.05rem;
}

/* ===========================
   Section divider
   =========================== */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ===========================
   About
   =========================== */
.about-section {
    padding: 72px 0;
    text-align: center;
}

.about-section .section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.about-section .section-text {
    max-width: 650px;
    margin: 0 auto 32px;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.about-link:hover {
    color: var(--gold-light);
}

/* ===========================
   Contact
   =========================== */
.contact-section {
    padding: 72px 0;
    text-align: center;
}

.contact-section .section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.contact-section .section-subtitle {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 550px;
    margin-inline: auto;
    line-height: 1.6;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--black-card);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    display: none;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 6px;
}

.form-error.visible {
    display: block;
}

.submit-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    color: var(--black);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.submit-button:hover {
    opacity: 0.9;
}

.submit-button:active {
    opacity: 0.8;
}

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

.footer-brand {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--gray);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===========================
   Responsive — Tablet (≥ 640px)
   =========================== */
@media (min-width: 640px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-header {
        padding: 56px 0 32px;
    }
}

/* ===========================
   Responsive — Desktop (≥ 960px)
   =========================== */
@media (min-width: 960px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-header {
        padding: 64px 0 40px;
    }
}

/* ===========================
   Reduced motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================
   Focus visible
   =========================== */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ===========================
   Selection
   =========================== */
::selection {
    background: var(--gold);
    color: var(--black);
}
