/* CSS pentru paginile index ale țărilor */

.country-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header Section */
.country-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.country-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.country-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.country-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 120px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-btn.active,
.view-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Stations Container */
.stations-container {
    margin-bottom: 3rem;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    transition: all 0.3s;
}

.stations-grid.list-view {
    grid-template-columns: 1fr;
}

/* Station Cards */
.station-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    height: auto;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.station-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.stations-grid.list-view .station-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    min-height: auto;
    height: auto;
    flex-direction: row;
}

.station-logo {
    flex-shrink: 0;
}

.station-logo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stations-grid.list-view .station-logo img {
    width: 50px;
    height: 50px;
}

.station-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.station-name {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.stations-grid.list-view .station-name {
    margin: 0 0 0.5rem 0;
}

.station-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.station-name a:hover {
    color: #667eea;
}

.station-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
}

.stations-grid.list-view .station-description {
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 1;
}

.station-genres {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stations-grid.list-view .station-genres {
    margin-bottom: 0;
    margin-right: 1rem;
}

.genre-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.listen-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.listen-btn {
    margin-top: auto;
    align-self: flex-start;
}

.listen-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.station-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Dark Mode */
[data-theme="dark"] .country-page {
    background: #121212;
    color: #e0e0e0;
}

[data-theme="dark"] .country-header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

[data-theme="dark"] .filters-section,
[data-theme="dark"] .station-card {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

[data-theme="dark"] .station-name a {
    color: #e0e0e0;
}

[data-theme="dark"] .station-name a:hover {
    color: #667eea;
}

[data-theme="dark"] .station-description {
    color: #b0b0b0;
}

[data-theme="dark"] .filter-group label {
    color: #e0e0e0;
}

[data-theme="dark"] .filter-group select {
    background: #2a2a2a;
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .filter-group select option {
    background: #2a2a2a;
}

[data-theme="dark"] .view-btn {
    background: #2a2a2a;
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .view-btn.active,
[data-theme="dark"] .view-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .country-info h1 {
        font-size: 2rem;
    }
    
    .country-stats {
        justify-content: center;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .stations-grid {
        grid-template-columns: 1fr;
    }
    
    .station-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .country-header {
        padding: 1.5rem;
    }
    
    .country-info h1 {
        font-size: 1.8rem;
    }
    
    .country-stats {
        flex-direction: column;
        gap: 1rem;
    }
}