/* Base Styles */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --text-color: #333;
    --background-color: #FDF5E6;
    --accent-color: #DEB887;
    --footer-color: #5C4033;
}

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

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: url('../images/paper-texture.png');
    background-repeat: repeat;
}

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

/* Header Styles */
.site-header {
    background-color: #1a1a1a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e8a87c;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #f4c4a4;
}

.heart-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e8a87c;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(232, 168, 124, 0.1);
    color: #f4c4a4;
}

.nav-item.active {
    background-color: #e8a87c;
    color: #1a1a1a;
}

.nav-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0 0.5rem;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.story-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
}

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

.story-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.story-meta span {
    margin-right: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Footer Styles */
.site-footer {
    background-color: var(--footer-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

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

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

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

.disclaimer {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.affiliate-notice {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #DDD;
}

/* Affiliate Disclaimer */
.affiliate-disclaimer {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(232, 168, 124, 0.1);
    border-radius: 8px;
    text-align: center;
}

.affiliate-disclaimer p:first-child {
    font-weight: bold;
    color: #e8a87c;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.affiliate-disclaimer p:last-child {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .affiliate-disclaimer {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .affiliate-disclaimer p:last-child {
        font-size: 0.8rem;
    }
}

/* Decades Section */
.decades-section,
.themes-section {
    padding: 4rem 0;
    background-color: #fff5eb;
}

.decades-section h2,
.themes-section h2 {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 2rem;
}

.decade-grid,
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.decade-card,
.theme-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.decade-card::before,
.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #d4a373, #8b4513);
    border-radius: 5px 5px 0 0;
}

.decade-card:hover,
.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.decade-card h3,
.theme-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.decade-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.theme-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.theme-card.family { background-image: url('../images/theme-family.jpg'); }
.theme-card.childhood { background-image: url('../images/theme-childhood.jpg'); }
.theme-card.technology { background-image: url('../images/theme-technology.jpg'); }
.theme-card.music { background-image: url('../images/theme-music.jpg'); }
.theme-card.food { background-image: url('../images/theme-food.jpg'); }

.theme-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.theme-card:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.theme-card h3 {
    color: #ffffff;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .decade-grid,
    .theme-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .decade-card h3,
    .theme-card h3 {
        font-size: 1.5rem;
    }

    .decade-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .decades-section h2,
    .themes-section h2 {
        font-size: 2rem;
    }

    .decade-grid,
    .theme-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .nav-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .nav-icon {
        font-size: 1rem;
    }
}

/* Archive Page Styles */
.archive-page {
    background-color: #1a1a1a;
    color: #ffffff;
}

.archive-header {
    text-align: center;
    padding: 3rem 0;
}

.archive-header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #e8a87c;
    margin-bottom: 1rem;
}

.archive-description {
    color: #999;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.filter-section {
    background-color: #242424;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-icon {
    font-size: 1.5rem;
}

.filter-header h2 {
    font-family: 'Playfair Display', serif;
    color: #e8a87c;
    margin: 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.decade-filters,
.theme-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.decade-filters h3,
.theme-filters h3 {
    color: #999;
    font-size: 1rem;
    margin: 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background-color: #333;
    color: #999;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #444;
    color: #fff;
}

.filter-btn.active {
    background-color: #e8a87c;
    color: #1a1a1a;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.story-card {
    background-color: #242424;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-meta-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.decade-tag,
.theme-tag {
    background-color: rgba(232, 168, 124, 0.1);
    color: #e8a87c;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.time-ago {
    color: #666;
    font-size: 0.8rem;
    margin-left: auto;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-icon {
    font-size: 1.2rem;
}

.author-name {
    color: #999;
    font-size: 0.9rem;
}

.story-excerpt {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.story-likes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart-icon {
    color: #e8a87c;
}

.likes-count {
    color: #999;
    font-size: 0.9rem;
}

.read-more {
    color: #e8a87c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #f4c4a4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .archive-header h1 {
        font-size: 2.5rem;
    }

    .filter-section {
        padding: 1.5rem;
    }

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

@media (max-width: 480px) {
    .archive-header h1 {
        font-size: 2rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Contact Page Styles */
.contact-page {
    background-color: #1a1a1a;
    color: #ffffff;
}

.contact-header {
    text-align: center;
    margin: 3rem 0;
}

.contact-header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #e8a87c;
    margin-bottom: 1rem;
}

.contact-description {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #cccccc;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    font-size: 1.8rem;
}

.section-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #e8a87c;
    margin: 0;
}

.section-description {
    color: #cccccc;
    margin-bottom: 2rem;
    font-style: italic;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e8a87c;
    font-family: 'Playfair Display', serif;
}

.required {
    color: #ff6b6b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(232, 168, 124, 0.3);
    border-radius: 5px;
    color: brown;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e8a87c;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #e8a87c;
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #d69668;
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-content {
    margin-top: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    color: #202124;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.info-item a {
    color: #202124;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #e8a87c;
}

address {
    font-style: normal;
    line-height: 1.6;
    color: #202124;
}

.phone {
    display: block;
    margin-top: 0.5rem;
}

.phone a {
    color: #202124;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.phone a:hover {
    color: #e8a87c;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .contact-header h1 {
        font-size: 2.5rem;
    }

    .contact-content {
        padding: 1rem;
    }

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

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

.footer-section address {
    color: #cccccc;
    font-style: normal;
    line-height: 1.8;
    margin-top: 1rem;
}

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

.footer-section address a:hover {
    color: #ffffff;
}

/* Story Page Styles */
.story-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2d2d2d;
    margin-bottom: 1rem;
}

.story-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-family: 'Playfair Display', serif;
    color: #666;
    margin-bottom: 2rem;
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-image {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-content {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.story-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.story-tag {
    background: #e8a87c;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.story-tag:hover {
    background: #d69668;
    transform: translateY(-2px);
}

.back-to-stories {
    display: inline-block;
    background: #e8a87c;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.back-to-stories:hover {
    background: #d69668;
    transform: translateY(-2px);
}

.more-stories {
    margin-top: 3rem;
}

.more-stories h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2d2d2d;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive Design for Story Pages */
@media (max-width: 992px) {
    .story-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .story-title {
        font-size: 2rem;
    }

    .story-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .story-image img {
        max-height: 350px;
    }
}

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

    .story-title {
        font-size: 1.8rem;
    }

    .story-content {
        font-size: 1rem;
    }

    .story-image img {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .story-container {
        margin: 0.5rem;
    }

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

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

    .story-image img {
        max-height: 250px;
    }

    .story-tags {
        flex-wrap: wrap;
    }
}

/* Popular Themes Section */
.themes-section {
    padding: 4rem 0;
    text-align: center;
}

.themes-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 3rem;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.theme-card {
    position: relative;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.theme-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.theme-card:hover img {
    transform: scale(1.1);
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

.theme-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    margin: 0;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    text-align: center;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .themes-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .theme-card {
        height: 180px;
    }

    .theme-card h3 {
        font-size: 1.3rem;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .themes-section h2 {
        font-size: 2.5rem;
    }

    .themes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .theme-card {
        height: 150px;
    }

    .theme-card h3 {
        font-size: 1.1rem;
    }
} 