/**
 * Custom CSS - Sukanya Surakshya Charitable Trust
 * Supplementary styles for components not fully handled by Tailwind utility classes.
 * NOTE: Cannot use @apply with Tailwind CDN — using standard CSS properties.
 */

/* ==========================================
   Navigation Link Styles
   ========================================== */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover {
    background-color: #FFF7ED;
    color: #B45309;
}
.nav-active {
    background-color: #FFF7ED;
    color: #B45309;
    font-weight: 700;
}

/* ==========================================
   Dropdown Menu Styles
   ========================================== */
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid #F3F4F6;
}
.dropdown-link:last-child {
    border-bottom: none;
}
.dropdown-link:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}
.dropdown-link:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}
.dropdown-link:hover {
    background-color: #FFF7ED;
    color: #B45309;
}
.dropdown-link i {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

/* ==========================================
   Mobile Navigation
   ========================================== */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
}
.mobile-nav-link:hover {
    background-color: #FFF7ED;
    color: #B45309;
}

/* ==========================================
   Social Media Icon Styles
   ========================================== */
.social-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.social-icon-lg {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.social-icon-lg:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Footer Link Styles
   ========================================== */
.footer-link {
    display: flex;
    align-items: center;
    color: #9CA3AF;
    transition: color 0.2s ease;
    text-decoration: none;
}
.footer-link:hover {
    color: #FB923C;
}

/* ==========================================
   Gallery Filter Buttons
   ========================================== */
.gallery-filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid #E5E7EB;
    color: #4B5563;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gallery-filter-btn:hover {
    background-color: #E87F17;
    color: white;
    border-color: #E87F17;
}
.gallery-filter-btn.active {
    background-color: #E87F17;
    color: white;
    border-color: #E87F17;
    box-shadow: 0 4px 6px -1px rgba(232, 127, 23, 0.3);
}

/* ==========================================
   News Ticker Animation
   ========================================== */
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.ticker-track {
    display: inline-flex;
    animation: ticker-scroll 40s linear infinite;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/* Pause on hover */
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

/* ==========================================
   Smooth Scroll & General
   ========================================== */
html {
    scroll-behavior: smooth;
}

/* Improve focus visibility for accessibility */
:focus-visible {
    outline: 2px solid #E87F17;
    outline-offset: 2px;
}

/* Hide scrollbar in ticker but allow scroll on mobile */
.ticker-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ticker-wrapper::-webkit-scrollbar {
    display: none;
}

/* ==========================================
   Gallery Item Animation
   ========================================== */
.gallery-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item.hidden-item {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ==========================================
   Partner form image responsive
   ========================================== */
@media (max-width: 640px) {
    .ticker-track {
        animation-duration: 25s;
    }
}

/* ==========================================
   Page transition effect
   ========================================== */
body {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================
   Hero Section
   ========================================== */
/* Hero text reveal animation */
.hero-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.7s ease forwards;
}
.hero-reveal-delay-1 { animation-delay: 0.15s; }
.hero-reveal-delay-2 { animation-delay: 0.3s; }
.hero-reveal-delay-3 { animation-delay: 0.45s; }
.hero-reveal-delay-4 { animation-delay: 0.6s; }
.hero-reveal-delay-5 { animation-delay: 0.75s; }
@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}
