/* Stöðvalisti Plugin Styles */

.stodvalisti-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 40px 20px;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stodvalisti-header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 0.6s ease;
}

.stodvalisti-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00d4ff, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stodvalisti-header p {
    font-size: 1.1em;
    color: #888;
}

.stodvalisti-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
    animation: slideUp 0.6s ease;
}

.stodvalisti-search {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.stodvalisti-search input {
    width: 100%;
    padding: 15px 40px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 1em;
    transition: all 0.3s ease;
}

.stodvalisti-search input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.stodvalisti-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-height: 100px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    flex: 1;
    min-width: 300px;
}

.stodvalisti-filters button {
    padding: 8px 15px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 6px;
    color: #00d4ff;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.stodvalisti-filters button:hover {
    background: rgba(0, 212, 255, 0.3);
}

.stodvalisti-filters button.active {
    background: #00d4ff;
    color: #1a1a2e;
}

.stodvalisti-views {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 10px 15px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 5px;
    color: #00d4ff;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #00d4ff;
    color: #1a1a2e;
}

.stodvalisti-stats {
    text-align: center;
    margin-bottom: 30px;
    color: #888;
    font-size: 0.95em;
}

.stodvalisti-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

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

.country-section {
    margin-bottom: 50px;
}

.country-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid #00d4ff;
    border-radius: 8px;
}

.country-flag {
    font-size: 2.5em;
}

.country-info h2 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 5px;
}

.country-info p {
    color: #888;
    font-size: 0.9em;
}

.channel-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.channel-card:hover {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.channel-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.channel-name {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.channel-description {
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 8px;
    line-height: 1.3;
}

.channel-quality {
    display: flex;
    gap: 6px;
}

.quality-badge {
    padding: 3px 8px;
    background: rgba(0, 255, 150, 0.2);
    border: 1px solid rgba(0, 255, 150, 0.5);
    border-radius: 3px;
    font-size: 0.75em;
    color: #00ff96;
    font-weight: 500;
}

.stodvalisti-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.stodvalisti-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00d4ff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .stodvalisti-controls {
        flex-direction: column;
    }

    .stodvalisti-search,
    .stodvalisti-filters {
        min-width: 100%;
    }

    .stodvalisti-content {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
}
