/*
Theme Name: Complete Custom Theme
Description: Fully customizable responsive theme with all features
Version: 1.0
Text Domain: complete-theme
*/

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

/* Basic Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: var(--header-bg-color, #ffffff);
    color: var(--header-text-color, #333333);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.scrolled {
    padding: 10px 0;
}

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

.logo {
    flex: 0 0 auto;
}

.logo img {
    max-height: 60px;
    transition: all 0.3s ease;
}

.site-header.scrolled .logo img {
    max-height: 40px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--logo-color, #333333);
    text-decoration: none;
}

.main-navigation {
    flex: 1;
    text-align: center;
}

.primary-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.primary-menu li a {
    color: var(--menu-text-color, #333333);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: var(--menu-font-size, 16px);
    font-family: var(--menu-font-family, inherit);
}

.primary-menu li a:hover {
    color: var(--menu-hover-color, #007cba);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--phone-text-color, #333333);
    font-size: var(--phone-font-size, 16px);
}

.header-social {
    display: flex;
    gap: 12px;
}

/* Social Media Icon Styles */
.header-social a {
    color: var(--header-social-color, #333333);
    font-size: var(--header-social-size, 18px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--header-social-width, 40px);
    height: var(--header-social-height, 40px);
    border-radius: var(--header-social-border-radius, 0px);
    background: var(--header-social-bg, transparent);
}

.header-social a:hover {
    color: var(--header-social-hover-color, #007cba);
    background: var(--header-social-hover-bg, transparent);
    transform: var(--header-social-hover-transform, none);
}

/* Social Media Icon Styles - Rounded */
.header-social.rounded a {
    border-radius: 50%;
}

/* Social Media Icon Styles - Square */
.header-social.square a {
    border-radius: 5px;
}

/* Social Media Icon Styles - Boxed */
.header-social.boxed a {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--header-text-color, #333333);
    transition: all 0.3s ease;
}

/* Header layout when menu is hidden */
body.menu-hidden .header-content {
    justify-content: space-between;
}

body.menu-hidden .logo {
    flex: 0 0 auto;
}

body.menu-hidden .header-right {
    flex: 0 0 auto;
    margin-left: auto;
}

/* About Section */
.about-section {
    padding: 120px 0 80px;
    background: var(--about-bg-color, #f9f9f9);
}

.about-columns {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content {
    flex: 1;
}

.about-english, .about-arabic {
    margin-bottom: 30px;
}

.about-english h2, .about-arabic h2 {
    margin-bottom: 15px;
    color: var(--about-title-color, #333333);
    font-size: var(--about-title-size, 2em);
}

.about-english p, .about-arabic p {
    color: var(--about-text-color, #666666);
    font-size: var(--about-text-size, 16px);
    line-height: 1.6;
}

.about-arabic {
    direction: rtl;
    text-align: right;
}

/* TV Interviews Section */
.interviews-section {
    padding: 80px 0;
    background: var(--interviews-bg-color, #ffffff);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: var(--section-title-size, 2.5em);
    color: var(--section-title-color, #333333);
}

.interviews-container.grid-layout {
    display: grid;
    gap: 30px;
}

.interviews-container.list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.videos-per-row-2 { grid-template-columns: repeat(2, 1fr); }
.videos-per-row-3 { grid-template-columns: repeat(3, 1fr); }
.videos-per-row-4 { grid-template-columns: repeat(4, 1fr); }

.interview-item {
    background: var(--video-bg-color, white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: var(--video-border, none);
}

.interview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: var(--video-title-color, #333);
    line-height: 1.4;
}

.tv-channel {
    margin: 0;
    color: var(--video-channel-color, #666);
    font-size: 0.9em;
}

.tv-channel i {
    margin-right: 5px;
    color: var(--video-icon-color, #ff0000);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--contact-bg-color, #f5f5f5);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.phone-item, .email-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--contact-item-bg, white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--contact-text-color, #333333);
}

.phone-item i, .email-item i {
    color: var(--contact-icon-color, #007cba);
    font-size: 20px;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--contact-social-bg, #007cba);
    color: var(--contact-social-color, white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.contact-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: var(--contact-social-hover-bg, #005a87);
}

/* Footer Styles */
.site-footer {
    background-color: var(--footer-bg-color, #333333);
    color: var(--footer-text-color, #ffffff);
    padding: 60px 0 20px;
}

.footer-widgets {
    margin-bottom: 40px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    color: var(--footer-title-color, #ffffff);
    margin-bottom: 20px;
    font-size: 1.3em;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--footer-accent-color, #007cba);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--footer-link-color, #cccccc);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-menu a:hover {
    color: var(--footer-link-hover-color, #ffffff);
    padding-left: 8px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--footer-text-color, #cccccc);
    line-height: 1.5;
}

.contact-item i {
    width: 16px;
    color: var(--footer-icon-color, #007cba);
    margin-top: 3px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--footer-social-bg, rgba(255, 255, 255, 0.1));
    border-radius: var(--footer-social-radius, 50%);
    color: var(--footer-social-color, #ffffff);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    background: var(--footer-social-hover-bg, #007cba);
    transform: translateY(-3px);
}

.newsletter {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: #cccccc;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--newsletter-btn-bg, #007cba);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--newsletter-btn-hover, #005a87);
}

.copyright-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-col {
    flex: 1;
    min-width: 200px;
}

.copyright-text {
    color: var(--copyright-text-color, #cccccc);
    font-size: 14px;
    text-align: left;
}

.copyright-text a {
    color: var(--copyright-link-color, #cccccc);
    text-decoration: none;
}

.copyright-text a:hover {
    color: var(--copyright-link-hover, #ffffff);
    text-decoration: underline;
}

.footer-credits {
    color: var(--footer-credits-color, #999999);
    font-size: 14px;
    text-align: right;
}

.footer-credits i {
    color: var(--footer-heart-color, #ff0000);
    margin: 0 5px;
}

/* Footer layout when menu is hidden */
body.footer-menu-hidden .footer-row {
    justify-content: center;
}

body.footer-menu-hidden .footer-contact {
    flex: 0 0 45%;
    max-width: 45%;
}

body.footer-menu-hidden .footer-social {
    flex: 0 0 45%;
    max-width: 45%;
}

/* WhatsApp Floating Button - UPDATED */
.whatsapp-float {
    position: fixed;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--whatsapp-color, #25D366);
    border-radius: var(--whatsapp-border-radius, 50%);
    width: var(--whatsapp-size, 60px);
    height: var(--whatsapp-size, 60px);
    display: var(--whatsapp-display, flex);
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Position */
.whatsapp-float.position-right {
    right: var(--whatsapp-spacing, 25px);
    bottom: var(--whatsapp-spacing, 25px);
}

.whatsapp-float.position-left {
    left: var(--whatsapp-spacing, 25px);
    bottom: var(--whatsapp-spacing, 25px);
}

/* WhatsApp Sizes */
.whatsapp-float.size-small {
    --whatsapp-size: 50px;
}

.whatsapp-float.size-medium {
    --whatsapp-size: 60px;
}

.whatsapp-float.size-large {
    --whatsapp-size: 70px;
}

.whatsapp-float.size-xlarge {
    --whatsapp-size: 80px;
}

/* WhatsApp Styles */
.whatsapp-float.style-circle {
    --whatsapp-border-radius: 50%;
}

.whatsapp-float.style-rounded {
    --whatsapp-border-radius: 15px;
}

.whatsapp-float.style-square {
    --whatsapp-border-radius: 5px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    text-decoration: none;
    position: relative;
}

.whatsapp-link i {
    font-size: var(--whatsapp-icon-size, 28px);
}

/* WhatsApp Counter - Admin Only */
.whatsapp-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: #ffffff;
    font-size: 0.7em;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    font-weight: bold;
    display: var(--whatsapp-counter-display, none);
}

/* Show counter only for admin */
body.wp-admin .whatsapp-counter,
body.logged-in .whatsapp-counter {
    --whatsapp-counter-display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .videos-per-row-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .videos-per-row-3 { grid-template-columns: repeat(2, 1fr); }
    .about-columns { flex-direction: column; }
    .footer-row { gap: 30px; }
    .footer-column { flex: 0 0 calc(50% - 20px); }
    .main-navigation { display: none; }
    .mobile-menu-toggle { display: flex; }
    body.footer-menu-hidden .footer-contact,
    body.footer-menu-hidden .footer-social {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header { padding: 15px 0; }
    .site-header.scrolled { padding: 8px 0; }
    .header-content { flex-wrap: wrap; }
    .header-right { order: 3; width: 100%; justify-content: center; margin-top: 15px; }
    .videos-per-row-2 { grid-template-columns: 1fr; }
    .footer-row { flex-direction: column; gap: 30px; }
    .footer-column { flex: 0 0 100%; }
    .copyright-row { flex-direction: column; text-align: center; gap: 10px; }
    .copyright-text { text-align: center; }
    .footer-credits { text-align: center; }
    .whatsapp-float.size-small { --whatsapp-size: 45px; }
    .whatsapp-float.size-medium { --whatsapp-size: 50px; }
    .whatsapp-float.size-large { --whatsapp-size: 55px; }
    .whatsapp-float.size-xlarge { --whatsapp-size: 60px; }
    .whatsapp-link i { font-size: calc(var(--whatsapp-icon-size, 28px) * 0.8); }
    body.menu-hidden .header-right { order: 2; width: auto; margin-top: 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .primary-menu { flex-direction: column; gap: 10px; }
    .social-icons { justify-content: center; }
    .newsletter-form { flex-direction: column; }
    .whatsapp-float { --whatsapp-spacing: 15px; }
}

/* CSS Variables */
:root {
    --header-bg-color: #ffffff;
    --header-text-color: #333333;
    --logo-color: #333333;
    --menu-text-color: #333333;
    --menu-hover-color: #007cba;
    --menu-font-size: 16px;
    --phone-text-color: #333333;
    --phone-font-size: 16px;
    --header-social-color: #333333;
    --header-social-hover-color: #007cba;
    --header-social-size: 18px;
    --header-social-width: 40px;
    --header-social-height: 40px;
    --header-social-bg: transparent;
    --header-social-hover-bg: transparent;
    --header-social-border-radius: 0px;
    --header-social-hover-transform: none;
    --about-bg-color: #f9f9f9;
    --about-title-color: #333333;
    --about-text-color: #666666;
    --about-title-size: 2em;
    --about-text-size: 16px;
    --interviews-bg-color: #ffffff;
    --section-title-color: #333333;
    --section-title-size: 2.5em;
    --video-bg-color: white;
    --video-border: none;
    --video-title-color: #333;
    --video-channel-color: #666;
    --video-icon-color: #ff0000;
    --contact-bg-color: #f5f5f5;
    --contact-item-bg: white;
    --contact-text-color: #333333;
    --contact-icon-color: #007cba;
    --contact-social-bg: #007cba;
    --contact-social-color: white;
    --contact-social-hover-bg: #005a87;
    --footer-bg-color: #333333;
    --footer-text-color: #ffffff;
    --footer-title-color: #ffffff;
    --footer-accent-color: #007cba;
    --footer-link-color: #cccccc;
    --footer-link-hover-color: #ffffff;
    --footer-icon-color: #007cba;
    --footer-social-bg: rgba(255, 255, 255, 0.1);
    --footer-social-color: #ffffff;
    --footer-social-hover-bg: #007cba;
    --footer-social-radius: 50%;
    --newsletter-btn-bg: #007cba;
    --newsletter-btn-hover: #005a87;
    --copyright-text-color: #cccccc;
    --copyright-link-color: #cccccc;
    --copyright-link-hover: #ffffff;
    --footer-credits-color: #999999;
    --footer-heart-color: #ff0000;
    --whatsapp-color: #25D366;
    --whatsapp-size: 60px;
    --whatsapp-icon-size: 28px;
    --whatsapp-border-radius: 50%;
    --whatsapp-spacing: 25px;
    --whatsapp-display: flex;
    --whatsapp-counter-display: none;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
}

.site-content {
    min-height: calc(100vh - 200px);
}