/* Modern & Elegant Christmas Page Styles */

:root {
    --color-primary: #1a4d2e;
    --color-secondary: #c9a961;
    --color-accent: #8b6f47;
    --color-bg: #fefefe;
    --color-text: #2c3e50;
    --color-text-light: #5a6c7d;
    --color-snow: rgba(255, 255, 255, 0.8);
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebe9 100%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

html {
    overflow-x: hidden;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* Subtle Snow Animation */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: var(--color-snow);
    font-size: 1em;
    animation: fall linear infinite;
    opacity: 0.6;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header */
.site-header {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 77, 46, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-logo:hover {
    color: var(--color-secondary);
}

.nav-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.home-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.home-link:hover {
    color: var(--color-secondary);
    transform: translateX(-5px);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
}

.ornament-left,
.ornament-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
    opacity: 0.7;
}

.ornament-left {
    left: 0;
}

.ornament-right {
    right: 0;
}

.ornament-left::before,
.ornament-right::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--color-primary);
}

.story-title {
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    line-height: 1.2;
}

.story-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Story Content */
.story-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 4rem 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 77, 46, 0.08);
}

/* Story Controls */
.story-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 77, 46, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.text-size-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 77, 46, 0.2);
}

.control-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.control-btn:active {
    transform: translateY(0);
}

.read-aloud-btn {
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.2);
}

.read-aloud-btn svg {
    flex-shrink: 0;
}

.read-aloud-btn span {
    color: white;
    opacity: 1;
    transition: none;
    flex-shrink: 0;
}

.read-aloud-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.3);
}

.read-aloud-btn:active {
    transform: translateY(0);
}

.read-aloud-btn.reading {
    background: #c41e3a;
}

.read-aloud-btn.reading span {
    color: white;
    opacity: 1;
}


.story-text p {
    font-size: 1.25rem;
    margin-bottom: 1.8rem;
    color: var(--color-text);
    text-align: justify;
}

.story-intro {
    font-size: 1.4rem !important;
    font-weight: 400;
    color: var(--color-primary);
    text-align: left !important;
    border-left: 3px solid var(--color-secondary);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem !important;
    font-style: italic;
}

.story-ending {
    text-align: center !important;
    margin-top: 3rem !important;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 77, 46, 0.15);
    color: var(--color-text-light);
}

.story-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 77, 46, 0.1);
}

.story-note {
    font-family: var(--font-sans);
    font-size: 0.9rem !important;
    text-align: center !important;
    color: var(--color-text-light);
    font-style: italic;
    background: rgba(201, 169, 97, 0.1);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0 !important;
}

.story-chapter-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 2rem;
    margin-top: 0;
    text-align: left;
    letter-spacing: 0.5px;
}

.story-chapter-title:not(:first-child) {
    margin-top: 3rem;
}

.story-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-secondary), transparent);
    margin: 4rem 0;
    position: relative;
    text-align: center;
}

/* Story Cards Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.story-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 77, 46, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.story-card-icon {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.story-card-icon svg {
    display: block;
    margin: 0 auto;
}

.story-card-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.story-card-description {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.story-card-link {
    display: inline-block;
    font-family: var(--font-sans);
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.story-card-link:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Game Card Styles */
.game-card .game-thumbnail {
    margin-bottom: 1.5rem;
}

.game-thumbnail-placeholder {
    position: relative;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 2px solid rgba(26, 77, 46, 0.1);
}

.game-thumbnail-placeholder svg {
    color: var(--color-primary);
    opacity: 0.6;
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-meta {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.game-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: rgba(26, 77, 46, 0.08);
    color: var(--color-primary);
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(26, 77, 46, 0.1);
}

.story-card.coming-soon {
    opacity: 0.7;
    position: relative;
}

.story-card.coming-soon:hover {
    transform: translateY(-2px);
}

.story-card.coming-soon .game-thumbnail-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.coming-soon-label {
    display: inline-block;
    font-family: var(--font-sans);
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    font-style: italic;
    cursor: default;
}

/* Navigation Section */
.navigation-section {
    text-align: center;
    padding: 2rem 0 4rem;
}

.btn-home {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-bg);
    background: var(--color-primary);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.2);
}

.btn-home:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.3);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(26, 77, 46, 0.1);
}

.site-footer p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .main-content {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 3rem 0 2rem;
    }

    .story-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .story-subtitle {
        font-size: 0.9rem;
    }

    .story-content {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem 0;
    }

    .story-text p {
        font-size: 1.1rem;
        text-align: left;
    }

    .story-intro {
        font-size: 1.2rem !important;
    }

    .ornament-left,
    .ornament-right {
        display: none;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .story-card {
        padding: 2rem 1.5rem;
    }

    .story-card h2 {
        font-size: 1.3rem;
    }

    .story-card p {
        font-size: 0.95rem;
    }

    .story-controls {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .text-size-controls {
        order: 2;
    }

    .read-aloud-btn {
        order: 1;
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .read-aloud-btn span {
        display: inline-block;
        color: white;
    }

    .control-btn {
        width: 36px;
        height: 36px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .home-link {
        font-size: 0.85rem;
    }

    .site-header {
        padding: 1.5rem 0;
    }

    .navigation-section {
        padding: 2rem 0 3rem;
    }

    .btn-home {
        font-size: 0.85rem;
        padding: 0.8rem 2rem;
        margin: 0.5rem 0.5rem !important;
        display: inline-block;
    }

    .site-footer {
        padding: 1.5rem 0;
    }

    .site-footer p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 0.75rem;
    }

    .hero-section {
        padding: 2rem 0 1.5rem;
    }

    .story-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .story-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .story-content {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }

    .story-controls {
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

    .story-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .story-intro {
        font-size: 1.05rem !important;
        padding-left: 1rem;
    }

    .story-ending {
        margin-top: 2rem !important;
        padding-top: 1.5rem;
    }

    .read-aloud-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    .read-aloud-btn span {
        color: white;
        opacity: 1;
    }

    .control-btn {
        width: 32px;
        height: 32px;
    }

    .stories-grid {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .story-card {
        padding: 1.5rem 1rem;
    }

    .story-card h2 {
        font-size: 1.2rem;
    }

    .story-card p {
        font-size: 0.9rem;
    }

    .story-card-icon svg {
        width: 40px;
        height: 40px;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .home-link {
        font-size: 0.8rem;
    }

    .site-header {
        padding: 1rem 0;
    }

    .navigation-section {
        padding: 1.5rem 0 2rem;
    }

    .btn-home {
        font-size: 0.8rem;
        padding: 0.7rem 1.5rem;
        margin: 0.5rem 0.25rem !important;
    }

    .site-footer {
        padding: 1rem 0;
    }

    .site-footer p {
        font-size: 0.75rem;
        padding: 0 0.75rem;
    }
}

/* Email Signup Section */
.email-signup-section {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.05) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-top: 1px solid rgba(26, 77, 46, 0.1);
    border-bottom: 1px solid rgba(26, 77, 46, 0.1);
    position: relative;
    z-index: 10;
}

.signup-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.signup-content {
    flex: 1;
    min-width: 250px;
}

.signup-title {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.signup-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.signup-form {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 280px;
}

.signup-input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border: 2px solid rgba(26, 77, 46, 0.2);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    background: white;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.signup-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

.signup-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.7;
}

.signup-button {
    padding: 0.85rem 1.8rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.signup-button:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.2);
}

.signup-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .email-signup-section {
        padding: 2rem 1rem;
    }

    .signup-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .signup-content {
        min-width: 100%;
    }

    .signup-title {
        font-size: 1.5rem;
    }

    .signup-description {
        font-size: 0.9rem;
    }

    .signup-form {
        flex-direction: column;
        min-width: 100%;
    }

    .signup-button {
        width: 100%;
    }
}
