/* Home page specific styles */
body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 30px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-link a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #2196F3;
}

.search-container {
    margin-top: 15px;
}

.search-container form {
    display: flex;
    max-width: 600px;
}

.search-container input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-container button {
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
}

.search-container button:hover {
    background: #1976D2;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 22px;
    margin: 0;
}

.view-all {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* Set Grid */
.set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.set-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.set-link {
    display: block;
    padding: 20px;
    color: inherit;
    text-decoration: none;
}

.set-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wenti-type-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #ff6b6b;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

.set-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 63px; /* Approximate height for 3 lines */
}

.set-meta {
    font-size: 14px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

.play-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff6b6b;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f0f7ff;
    color: #2196F3;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #f0f7ff;
    border-color: #2196F3;
    color: #2196F3;
}

.pagination a.active {
    background: #2196F3;
    border-color: #2196F3;
    color: white;
}

/* Footer */
.site-footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.site-footer p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* No Results */
.no-results {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    color: #2196F3;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .set-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .site-header .container {
        display: block;
    }
    
    .search-container {
        margin-top: 15px;
    }
}

@media (min-width: 769px) {
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .search-container {
        margin-top: 0;
    }
}