/* Arabic RTL Styles for SemnaTv */

/* CSS Variables */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-color: #333;
    --text-light: #666;
    --background-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-arabic: 'Cairo', 'Amiri', Arial, sans-serif;
    --font-heading: 'Amiri', 'Cairo', serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: var(--font-arabic);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    direction: rtl;
    text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    right: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 30px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Channel Banner Styles */
.channel-banner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position: center;
}

.logo-img:hover {
    transform: scale(1.05);
}

.channel-info {
    flex: 1;
}

.channel-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.channel-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-right: 4px solid var(--accent-color);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Viral Tags Styles */
.viral-tags {
    margin-bottom: 25px;
}

.keywords-section,
.hashtags-section {
    margin-bottom: 20px;
}

.keywords-section h3,
.hashtags-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-weight: bold;
}

.viral-keyword {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    padding: 6px 12px;
    margin: 3px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.viral-keyword:hover {
    background: linear-gradient(135deg, var(--accent-color), #ff6b9d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hashtag {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #ff6b9d);
    color: white;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hashtag:hover {
    background: linear-gradient(135deg, #ff6b9d, var(--accent-color));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Social Media & Sharing Styles */
.social-sharing {
    margin-top: 20px;
}

.social-sharing h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: bold;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon i {
    font-size: 1rem;
}

.social-icon span {
    font-size: 0.8rem;
}

/* Social Media Platform Colors */
.social-icon.facebook {
    background: #1877f2;
    color: white;
}

.social-icon.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-icon.twitter {
    background: #1da1f2;
    color: white;
}

.social-icon.twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.social-icon.youtube {
    background: #ff0000;
    color: white;
}

.social-icon.youtube:hover {
    background: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.social-icon.facebook-share {
    background: #4267b2;
    color: white;
}

.social-icon.facebook-share:hover {
    background: #365899;
    transform: translateY(-2px);
}

.social-icon.twitter-share {
    background: #1da1f2;
    color: white;
}

.social-icon.twitter-share:hover {
    background: #1a91da;
    transform: translateY(-2px);
}

.social-icon.whatsapp {
    background: #25d366;
    color: white;
}

.social-icon.whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.social-icon.telegram {
    background: #0088cc;
    color: white;
}

.social-icon.telegram:hover {
    background: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.social-icon.copy-link {
    background: #6c757d;
    color: white;
}

.social-icon.copy-link:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.share-divider {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
}

.logo a {
    color: white;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: white;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 0;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

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

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.last-updated {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Archive CTA */
.archive-cta {
    background: linear-gradient(135deg, var(--accent-color), #ff6b9d);
    padding: 30px 0;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    color: var(--secondary-color);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

#search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

#search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: var(--transition);
}

#search-btn:hover {
    background: var(--secondary-color);
}

/* Video Section */
.video-section {
    margin-bottom: 60px;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.video-card:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-color);
}

.video-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.video-duration {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-arabic);
    font-weight: 600;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.page-number:hover,
.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-info {
    text-align: center;
    color: var(--text-light);
    margin-top: 20px;
}

/* Features Section */
.features-section {
    margin-bottom: 60px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

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

/* Keywords Section */
.keywords-section {
    margin-bottom: 60px;
    text-align: center;
}

.keywords-section h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.keyword-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.keyword-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Channel Slogans */
.channel-slogans {
    margin: 20px 0;
}

.slogan-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 15px;
    border-right: 4px solid var(--accent-color);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.slogan-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.slogan-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}



/* Facebook Groups Section */
.facebook-groups-section {
    margin-bottom: 60px;
    background: linear-gradient(135deg, #4267b2, #365899);
    padding: 60px 0;
    border-radius: 20px;
    color: white;
}

.facebook-groups-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.facebook-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.group-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
}

.group-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.group-card i {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    display: block;
}

.group-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.group-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.group-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.group-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--secondary-color);
}



/* Social Media Platform Colors */
.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.social-icon.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 148, 51, 0.4);
}

.social-icon.tumblr {
    background: #00cf35;
    color: white;
}

.social-icon.tumblr:hover {
    background: #00b82f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 207, 53, 0.4);
}

.social-icon.website {
    background: #28a745;
    color: white;
}

.social-icon.website:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Playlists Section Styles */
.playlists-section {
    margin-bottom: 60px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 60px 0;
    border-radius: 20px;
}

.playlists-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2rem;
}

.playlists-section .playlists-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.featured-playlists {
    margin-bottom: 40px;
}

.featured-playlists h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

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

.playlist-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.playlist-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.playlist-card:hover .playlist-thumbnail img {
    transform: scale(1.05);
}

.playlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.playlist-card:hover .playlist-overlay {
    opacity: 1;
}

.play-icon {
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.video-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.playlist-info {
    padding: 20px;
}

.playlist-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-color);
}

.playlist-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.playlist-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.playlist-category {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Playlists CTA */
.playlists-cta {
    text-align: center;
    margin-top: 40px;
}

.playlists-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b9d);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.playlists-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(240, 147, 251, 0.4);
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-color), #2c3e50);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Dr. Atef Ahmed Section */
.dr-atef-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.dr-atef-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dr-atef-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    transition: var(--transition);
    object-fit: cover;
    object-position: center;
}

.dr-atef-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.5);
}

.dr-atef-info h4 {
    margin: 0 0 5px 0;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.dr-atef-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
}

.dr-atef-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dr-atef-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
}

/* Dr. Atef Social Media Colors */
.dr-atef-social a[href*="books"] {
    background: #8B4513;
    color: white;
}

.dr-atef-social a[href*="amazon"] {
    background: #FF9900;
    color: white;
}

.dr-atef-social a[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.dr-atef-social a[href*="facebook"] {
    background: #1877f2;
    color: white;
}

.dr-atef-social a[href*="youtube"] {
    background: #ff0000;
    color: white;
}

.dr-atef-social a[href*="x.com"] {
    background: #000000;
    color: white;
}

.dr-atef-social a[href*="threads"] {
    background: #000000;
    color: white;
}

.dr-atef-social a[href*="telegram"] {
    background: #0088cc;
    color: white;
}

.dr-atef-social a[href*="tiktok"] {
    background: #000000;
    color: white;
}

.dr-atef-social a[href*="groups"] {
    background: #4267b2;
    color: white;
}

.dr-atef-social a[href*="linkedin"] {
    background: #0077b5;
    color: white;
}

.dr-atef-social a[href*="whatsapp"] {
    background: #25d366;
    color: white;
}

.dr-atef-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for Dr. Atef section */
@media (max-width: 768px) {
    .dr-atef-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .dr-atef-photo {
        width: 50px;
        height: 50px;
        object-fit: cover;
        object-position: center;
    }

    .dr-atef-info h4 {
        font-size: 1rem;
    }

    .dr-atef-info p {
        font-size: 0.8rem;
    }

    .social-row {
        gap: 6px;
    }

    .dr-atef-social a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
}

/* Mobile Responsive Styles for Channel Banner */
@media (max-width: 768px) {
    .channel-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .logo-img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        object-position: center;
    }

    .channel-title {
        font-size: 1.8rem;
    }

    .channel-description {
        font-size: 1rem;
        padding: 12px;
    }

    .slogan-item h4 {
        font-size: 0.9rem;
    }

    .viral-keyword,
    .hashtag {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin: 2px;
    }

    .social-icons {
        justify-content: center;
        gap: 8px;
    }

    .social-icon {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .social-icon span {
        display: none;
    }

    .social-icon i {
        font-size: 1.1rem;
    }

    .share-divider {
        font-size: 0.8rem;
        margin: 8px 0;
        padding: 6px;
    }

    /* Facebook Groups Mobile */
    .facebook-groups-section {
        padding: 40px 0;
    }

    .facebook-groups-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .group-card {
        padding: 20px;
    }

    .group-card i {
        font-size: 2.5rem;
    }

    .group-join-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Auto Update Indicator */
.auto-update-indicator {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.update-status {
    display: block;
    font-size: 0.85rem;
    color: #4ade80;
    margin-bottom: 5px;
}

.update-status.active {
    animation: pulse 2s infinite;
}

.next-update {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .video-container {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .keywords-cloud {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .video-card {
        margin-bottom: 20px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .pagination,
    .search-section {
        display: none;
    }

    .video-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #004499;
        --text-color: #000000;
        --background-color: #ffffff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
