/* Main content wider layout */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex: 1;
}

/* Advanced Search & Filters */
.search-filters-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.search-container {
    max-width: 100%;
}

/* Advanced Search Row */
.advanced-search {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-field label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b635c;
    margin-bottom: 0.6rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.search-field input {
    font-family: 'Lora', serif;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 48px;
}

.search-field input:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    background: rgba(255, 255, 255, 1);
}

.search-field input::placeholder {
    color: #a69c94;
    font-style: italic;
}

/* Filters Container */
.filters-container {
    display: grid;
    grid-template-columns: 200px 200px 180px 160px auto;
    gap: 2rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.filter-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b635c;
    margin-bottom: 0.6rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.filter-group select {
    font-family: 'Lora', serif;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 48px;
}

.filter-group select:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    background: rgba(255, 255, 255, 1);
}

/* Year Range Filter */
.year-range {
    min-width: 160px;
}

.year-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.year-inputs input {
    font-family: 'Lora', serif;
    padding: 0.9rem 0.6rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    width: 65px;
    min-width: 65px;
    max-width: 65px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 48px;
}

.year-inputs input:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    background: rgba(255, 255, 255, 1);
}

.year-inputs span {
    font-family: 'Inter', sans-serif;
    color: #6b635c;
    font-weight: 500;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 1rem;
    align-self: end;
    justify-self: end;
    min-width: 180px;
}

.btn {
    font-family: 'Inter', sans-serif;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 48px;
    box-sizing: border-box;
}

.btn-primary {
    background: #8b7355;
    color: #fff;
    border: 1px solid #8b7355;
    min-width: 80px;
}

.btn-primary:hover {
    background: #6b5643;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #6b635c;
    border: 1px solid rgba(139, 115, 85, 0.3);
    min-width: 70px;
}

.btn-secondary:hover {
    background: rgba(139, 115, 85, 0.1);
    border-color: #8b7355;
    transform: translateY(-1px);
}

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.summary-info span:first-child {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #2d2926;
    font-size: 1.1rem;
}

.summary-info span:last-child {
    font-family: 'Lora', serif;
    color: #6b635c;
    font-size: 0.9rem;
    font-style: italic;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #6b635c;
    font-weight: 500;
    white-space: nowrap;
}

.sort-options select {
    font-family: 'Lora', serif;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

/* Browse Categories */
.browse-categories {
    margin-bottom: 4rem;
}

.category-section {
    margin-bottom: 3rem;
}

.category-section h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.5px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(139,115,85,0.05) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(45, 41, 38, 0.15);
    border-color: #8b7355;
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.category-card h4 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 0.8rem;
    font-style: italic;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
}

.category-card p {
    font-family: 'Lora', serif;
    color: #6b635c;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.poem-count {
    display: inline-block;
    background: rgba(139, 115, 85, 0.1);
    color: #8b7355;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.category-card:hover .poem-count {
    background: rgba(139, 115, 85, 0.2);
    color: #6b5643;
}

/* Poems Grid */
.explore-poems {
    margin-bottom: 4rem;
}

.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Poem Cards */
.poem-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.poem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 41, 38, 0.12);
    border-color: #8b7355;
}

.poem-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
    padding-bottom: 1rem;
}

.poem-title {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 0.5rem;
    font-style: italic;
    letter-spacing: 0.3px;
}

.poem-author {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #8b7355;
    font-style: italic;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.poem-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #a69c94;
    font-weight: 400;
}

.poem-meta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.language-tag,
.era-tag,
.theme-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.language-tag {
    background: rgba(139, 115, 85, 0.1);
    color: #8b7355;
}

.era-tag {
    background: rgba(107, 99, 92, 0.1);
    color: #6b635c;
}

.theme-tag {
    background: rgba(169, 156, 148, 0.1);
    color: #a69c94;
}

.poem-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.poem-content p {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #6b635c;
    font-weight: 400;
}

.poem-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    padding-top: 1rem;
}

.action-btn {
    background: none;
    border: 1px solid rgba(139, 115, 85, 0.3);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b635c;
}

.action-btn:hover {
    background: rgba(139, 115, 85, 0.1);
    border-color: #8b7355;
    transform: translateY(-1px);
}

.action-btn.active {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
}

.read-more {
    font-family: 'Inter', sans-serif;
    color: #6b635c;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.read-more:hover {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
    transform: translateY(-1px);
}

/* Featured Collections */
.featured-collections {
    margin-bottom: 4rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.collection-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 41, 38, 0.12);
    border-color: #8b7355;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.collection-header h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2926;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.3px;
}

.collection-count {
    background: #8b7355;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}

.collection-card p {
    font-family: 'Lora', serif;
    color: #6b635c;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.collection-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-author {
    background: rgba(139, 115, 85, 0.1);
    color: #8b7355;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 500;
}

/* Loading and Empty States */
.loading {
    font-family: 'Lora', serif;
    text-align: center;
    padding: 3rem;
    color: #8b7355;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
}

.no-results {
    font-family: 'Lora', serif;
    text-align: center;
    padding: 3rem;
    color: #a69c94;
}

.no-results h3 {
    font-family: 'Source Serif Pro', serif;
    color: #6b635c;
    margin-bottom: 1rem;
    font-weight: 600;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        max-width: 1200px;
        padding: 3rem 1.5rem;
    }
    
    .filters-container {
        grid-template-columns: 180px 180px 160px 140px auto;
        gap: 1.5rem;
    }
    
    .year-inputs input {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        max-width: 100%;
        padding: 3rem 1rem;
    }
    
    .search-filters-section {
        padding: 2rem;
    }
    
    .search-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .search-row .search-field:last-child {
        grid-column: span 2;
    }
    
    .filters-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }
    
    .year-range {
        grid-column: span 1;
    }
    
    .filter-actions {
        grid-column: span 3;
        justify-self: center;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .search-filters-section {
        padding: 1.5rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-row .search-field:last-child {
        grid-column: span 1;
    }
    
    .filters-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .year-range {
        grid-column: span 2;
    }
    
    .filter-actions {
        grid-column: span 2;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .results-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .poems-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 2rem 1rem;
    }
    
    .search-filters-section {
        padding: 1.5rem 1rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .year-range {
        grid-column: span 1;
    }
    
    .filter-actions {
        grid-column: span 1;
    }
    
    .year-inputs {
        justify-content: center;
    }
    
    .year-inputs input {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
    }
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.8rem;
    align-self: end;
    grid-column: span 1;
    min-width: 200px;
}

.btn {
    font-family: 'Inter', sans-serif;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 1;
}

.btn-primary {
    background: #8b7355;
    color: #fff;
    border: 1px solid #8b7355;
}

.btn-primary:hover {
    background: #6b5643;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #6b635c;
    border: 1px solid rgba(139, 115, 85, 0.3);
}

.btn-secondary:hover {
    background: rgba(139, 115, 85, 0.1);
    border-color: #8b7355;
    transform: translateY(-1px);
}

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.summary-info span:first-child {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #2d2926;
    font-size: 1.1rem;
}

.summary-info span:last-child {
    font-family: 'Lora', serif;
    color: #6b635c;
    font-size: 0.9rem;
    font-style: italic;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sort-options label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #6b635c;
    font-weight: 500;
}

.sort-options select {
    font-family: 'Lora', serif;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Browse Categories */
.browse-categories {
    margin-bottom: 4rem;
}

.category-section {
    margin-bottom: 3rem;
}

.category-section h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.5px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(139,115,85,0.05) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(45, 41, 38, 0.15);
    border-color: #8b7355;
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.category-card h4 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 0.8rem;
    font-style: italic;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
}

.category-card p {
    font-family: 'Lora', serif;
    color: #6b635c;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.poem-count {
    display: inline-block;
    background: rgba(139, 115, 85, 0.1);
    color: #8b7355;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.category-card:hover .poem-count {
    background: rgba(139, 115, 85, 0.2);
    color: #6b5643;
}

/* Poems Grid - 更宽的布局 */
.explore-poems {
    margin-bottom: 4rem;
}

.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Poem Cards */
.poem-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.poem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 41, 38, 0.12);
    border-color: #8b7355;
}

.poem-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
    padding-bottom: 1rem;
}

.poem-title {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 0.5rem;
    font-style: italic;
    letter-spacing: 0.3px;
}

.poem-author {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #8b7355;
    font-style: italic;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.poem-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #a69c94;
    font-weight: 400;
}

.poem-meta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.language-tag,
.era-tag,
.theme-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.language-tag {
    background: rgba(139, 115, 85, 0.1);
    color: #8b7355;
}

.era-tag {
    background: rgba(107, 99, 92, 0.1);
    color: #6b635c;
}

.theme-tag {
    background: rgba(169, 156, 148, 0.1);
    color: #a69c94;
}

.poem-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.poem-content p {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #6b635c;
    font-weight: 400;
}

.poem-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    padding-top: 1rem;
}

.action-btn {
    background: none;
    border: 1px solid rgba(139, 115, 85, 0.3);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b635c;
}

.action-btn:hover {
    background: rgba(139, 115, 85, 0.1);
    border-color: #8b7355;
    transform: translateY(-1px);
}

.action-btn.active {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
}

.read-more {
    font-family: 'Inter', sans-serif;
    color: #6b635c;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.read-more:hover {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
    transform: translateY(-1px);
}

/* Featured Collections */
.featured-collections {
    margin-bottom: 4rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.collection-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 41, 38, 0.12);
    border-color: #8b7355;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.collection-header h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2926;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.3px;
}

.collection-count {
    background: #8b7355;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}

.collection-card p {
    font-family: 'Lora', serif;
    color: #6b635c;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.collection-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-author {
    background: rgba(139, 115, 85, 0.1);
    color: #8b7355;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 500;
}

/* Loading and Empty States */
.loading {
    font-family: 'Lora', serif;
    text-align: center;
    padding: 3rem;
    color: #8b7355;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
}

.no-results {
    font-family: 'Lora', serif;
    text-align: center;
    padding: 3rem;
    color: #a69c94;
}

.no-results h3 {
    font-family: 'Source Serif Pro', serif;
    color: #6b635c;
    margin-bottom: 1rem;
    font-weight: 600;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        max-width: 1200px;
        padding: 3rem 1.5rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }
    
    .year-range,
    .filter-actions {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .main-content {
        max-width: 100%;
        padding: 3rem 1rem;
    }
    
    .search-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .search-row .search-field:last-child {
        grid-column: span 2;
    }
    
    .filters-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        grid-column: span 2;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .search-filters-section {
        padding: 1.5rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .search-row .search-field:last-child {
        grid-column: span 1;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .results-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .poems-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .year-inputs {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .year-inputs input {
        width: 100%;
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}Lora, serif;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Browse Categories */
.browse-categories {
    margin-bottom: 4rem;
}

.category-section {
    margin-bottom: 3rem;
}

.category-section h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.5px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(139,115,85,0.05) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(45, 41, 38, 0.15);
    border-color: #8b7355;
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.category-card h4 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 0.8rem;
    font-style: italic;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
}

.category-card p {
    font-family: 'Lora', serif;
    color: #6b635c;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.poem-count {
    display: inline-block;
    background: rgba(139, 115, 85, 0.1);
    color: #8b7355;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.category-card:hover .poem-count {
    background: rgba(139, 115, 85, 0.2);
    color: #6b5643;
}

/* Poems Grid */
.explore-poems {
    margin-bottom: 4rem;
}

.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Poem Cards */
.poem-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.poem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 41, 38, 0.12);
    border-color: #8b7355;
}

.poem-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
    padding-bottom: 1rem;
}

.poem-title {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2926;
    margin-bottom: 0.5rem;
    font-style: italic;
    letter-spacing: 0.3px;
}

.poem-author {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #8b7355;
    font-style: italic;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.poem-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #a69c94;
    font-weight: 400;
}

.poem-meta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.language-tag,
.era-tag,
.theme-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.language-tag {
    background: rgba(139, 115, 85, 0.1);
    color: #8b7355;
}

.era-tag {
    background: rgba(107, 99, 92, 0.1);
    color: #6b635c;
}

.theme-tag {
    background: rgba(169, 156, 148, 0.1);
    color: #a69c94;
}

.poem-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.poem-content p {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #6b635c;
    font-weight: 400;
}

.poem-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    padding-top: 1rem;
}

.action-btn {
    background: none;
    border: 1px solid rgba(139, 115, 85, 0.3);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b635c;
}

.action-btn:hover {
    background: rgba(139, 115, 85, 0.1);
    border-color: #8b7355;
    transform: translateY(-1px);
}

.action-btn.active {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
}

.read-more {
    font-family: 'Inter', sans-serif;
    color: #6b635c;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.read-more:hover {
    background: #8b7355;
    color: #fff;
    border-color: #8b7355;
    transform: translateY(-1px);
}

/* Featured Collections */
.featured-collections {
    margin-bottom: 4rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.collection-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 41, 38, 0.12);
    border-color: #8b7355;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.collection-header h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d2926;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.3px;
}

.collection-count {
    background: #8b7355;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}

.collection-card p {
    font-family: 'Lora', serif;
    color: #6b635c;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.collection-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-author {
    background: rgba(139, 115, 85, 0.1);
    color: #8b7355;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 500;
}

/* Loading and Empty States */
.loading {
    font-family: 'Lora', serif;
    text-align: center;
    padding: 3rem;
    color: #8b7355;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
}

.no-results {
    font-family: 'Lora', serif;
    text-align: center;
    padding: 3rem;
    color: #a69c94;
}

.no-results h3 {
    font-family: 'Source Serif Pro', serif;
    color: #6b635c;
    margin-bottom: 1rem;
    font-weight: 600;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .filters-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-actions {
        grid-column: span 2;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .search-filters-section {
        padding: 1.5rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .results-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .poems-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .year-inputs {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .year-inputs input {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
