/* --- GLOBAL STYLES & TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #0d1a26;
    --secondary-color: #1a3a59;
    --accent-color: #00aaff;
    --text-color: #e0e0e0;
    --header-font: 'Orbitron', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--header-font);
    color: #fff;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

section {
    padding: 6rem 0;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 26, 38, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.main-header.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--header-font);
    padding: 0.5rem;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,.lang-switcher a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.lang-switcher a {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('/images/cosmic_battle.png') no-repeat center center/cover;
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 26, 38, 0.7);
}

#hero * {
    z-index: 2;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 170, 255, 0.8);
}

#hero p {
    font-size: 1.5rem;
    font-style: italic;
    max-width: 800px;
}

/* --- AVAILABLE NOW SECTION --- */
#available-now {
    background-color: var(--secondary-color);
}

.available-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.book-cover img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.book-details h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.btn-buy {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    font-family: var(--header-font);
    font-size: 1.2rem;
    text-transform: uppercase;
    border-radius: 5px;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

/* --- SAGA SECTION --- */
.saga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.saga-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
}

.saga-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- ABOUT SECTION --- */
#author {
    background-color: var(--secondary-color);
}

.author-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.author-photo img {
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
}

/* --- UNIVERSE SECTION --- */
.universe-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* --- CONTACT & FOOTER --- */
#contact {
    text-align: center;
}

.main-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    background: var(--secondary-color);
    border-top: 1px solid rgba(0, 170, 255, 0.2);
}

/* --- POLISH VERSION SPECIFIC --- */
.books-grid-pl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.book-item-pl {
    background: var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.book-item-pl h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.book-item-pl iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.purchase-links {
    margin-top: auto;
}

.purchase-links h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.btn-store {
    display: block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1rem;
    margin: 0.5rem auto;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    width: 80%;
    transition: background-color 0.3s ease;
}

.btn-store:hover {
    background-color: #0077b3;
    color: #fff;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    #hero h1 { font-size: 2.8rem; }
    #hero p { font-size: 1.2rem; }

 .main-header.container { flex-direction: column; }
 .main-nav ul { flex-direction: column; margin-top: 1rem; }
 .main-nav ul li { margin: 0.5rem 0; }

 .available-content,.author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
 .book-cover,.author-photo {
        margin: 0 auto 2rem;
    }

 .universe-gallery {
        grid-template-columns: 1fr;
    }
}