.news-websites-container {
    width: 100%;
    margin: 0;
    padding: 30px;
}

.websites-header {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.header-content h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.header-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-count {
    font-size: 28px;
    font-weight: 700;
}

.stat-text {
    font-size: 14px;
    opacity: 0.9;
}

.websites-filters {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.filter-group {
    width: 100%;
    max-width: 500px;
}

.search-box {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.websites-grid-section {
    margin-bottom: 40px;
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.website-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Website Status Indicator */
.website-status-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #999;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid white;
    z-index: 10;
}

.website-status-indicator.checking {
    background-color: #fbbf24;
    animation: pulse-yellow 1s infinite;
}

.website-status-indicator.online {
    background-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.website-status-indicator.offline {
    background-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

@keyframes pulse-yellow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 14px rgba(251, 191, 36, 0.8);
    }
}

.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.website-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.website-card:hover {
    border-color: #667eea;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.website-card:hover .website-icon {
    transform: scale(1.2);
}

.website-icon-container {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #f9fafb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.website-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.website-icon-fallback {
    font-size: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.website-card:hover .website-icon-fallback {
    transform: scale(1.2);
}

.website-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.website-card:hover .website-icon {
    transform: scale(1.2);
}

.website-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1f2937;
}

.website-name-en {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 8px 0;
    font-style: italic;
}

.website-url {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
    word-break: break-all;
}

.website-link-indicator {
    margin-top: auto;
    color: #667eea;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.website-card:hover .website-link-indicator {
    opacity: 1;
    transform: translate(-4px, -4px);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-content {
    background: #f9fafb;
    padding: 40px;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-results-content h2 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 24px;
}

.no-results-content p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .websites-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .website-card {
        padding: 16px;
    }

    .website-icon {
        font-size: 40px;
    }

    .website-name {
        font-size: 16px;
    }

    .header-content h1 {
        font-size: 24px;
    }

    .websites-header {
        padding: 25px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .websites-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .website-card {
        padding: 12px;
    }

    .website-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .website-name {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .website-url {
        font-size: 11px;
    }
}
