:root {
    --primary-color: #0d0d0d;
    --accent-color: #d4af37; /* Złoty akcent - główny kolor linków */
    --secondary-color: #222;
    --light-bg: #0a0a0a;
    --text-dark: #d0d0d0;
    --text-light: #888;
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #f0f0f0;
    background-color: var(--light-bg);
    font-size: 16px;
    letter-spacing: 0.3px;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   HEADER I LOGO
   ============================================ */
header {
    background: #0d0d0d;
    color: #888;
    padding: 20px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.animated-logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #bbb;
    text-transform: uppercase;
    animation: slideInDown 0.8s ease-out, glow 4s ease-in-out infinite;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.1); }
    50% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(212, 175, 55, 0.5); }
}

/* ============================================
   NAWIGACJA (BAZA)
   ============================================ */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-toggle {
    display: none;
    background-color: transparent;
    border: 1px solid #333;
    color: #777;
    padding: 8px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: #1a1a1a;
    border-color: #555;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu a {
    display: block;
    color: #888;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

/* ============================================
   GŁÓWNY UKŁAD
   ============================================ */
main {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
}

/* HERO BANNER */
.hero {
    background: #111;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero.static-hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    line-height: 1.3;
    padding-top: 5px;
    padding-bottom: 5px;
}

.hero p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Przycisk w Hero */
.btn-hero {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 30px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 4px;
}

.btn-hero:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* WONDERS PREVIEW (KARTY) */
.wonders-preview {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.wonder-card {
    background: #0f0f0f;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    height: 250px;
}

.wonder-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.85;
}

.wonder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    z-index: 10;
}

.wonder-card:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.wonder-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    padding-top: 50px;
    margin: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    text-align: left;
}

.wonder-card a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.wonder-card a:hover {
    color: var(--accent-color);
}

/* ============================================
   STYLE LINKÓW (Nowe)
   ============================================ */
/* Linki w treści (nie menu) będą złote */
.info-section p a,
.interesting-facts li a,
footer p a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.5); /* Delikatne podkreślenie */
    transition: all 0.3s ease;
    font-weight: 500;
}

.info-section p a:hover,
.interesting-facts li a:hover,
footer p a:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ============================================
   SEKCJE TREŚCI
   ============================================ */
.info-section, .video-section, .music-section, .form-container {
    background: #0f0f0f;
    padding: 35px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    border-left: 3px solid #222;
}

.info-section h2, .video-section h2, .music-section h2, .form-container h2 {
    color: #999;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    font-size: 24px;
    letter-spacing: 1px;
}

.info-section h3 { color: #777; margin-top: 30px; margin-bottom: 15px; font-size: 18px; }
.info-section p { color: #888; margin-bottom: 15px; font-size: 15px; line-height: 1.9; }

/* Tabela */
.wonders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #0a0a0a;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.wonders-table th, .wonders-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
    color: #888;
}
.wonders-table thead { background: #151515; color: #aaa; text-transform: uppercase; font-size: 0.9rem; }
.wonders-table tbody tr:hover { background-color: #111; }

/* Listy */
.interesting-facts { list-style: none; padding: 0; }
.interesting-facts li { padding: 10px 0 10px 35px; position: relative; color: #888; }
.interesting-facts li:before {
    content: "➤"; position: absolute; left: 0; color: var(--accent-color); font-size: 12px; top: 13px;
}

/* Multimedia */
video, audio { border-radius: var(--border-radius); width: 100%; outline: none; }

/* Mapa */
.map-container {
    width: 100%; height: 400px; border-radius: var(--border-radius); overflow: hidden; margin: 25px 0;
    border: 1px solid #222;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* Linki wewnętrzne (lewa kolumna) */
.internal-nav {
    background: #0f0f0f; padding: 25px; border-radius: var(--border-radius);
    border-top: 3px solid #222; text-align: center; position: sticky; top: 100px;
}
.internal-nav h3 { color: #777; margin-bottom: 15px; font-size: 14px; text-transform: uppercase; }
.internal-nav a {
    display: block; margin-bottom: 8px; padding: 12px; background: #0a0a0a;
    color: #666; text-decoration: none; border: 1px solid #1a1a1a; border-radius: 4px;
    transition: 0.2s; font-size: 13px;
}
.internal-nav a:hover { background: #1a1a1a; color: var(--accent-color); border-color: var(--accent-color); }

/* Galeria w treści */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
.gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--border-radius); cursor: zoom-in; opacity: 0.8; transition: 0.3s; }
.gallery img:hover { opacity: 1; }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.95);
    align-items: center; justify-content: center;
}
.modal img { max-width: 90%; max-height: 90%; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }

/* Formularz */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #999; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px; border: 1px solid #222; border-radius: 4px;
    background: #080808; color: #ccc; font-family: inherit; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-color); outline: none; }
.form-buttons { display: flex; gap: 15px; justify-content: flex-start; margin-top: 30px; }
.btn { padding: 12px 25px; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; letter-spacing: 0.5px; }
.btn-submit { background: var(--accent-color); color: #000; }
.btn-submit:hover { background: #b8962e; }
.btn-reset { background: #222; color: #888; }
.btn-reset:hover { background: #333; color: #fff; }

/* Footer */
footer {
    background: #0a0a0a; color: #555; text-align: center; padding: 40px 20px; margin-top: 60px; border-top: 1px solid #1a1a1a;
}
/* Linki w footerze są już obsłużone przez regułę wyżej */

/* ============================================
   MEDIA QUERIES - RESPANSYWNOŚĆ
   ============================================ */

/* 1. TELEFONY (poniżej 600px) */
@media (max-width: 599px) {
    .hide-mobile { display: none !important; }
    .hide-tablet { display: block; }

    .page-grid { display: block; }
    .sidebar, .left-col { display: none; }

    .hero.static-hero { height: 300px; margin-bottom: 20px; }
    .hero h2 { font-size: 2rem; }

    .menu-toggle { display: block; margin: 0 auto; }
    .nav-menu {
        display: flex;
        flex-direction: column;
        background-color: #111;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        width: 100%;
        position: absolute;
        left: 0;
        top: 100%;
    }
    .nav-menu.active { max-height: 600px; border-bottom: 2px solid var(--accent-color); }
    .nav-menu li { width: 100%; text-align: center; border-bottom: 1px solid #1a1a1a; }
    .nav-menu a { padding: 15px; }

    .wonder-card { display: none; }
    .wonder-card:nth-child(-n+3) { display: block; }
}

/* 2. TABLETY (600px - 1199px) */
@media (min-width: 600px) and (max-width: 1199px) {
    .hide-tablet { display: none !important; }
    .hide-mobile { display: block; }

    .page-grid {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
    .sidebar { display: none; }
    .page-grid .main-content:first-child { grid-column: 1 / -1; }

    .hero.static-hero { height: 350px; }

    .menu-toggle { display: none; }
    .nav-menu {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .nav-menu a {
        background: #151515;
        border-radius: 50px;
        padding: 10px 20px;
        font-size: 13px;
        border: 1px solid #333;
    }
    .nav-menu a:hover, .nav-menu a.active {
        background: var(--accent-color);
        color: #000;
        border-color: var(--accent-color);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }
}

/* 3. DESKTOP (powyżej 1200px) */
@media (min-width: 1200px) {
    .hide-mobile, .hide-tablet { display: block; }
    .menu-toggle { display: none; }

    .nav-menu {
        display: flex;
        justify-content: flex-end;
        gap: 25px;
    }
    .nav-menu a {
        background: transparent;
        border: none;
        padding: 10px 0;
        position: relative;
        font-size: 15px;
    }
    .nav-menu a::after {
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: width 0.3s;
        position: absolute;
        bottom: 0;
        left: 0;
    }
    .nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

    .page-grid {
        display: grid;
        grid-template-columns: 250px 1fr 320px;
        gap: 35px;
        align-items: start;
    }
    
    .left-col { grid-column: 1; }
    .main-content { grid-column: 2; }
    .sidebar { grid-column: 3; }

    .page-grid .main-content:first-child {
        grid-column: 1 / 3;
    }
}