/* ====================================
   ENHANCED STYLES FOR VOICES OF GAZA
   ==================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography Enhancements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Story Text Improvements */
.stories-text {
    line-height: 1.8;
    letter-spacing: 0.3px;
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    text-align: justify;
    transition: color 0.3s ease;
}

.main-text {
    line-height: 1.9;
    letter-spacing: 0.4px;
    color: #444;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto;
}

/* Share Section - White Text Override */
.share-content .main-text {
    color: #FFFFFF !important;
}

.share-content .main-headings {
    color: #FFFFFF !important;
}

/* Story Titles */
.pic-titels {
    font-weight: 600;
    font-size: 1.5rem;
    color: #2c2c2c;
    margin: 1rem 0;
    transition: color 0.3s ease;
}

.pic-titels:hover {
    color: #b70003;
}

/* Image Slider Section - White Text */
.carousel-caption .img-text,
.carousel-caption .pic-titels {
    color: #FFFFFF !important;
}

/* Main Headings */
.main-headings {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.sub-headings {
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.red-headings {
    color: #b70003;
    font-weight: 700;
}

/* Enhanced Buttons */
.btns-hero,
.explore-btn,
.share-section-btn,
.donate-section-btn {
    padding: 18px 40px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btns-hero::before,
.explore-btn::before,
.share-section-btn::before,
.donate-section-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btns-hero:hover::before,
.explore-btn:hover::before,
.share-section-btn:hover::before,
.donate-section-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btns-hero:hover,
.explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(183, 0, 3, 0.4);
    background-color: #920002 !important;
}

.share-section-btn:hover,
.donate-section-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Read Story Button */
.read-btn {
    background: linear-gradient(135deg, #b70003 0%, #920002 100%);
    color: white !important;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(183, 0, 3, 0.3);
}

.read-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(183, 0, 3, 0.5);
    background: linear-gradient(135deg, #920002 0%, #b70003 100%);
}

.read-btn a {
    color: white !important;
    text-decoration: none;
}

/* Card Enhancements */
.position-relative {
    transition: transform 0.3s ease;
}

.position-relative:hover {
    transform: translateY(-5px);
}

/* Image Overlays */
.position-relative img {
    transition: transform 0.5s ease;
}

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

/* Story Cards with Better Shadows */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Watch Button Circle */
.watch-circle {
    width: 70px;
    height: 70px;
    background: rgba(183, 0, 3, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(183, 0, 3, 0.4);
}

.card-hover:hover .watch-circle {
    opacity: 1;
    transform: scale(1.1);
}

/* Gaza Bar Statistics */
.bar-content {
    transition: transform 0.3s ease;
}

.bar-content:hover {
    transform: translateY(-5px);
}

.numbers {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Section Text */
.text-underhero {
    font-size: 1.15rem;
    line-height: 2;
    color: #555;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #3c3b39 0%, #2c2b29 100%);
}

.footer-p {
    line-height: 1.8;
    color: #dadada;
    font-size: 1rem;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #b70003 !important;
    transform: translateX(5px);
}

.follow a img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.follow a:hover img {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.2);
}

/* Horizontal Rules */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #b70003, transparent);
    margin: 3rem auto;
    opacity: 0.6;
}

/* Section Max Width */
.section-maxwidth {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Carousel Indicators */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 35px;
    border-radius: 6px;
    background-color: #b70003;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(183, 0, 3, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(183, 0, 3, 1);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* Loading Animation for Images */
img {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Menu Animation */
.dropdown-menu {
    animation: slideDown 0.3s ease;
    transform-origin: top;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* See All Link */
.see-all {
    font-weight: 600;
    font-size: 1.1rem;
    color: #b70003;
    position: relative;
    transition: all 0.3s ease;
}

.see-all::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b70003;
    transition: width 0.3s ease;
}

.see-all:hover::after {
    width: 100%;
}

.see-all:hover {
    color: #920002;
    transform: translateX(5px);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .main-headings {
        font-size: 2rem;
    }

    .sub-headings {
        font-size: 1.5rem;
    }

    .main-text {
        font-size: 1rem;
    }

    .stories-text {
        font-size: 0.95rem;
    }

    .numbers {
        font-size: 2rem;
    }
}

/* Highlight Videos Section */
.highlight-fs {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Watch Now Button */
.watch-btn {
    background: white;
    color: #3c3b39 !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.watch-btn:hover {
    background: #b70003;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(183, 0, 3, 0.4);
}

/* Donate Section Background */
.donate-background {
    background: linear-gradient(135deg, #3c3b39 0%, #2c2b29 100%);
}

/* Share Section */
.share-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Gaza Bar */
.gaza-bar {
    position: relative;
    overflow: hidden;
}

.gaza-background {
    background: linear-gradient(135deg, rgba(60, 59, 57, 0.95) 0%, rgba(44, 43, 41, 0.95) 100%);
}

/* Navbar Enhancement */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1030 !important;
}

/* Ensure navbar items are visible */
.navbar-nav {
    display: flex !important;
    align-items: center !important;
}

/* Enhanced Active State */
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 700 !important;
    border-bottom: 3px solid #b70003 !important;
    padding-bottom: 8px !important;
}

/* Navbar link hover */
.navbar-nav .nav-link:hover:not(.dropdown-toggle) {
    color: #ffffff !important;
    font-weight: 600;
    border-bottom: 2px solid #ffffff;
}

/* Navbar link states */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 0.8rem;
    transition: all 0.3s ease;
}

/* Fix Dropdown Menu - CRITICAL FIXES */
.dropdown-mega {
    position: static !important;
}

.dropdown-mega .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    display: none !important;
    width: 100% !important;
}

.dropdown-mega .dropdown-menu.show {
    display: block !important;
}

/* Ensure dropdowns are clickable */
.dropdown-toggle {
    cursor: pointer !important;
}

.dropdown-toggle:hover {
    color: #ffffff !important;
}

/* Dropdown hover fix */
.dropdown-mega:hover .dropdown-menu {
    display: block !important;
}

/* Fix dropdown menu z-index */
.dropdown-menu {
    z-index: 1050 !important;
}

/* Fix navbar collapse */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #3c3b39;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }

    .dropdown-mega .dropdown-menu {
        position: relative !important;
        width: 100% !important;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 3px solid #b70003;
    outline-offset: 2px;
}

/* Smooth Transitions for All Interactive Elements */
a, button, .btn, .nav-link, .dropdown-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection Color */
::selection {
    background-color: #b70003;
    color: white;
}

::-moz-selection {
    background-color: #b70003;
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #b70003 0%, #920002 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #920002 0%, #b70003 100%);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btns-hero,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
}

/* ====================================
   UI REFINEMENT FIXES
   ==================================== */

/* Hero Section - Ensure headline text is pure white */
.hero .main-headings {
    color: #FFFFFF !important;
}

.hero .main-text {
    color: #FFFFFF !important;
}

/* Footer Buttons - Maintain white text and icons on hover */
.footer-share:hover,
.footer-donate:hover {
    color: #FFFFFF !important;
}

.footer-share:hover i,
.footer-donate:hover i {
    color: #FFFFFF !important;
}
