/* =======================================
   JohnnyLM Webshop Styles
   Fully responsive layout
   Full-width footer with cookie banner
   Perfect centering on desktop and mobile
   All comments in English
======================================= */

/* =======================
   Root Variables
======================= */
:root {
    --accent-color: #1E90FF;
    --bg-color: #000000;
    --text-color: #cccccc;
    --heading-color: #eeeeee;
    --card-bg: #1a1a1a;
    --form-bg: #222222;
    --footer-bg: #222222;
    --background-image: url('../images/JLM_Albums.png');
}

/* Light Theme Overrides */
html[data-theme="light"] {
    --bg-color: #f4f6f8;
    --text-color: #222222;
    --heading-color: #111111;
    --card-bg: #fdfdfd;
    --form-bg: #f5f5f5;
    --footer-bg: #eaeaea;
}

/* =======================
   Global Layout
======================= */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =======================
   Header
======================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: url('../../assets/images/JLM_Banner.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    z-index: 1000;
}

    header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: inherit;
        filter: brightness(0.6);
        z-index: -1;
    }

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container img {
    height: 50px;
    margin-right: 10px;
}

.site-name {
    color: var(--accent-color);
    font-size: 1.5em;
    font-weight: bold;
}

/* =======================
   Navigation
======================= */
.nav-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

    .nav-menu ul li {
        margin-left: 30px;
    }

        .nav-menu ul li a {
            color: var(--accent-color);
            font-weight: bold;
            text-decoration: none;
            transition: 0.3s ease;
        }

            .nav-menu ul li a:hover {
                color: #ffffff;
                background-color: rgba(30,144,255,0.1);
                border-radius: 4px;
            }

/* Hamburger Menu (Mobile) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

    .hamburger-menu .bar {
        width: 30px;
        height: 4px;
        background-color: var(--accent-color);
        border-radius: 10px;
    }

/* Responsive Navigation */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 110px;
        right: 0;
        width: 200px;
        background-color: rgba(34,34,34,0.95);
        flex-direction: column;
        padding: 20px;
    }

        .nav-menu.open {
            display: flex;
        }

            .nav-menu.open ul {
                flex-direction: column;
            }

                .nav-menu.open ul li {
                    margin-left: 0;
                    margin-bottom: 20px;
                }
}

/* =======================
   Main Content
======================= */
main {
    margin-top: 70px; /* Matches header height */
    padding: 0 20px;
    flex: 1; /* Pushes footer to bottom */
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--heading-color);
    margin: 0;
    padding-top: 20px;
    text-align: left;
}

/* =======================
   Album Grid
======================= */
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    margin-bottom: 40px;
}

.album-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    width: 100%;
    max-width: 250px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

    .album-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .album-card h3 {
        color: var(--text-color);
        font-size: 1.1em;
        margin: 5px 0;
    }

    .album-card p {
        color: var(--accent-color);
        font-weight: bold;
        margin: 0;
    }

/* Responsive Grid */
@media (max-width: 1200px) {
    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: 1fr;
    }
}

/* =======================
   Footer (Full Width, Perfect Center)
======================= */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    width: 100%;
    flex-shrink: 0;
    padding: 20px 30px;
}

.footer-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontal centering */
    justify-content: center; /* Vertical centering if multiple items */
    gap: 10px;
    box-sizing: border-box;
    text-align: center; /* fallback for inline text */
}

/* Footer copyright text */
.footer-text {
    margin: 0;
    line-height: 1.5;
    white-space: nowrap; /* Keep on one line desktop */
}

/* Cookie banner inside footer */
#cookie-banner {
    display: none;
    white-space: nowrap; /* Keep on one line desktop */
    word-break: break-word; /* wrap long words on mobile */
}

    #cookie-banner a {
        color: var(--accent-color);
        text-decoration: underline;
    }

    #cookie-banner button {
        margin-left: 10px;
        padding: 6px 14px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        background: var(--accent-color);
        color: #ffffff;
        font-size: 0.9rem;
    }

/* =======================
   Mobile Adjustments
======================= */
@media (max-width: 768px) {
    .footer-inner {
        padding: 0 15px;
        align-items: center; /* ensure horizontal centering */
    }

    .footer-text,
    #cookie-banner {
        white-space: normal; /* allow wrapping */
        word-break: break-word;
        max-width: 100%; /* prevent overflow */
    }

    #cookie-banner {
        font-size: 0.9rem;
    }

        #cookie-banner button {
            display: inline-block;
            margin-top: 8px;
            margin-left: 0;
        }
}
