/* No1Doctor Medical Website Styles */
/* Professional Medical Design with Blue Theme */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --background-color: #f8fafc;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    direction: ltr;
    text-align: left;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 64, 175, 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;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.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;
    min-width: 300px;
}

.channel-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: var(--font-secondary);
}

.channel-subtitle {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.channel-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.channel-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.stat-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.channel-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.subscribe-btn, .archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.subscribe-btn {
    background: #ff0000;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.subscribe-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.archive-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.archive-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 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; }
}

/* Dr. Atef Ahmed Section */
.dr-atef-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.1));
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(37, 99, 235, 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(59, 130, 246, 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(59, 130, 246, 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;
}

/* 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);
}

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

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

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

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

    .channel-stats {
        justify-content: center;
        gap: 20px;
    }

    .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 Styles - Enhanced Design */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

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

.footer-section {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-section h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4::before {
    content: '🩺';
    font-size: 1.2rem;
}

/* Ensure content fills the column properly */
.footer-section > *:last-child {
    margin-top: auto;
}

.footer-section ul {
    flex-grow: 1;
}

.keywords-section {
    margin-top: auto;
    text-align: center;
}

.footer .dr-atef-section .keywords-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer .dr-atef-section .keywords-section h3 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer .dr-atef-section .viral-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 8px 0;
    border-radius: 6px;
}

.footer-section ul li a::before {
    content: '▶';
    color: var(--accent-color);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.footer-section ul li a:hover::before {
    transform: translateX(3px);
}

/* Dr. Atef Footer Section - Enhanced */
.footer .dr-atef-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(30, 64, 175, 0.2));
    border: 2px solid rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.footer .dr-atef-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.footer .dr-atef-header {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer .dr-atef-photo {
    width: 100px;
    height: 100px;
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
    transition: var(--transition);
    margin: 0 auto;
}

.footer .dr-atef-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
    border-color: #60a5fa;
}

.footer .dr-atef-info {
    text-align: center;
    width: 100%;
}

.footer .dr-atef-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--accent-color), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-align: center;
}

.footer .dr-atef-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.footer .dr-atef-social {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer .dr-atef-social h3 {
    text-align: center;
    margin-bottom: 15px;
}

.footer .social-row {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer .dr-atef-social a {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.footer .dr-atef-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.footer .dr-atef-social a:hover::before {
    left: 100%;
}

.footer .dr-atef-social a:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 -20px -30px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
    border-radius: 0 0 15px 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom p:first-child {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1rem;
}

.footer-bottom p:last-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Contact Information Styling */
.footer-section p i {
    color: var(--accent-color);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Keywords Section in Footer */
.keywords-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.keywords-section h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viral-keyword {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.viral-keyword:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    background: linear-gradient(45deg, var(--accent-color), #60a5fa);
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-section {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .footer-section {
        min-height: auto;
        padding: 25px 20px;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .footer .dr-atef-header {
        padding: 20px 15px;
        gap: 12px;
    }

    .footer .dr-atef-photo {
        width: 80px;
        height: 80px;
    }

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

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

    .footer .dr-atef-social {
        padding: 15px;
    }

    .footer .dr-atef-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }

    .viral-keyword {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .footer .social-row {
        gap: 8px;
    }

    .footer .dr-atef-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

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