/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C41E3A;
    --dark-red: #8B0000;
    --forest-green: #165B33;
    --light-green: #2D7F4E;
    --gold: #FFD700;
    --snow-white: #FFFAFA;
    --cream: #FFF8DC;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --border-light: #E9ECEF;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #FEFEFE 0%, #F0F8FF 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo i {
    font-size: 2rem;
    color: var(--gold);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo h1 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--gold);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--light-green) 100%);
    padding: 6rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '❄';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
    animation: snowfall 10s linear infinite;
    left: 10%;
    top: -50px;
}

.hero::after {
    content: '⛄';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    animation: snowfall 15s linear infinite;
    right: 10%;
    top: -50px;
}

@keyframes snowfall {
    to {
        transform: translateY(600px) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark-red);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--forest-green);
    background: white;
    color: var(--forest-green);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--forest-green);
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-red), var(--forest-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--gold);
    color: var(--dark-red);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--text-dark);
    font-weight: 600;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
}

/* Letter Section */
.letter-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFE4E1 100%);
}

.letter-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.letter-header i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.letter-header h2 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    color: var(--forest-green);
    margin-bottom: 0.5rem;
}

.letter-header p {
    color: var(--text-light);
}

.letter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(22, 91, 51, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.btn-submit {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    display: block;
}

.form-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 3rem;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-red);
}

.modal-body h2 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.modal-body .post-meta {
    color: var(--text-light);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal-body .post-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.modal-body .post-content h3 {
    color: var(--forest-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-body .post-content ul {
    margin: 1rem 0 1rem 2rem;
}

.modal-body .post-content li {
    margin: 0.5rem 0;
}

.gift-item {
    background: var(--cream);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid var(--gold);
}

.gift-item h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.gift-item p {
    margin: 0.5rem 0;
}

.amazon-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--forest-green);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.amazon-link:hover {
    background: var(--light-green);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-family: 'Mountains of Christmas', cursive;
}

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

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sponsor-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sponsor-text {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.sponsor-link-text {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sponsor-link-text:hover {
    color: #FFC700;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .letter-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .modal-content {
        margin: 5% 10px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
