/* Arabic Archive Styles for SemnaTv */

/* Archive Hero Section */
.archive-hero {
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.archive-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.archive-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: white;
}

.archive-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-card .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    color: white;
}

/* Search and Filter Section */
.search-filter-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#archive-search {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

#archive-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#search-btn,
#clear-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#search-btn:hover,
#clear-search:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

#clear-search {
    background: #dc3545;
}

#clear-search:hover {
    background: #c82333;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-container label {
    font-weight: 600;
    color: var(--text-color);
}

#sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    background: white;
    font-family: var(--font-arabic);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sort-select:focus {
    border-color: var(--primary-color);
}

.results-info {
    text-align: center;
    color: var(--text-light);
}

.results-info p {
    margin-bottom: 5px;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Popular Keywords Section */
.popular-keywords {
    margin-bottom: 40px;
}

.popular-keywords h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.keyword-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: var(--font-arabic);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.keyword-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.keyword-btn:active {
    transform: translateY(-1px);
}

/* Archive Videos Section */
.archive-videos-section {
    margin-bottom: 60px;
}

.archive-videos-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.archive-video-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 15px;
    margin-bottom: 15px;
}

.archive-video-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.archive-video-item:hover {
    background: var(--background-color);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.video-content {
    flex: 1;
}

.video-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.video-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.video-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-tag {
    background: linear-gradient(135deg, var(--accent-color), #ff6b9d);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.video-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 30px auto 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-arabic);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* SEO Content Section */
.seo-content {
    margin-bottom: 60px;
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}

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

.content-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.content-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.content-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Categories Overview */
.categories-overview {
    margin-bottom: 60px;
}

.categories-overview h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}

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

.category-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.category-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-card ul {
    list-style: none;
    text-align: right;
}

.category-card ul li {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.video-skeleton {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
}

.skeleton-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-content {
    flex: 1;
}

.skeleton-title {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-desc {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
    width: 80%;
}

.skeleton-tags {
    display: flex;
    gap: 8px;
}

.skeleton-tag {
    width: 60px;
    height: 24px;
    border-radius: 12px;
}

/* Responsive Design for Archive */
@media (max-width: 768px) {
    .archive-hero h1 {
        font-size: 2rem;
    }
    
    .archive-subtitle {
        font-size: 1rem;
    }
    
    .archive-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .search-filter-section {
        padding: 20px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .keywords-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .keyword-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .archive-video-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .video-number {
        align-self: flex-start;
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .video-link {
        font-size: 1rem;
    }
    
    .video-desc {
        font-size: 0.9rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-content h2,
    .categories-overview h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .archive-hero {
        padding: 30px 15px;
    }
    
    .archive-hero h1 {
        font-size: 1.6rem;
    }
    
    .archive-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .search-filter-section {
        padding: 15px;
    }
    
    #archive-search {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    #search-btn,
    #clear-search {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .keywords-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-videos-container {
        padding: 20px;
    }
    
    .archive-video-item {
        padding: 12px;
    }
    
    .video-tags {
        gap: 5px;
    }
    
    .video-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .load-more-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .content-card,
    .category-card {
        padding: 20px;
    }
}

/* High contrast mode for archive */
@media (prefers-contrast: high) {
    .archive-video-item {
        border: 2px solid var(--text-color);
    }
    
    .video-link {
        color: #0066cc;
    }
    
    .keyword-btn {
        border: 2px solid white;
    }
}

/* Print styles for archive */
@media print {
    .search-filter-section,
    .popular-keywords,
    .load-more-btn {
        display: none;
    }
    
    .archive-video-item {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .video-link {
        color: #000;
        text-decoration: underline;
    }
    
    .video-tags {
        display: none;
    }
}
