/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Haiku-specific typography */
.haiku-text {
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: left;
    font-style: italic;
    color: #34495e;
    margin-bottom: 1rem;
}

.haiku-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Individual haiku page styles */
.haiku-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.haiku-content {
    max-width: 600px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.haiku-content .haiku-text {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: rgba(52, 73, 94, 0.1);
    border: 1px solid rgba(52, 73, 94, 0.2);
    border-radius: 25px;
    text-decoration: none;
    color: #34495e;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.back-link:hover {
    background: rgba(52, 73, 94, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Index page styles */
.index-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.title-section {
    text-align: center;
    margin-bottom: 4rem;
}

.title-haiku {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.title-haiku .haiku-text {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0;
}

.section-title {
    font-size: 1.2rem;
    color: #34495e;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.featured-poems {
    margin-bottom: 4rem;
}

.featured-haiku {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.poem-links {
    text-align: center;
}

.poem-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.poem-list li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.poem-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.poem-list a {
    text-decoration: none;
    color: #34495e;
    font-style: italic;
    font-size: 1.1rem;
    flex-grow: 1;
    text-align: left;
}

.poem-list a:hover {
    color: #2c3e50;
}

.link-date {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .haiku-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .haiku-text {
        font-size: 1.2rem;
    }
    
    .haiku-content .haiku-text {
        font-size: 1.4rem;
    }
    
    .title-haiku .haiku-text {
        font-size: 1.5rem;
    }
    
    .index-container {
        padding: 2rem 1rem;
    }
    
    .poem-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .poem-list a {
        text-align: center;
    }
}