/* ===================================
   RATS WARS - 1970s/80s Space Opera Theme
   Authentic retro sci-fi aesthetic
   =================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Classic Star Wars poster color palette */
    --color-gold: #FFD700;
    --color-yellow: #FFC600;
    --color-orange: #FF6B00;
    --color-red: #D32F2F;
    --color-cyan: #00FFFF;
    --color-blue: #1E90FF;
    --color-dark-blue: #001a4d;
    --color-navy: #000032;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray: #999999;

    /* Typography */
    --font-display: 'Bebas Neue', 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Orbitron', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-black);
    color: var(--color-gold);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* === BACKGROUND EFFECTS === */

/* Film grain overlay */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain 0.5s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    30% { transform: translate(3%, -15%); }
    50% { transform: translate(12%, 9%); }
    70% { transform: translate(9%, 4%); }
    90% { transform: translate(-1%, 7%); }
}

/* Starfield */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: var(--color-white);
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 1000;
    opacity: 0.3;
}

/* === CONTAINER === */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    text-align: center;
    padding: 60px 20px 50px;
    background: linear-gradient(180deg,
        rgba(0, 0, 50, 0.9) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    border: 4px solid var(--color-gold);
    border-radius: 3px;
    margin-bottom: 20px;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.4),
        inset 0 0 60px rgba(255, 215, 0, 0.1),
        0 0 100px rgba(255, 107, 0, 0.2);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-gold), var(--color-orange), var(--color-gold));
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

.logo-container {
    position: relative;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    max-width: 98%;
    width: 1200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 40px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 60px rgba(0, 0, 0, 0.4));
}

.tagline {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    color: var(--color-cyan);
    letter-spacing: 0.3em;
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--color-cyan);
    font-weight: 400;
}

.subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-white);
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === TOYS SECTION === */
.toys-section {
    border-color: var(--color-orange);
    box-shadow:
        0 0 40px rgba(255, 107, 0, 0.4),
        inset 0 0 30px rgba(255, 107, 0, 0.05);
}

.toys-section::before {
    background: linear-gradient(90deg,
        transparent,
        var(--color-orange),
        var(--color-gold),
        var(--color-orange),
        transparent
    );
    opacity: 0.8;
}

.toys-section-header {
    margin-bottom: 25px;
}

.toys-title {
    font-size: clamp(3rem, 9vw, 6.5rem) !important;
    color: var(--color-orange) !important;
    text-shadow:
        0 0 20px var(--color-orange),
        0 0 40px var(--color-gold),
        4px 4px 0px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 15px;
}

.toys-header-line {
    background: linear-gradient(90deg,
        transparent,
        var(--color-orange),
        var(--color-gold),
        var(--color-orange),
        transparent
    );
    width: 300px;
    height: 4px;
}

.toys-wave-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-black);
    background: linear-gradient(135deg, var(--color-gold), var(--color-orange));
    padding: 8px 35px;
    border-radius: 3px;
    margin-top: 15px;
    letter-spacing: 0.2em;
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.7),
        0 0 50px rgba(255, 107, 0, 0.4);
    animation: toy-badge-pulse 2s ease-in-out infinite;
}

@keyframes toy-badge-pulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.7), 0 0 50px rgba(255, 107, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.9), 0 0 70px rgba(255, 107, 0, 0.6);
        transform: scale(1.03);
    }
}

.toys-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    overflow: hidden;
}

.toy-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid var(--color-orange);
    background: var(--color-black);
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(255, 107, 0, 0.3),
        0 0 40px rgba(255, 107, 0, 0.1);
    min-width: 0;
    width: 100%;
}

.toy-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-gold);
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.6),
        0 15px 40px rgba(255, 107, 0, 0.5);
}

.toy-item img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    transition: transform 0.4s ease;
}

.toy-item:hover img {
    transform: scale(1.05);
}

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

/* === FEATURED SHIP === */
.featured-ship {
    text-align: center;
    margin: 40px auto;
    padding: 30px;
    max-width: 900px;
    background: linear-gradient(135deg,
        rgba(0, 0, 50, 0.7) 0%,
        rgba(0, 0, 30, 0.6) 100%
    );
    border: 3px solid var(--color-cyan);
    border-radius: 5px;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
}

.ship-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.ship-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 255, 255, 0.3);
}

/* === SECTIONS === */
.section {
    background: linear-gradient(135deg,
        rgba(0, 0, 50, 0.8) 0%,
        rgba(0, 0, 30, 0.7) 100%
    );
    padding: 60px 40px;
    margin-bottom: 50px;
    border: 3px solid var(--color-gold);
    border-radius: 5px;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--color-cyan),
        transparent
    );
    opacity: 0.5;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-gold);
    text-shadow:
        0 0 15px var(--color-gold),
        0 0 30px var(--color-orange),
        3px 3px 0px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    font-weight: 900;
}

.header-line {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--color-gold),
        var(--color-orange),
        var(--color-gold),
        transparent
    );
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-cyan);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* === ABOUT SECTION === */
.intro-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-white);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.story-card {
    background: rgba(0, 0, 100, 0.4);
    border: 2px solid var(--color-orange);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.5);
    border-color: var(--color-gold);
}

.story-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.story-card p {
    color: var(--color-white);
    line-height: 1.7;
    font-weight: 300;
}

/* === CHARACTERS === */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    grid-auto-rows: auto;
    align-items: start;
}

.character-card {
    background: transparent;
    border: none;
    border-radius: 20px;
    overflow: visible;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.character-card:active {
    transform: scale(0.98);
}

.character-card.landscape {
    grid-column: span 2;
}

.character-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-black);
    border-radius: 20px;
    border: 3px solid var(--color-cyan);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    line-height: 0;
}

.character-card:active .character-image {
    box-shadow:
        0 5px 20px rgba(0, 255, 255, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
}

.character-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.4s ease;
}

.character-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 17px;
}

.character-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.character-overlay p {
    color: var(--color-cyan);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
    text-shadow: 0 0 10px var(--color-cyan);
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid var(--color-cyan);
    background: var(--color-black);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item.landscape {
    grid-column: span 2;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    border-color: var(--color-gold);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* === MERCHANDISE === */
.merch-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    font-family: var(--font-display);
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    padding: 10px 25px;
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.category-btn:hover,
.category-btn.active {
    background: var(--color-gold);
    color: var(--color-black);
    box-shadow: 0 0 20px var(--color-gold);
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.product-pair {
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    border: 3px solid var(--color-orange);
    transition: all 0.3s ease;
}

.product-pair:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.5);
    border-color: var(--color-gold);
}

.product-pair .product-image {
    width: 150px;
    height: auto;
    border-radius: 4px;
    border: none;
}

.shop-cta {
    text-align: center;
    padding: 30px 0;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .product-pair {
        flex-direction: column;
        align-items: center;
    }

    .product-pair .product-image {
        width: 200px;
    }
}

.merch-item {
    background: rgba(0, 0, 100, 0.5);
    border: 3px solid var(--color-orange);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.merch-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.6);
    border-color: var(--color-gold);
}

.merch-image {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.merch-image a {
    display: block;
    width: 100%;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--color-gold);
}

.merch-item:hover .product-image {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--color-dark-blue),
        var(--color-navy)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--color-gold);
}

.placeholder-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    text-align: center;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px var(--color-gold);
}

.merch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-red);
    color: var(--color-white);
    padding: 8px 15px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.7);
}

.merch-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.merch-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.merch-desc {
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 300;
    flex-grow: 1;
}

.merch-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.merch-footer .btn {
    text-decoration: none;
    display: inline-block;
}

.merch-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-cyan);
    text-shadow: 0 0 10px var(--color-cyan);
}

.cart-info {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 100, 0.6);
    border: 2px solid var(--color-cyan);
    border-radius: 5px;
    font-size: 1.2rem;
}

.cart-info p {
    margin-bottom: 20px;
    color: var(--color-white);
}

#cartCount, #cartTotal {
    color: var(--color-gold);
    font-weight: bold;
}

/* === FAN FICTION === */
.fanfic-filters {
    text-align: center;
    margin-bottom: 30px;
}

.fanfic-filters select {
    font-family: var(--font-body);
    background: rgba(0, 0, 50, 0.8);
    color: var(--color-gold);
    border: 2px solid var(--color-cyan);
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fanfic-filters select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.fanfic-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.fanfic-item {
    background: linear-gradient(135deg,
        rgba(0, 0, 100, 0.6),
        rgba(0, 0, 50, 0.4)
    );
    border: 2px solid var(--color-cyan);
    border-left: 5px solid var(--color-gold);
    border-radius: 5px;
    padding: 30px;
    transition: all 0.3s ease;
}

.fanfic-item:hover {
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    transform: translateX(10px);
}

.fanfic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.fanfic-header h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-gold);
    margin: 0;
    letter-spacing: 0.05em;
}

.fanfic-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.fanfic-meta .author {
    color: var(--color-cyan);
}

.fanfic-meta .date {
    color: var(--color-gray);
}

.fanfic-meta .likes {
    color: var(--color-orange);
}

.fanfic-excerpt {
    color: var(--color-white);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.fanfic-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 300;
}

/* === FORM === */
.submission-guidelines {
    background: rgba(255, 107, 0, 0.1);
    border: 2px solid var(--color-orange);
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 40px;
}

.submission-guidelines h3 {
    font-family: var(--font-display);
    color: var(--color-gold);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.submission-guidelines ul {
    margin-left: 25px;
    color: var(--color-white);
}

.submission-guidelines li {
    margin-bottom: 8px;
    font-weight: 300;
}

.submission-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.label-icon {
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 50, 0.8);
    border: 2px solid var(--color-cyan);
    border-radius: 3px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 70, 0.9);
}

.form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border: 2px solid;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--color-orange);
    border-color: var(--color-gold);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-gold);
    color: var(--color-black);
    box-shadow: 0 0 30px var(--color-gold);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.btn-secondary:hover {
    background: var(--color-cyan);
    color: var(--color-black);
    box-shadow: 0 0 25px var(--color-cyan);
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.2rem;
}

/* === FOOTER === */
footer {
    background: linear-gradient(180deg,
        rgba(0, 0, 50, 0.9),
        rgba(0, 0, 0, 0.95)
    );
    border-top: 3px solid var(--color-gold);
    padding: 50px 20px 20px;
    margin-top: 80px;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h4 {
    font-family: var(--font-display);
    color: var(--color-gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.footer-section p {
    color: var(--color-white);
    line-height: 1.7;
    font-weight: 300;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-gold);
    text-shadow: 0 0 10px var(--color-gold);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 1.5rem;
    margin-top: 15px;
    justify-content: center;
    max-width: 100%;
}

.social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--color-gray);
}

.tagline-footer {
    color: var(--color-gold);
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    margin-top: 10px;
    text-shadow: 0 0 10px var(--color-gold);
}

.visitor-counter {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--color-cyan);
    opacity: 0.8;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.visitor-counter span {
    font-weight: bold;
    color: var(--color-gold);
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    background: linear-gradient(135deg,
        rgba(0, 0, 50, 0.95),
        rgba(0, 0, 30, 0.95)
    );
    margin: 5% auto;
    padding: 40px;
    border: 3px solid var(--color-gold);
    border-radius: 5px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.modal-close {
    color: var(--color-gold);
    float: right;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--color-orange);
    text-shadow: 0 0 20px var(--color-orange);
}

/* === RESPONSIVE === */

/* Large screens - bigger character and gallery images */
@media (min-width: 1200px) {
    .character-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .product-pair .product-image {
        width: 600px;
    }
}

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

    .hero {
        padding: 50px 20px 60px;
    }

    .main-title {
        font-size: 3.5rem;
    }

    .section {
        padding: 40px 20px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .character-grid,
    .merch-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.landscape,
    .character-card.landscape {
        grid-column: span 1;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .fanfic-header {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
