/*
Theme Name: Hello Elementor Child - NSIC
Theme URI: https://nsiclynn.org
Description: Custom child theme for North Shore Islamic Center - Light blue, calming design with Islamic aesthetic
Author: North Shore Islamic Center
Author URI: https://nsiclynn.org
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   NSIC Custom Styles
   ========================================================================== */

/* Color Palette - Refined for Sleek Modern Look */
:root {
    /* Primary Colors - Sophisticated Blues */
    --nsic-primary-blue: #5B9BD5;
    --nsic-primary-blue-dark: #2E75B6;
    --nsic-primary-blue-light: #8BBBDE;
    --nsic-primary-blue-lighter: #EBF4FA;
    --nsic-primary-blue-accent: #4A90E2;
    
    /* Accent Colors - Subtle Warmth */
    --nsic-accent-coral: #C9826B;
    --nsic-accent-gold: #D4AF37;
    --nsic-accent-teal: #3AAFA9;
    
    /* Neutrals - Modern & Clean */
    --nsic-white: #FFFFFF;
    --nsic-off-white: #FAFBFC;
    --nsic-light-gray: #F4F6F8;
    --nsic-medium-gray: #E1E8ED;
    --nsic-border-gray: #DDE2E8;
    --nsic-text-dark: #1A202C;
    --nsic-text-medium: #4A5568;
    --nsic-text-light: #718096;
    
    /* Functional Colors - Refined */
    --nsic-success: #38A169;
    --nsic-donate: #2F855A;
    --nsic-donate-hover: #276749;
    --nsic-info: #4299E1;
    --nsic-warning: #ED8936;
    
    /* Gradients */
    --nsic-gradient-primary: linear-gradient(135deg, #5B9BD5 0%, #8BBBDE 100%);
    --nsic-gradient-hero: linear-gradient(180deg, #EBF4FA 0%, #FFFFFF 100%);
    --nsic-gradient-dark: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    
    /* Spacing */
    --nsic-section-padding: 80px 0;
    --nsic-container-max-width: 1200px;
    
    /* Shadows - Subtle Depth */
    --nsic-shadow-sm: 0 2px 8px rgba(26, 32, 44, 0.06);
    --nsic-shadow-md: 0 4px 16px rgba(26, 32, 44, 0.08);
    --nsic-shadow-lg: 0 8px 24px rgba(26, 32, 44, 0.12);
    --nsic-shadow-xl: 0 12px 32px rgba(26, 32, 44, 0.15);
}

/* Body & General Styling */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--nsic-text-dark);
    line-height: 1.7;
    background: var(--nsic-white);
}

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

/* Arabic/Islamic Text Styling */
.bismillah,
.arabic-text {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 1.5em;
    direction: rtl;
    text-align: center;
    color: var(--nsic-primary-blue);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Section Styling */
.nsic-section {
    padding: var(--nsic-section-padding);
    position: relative;
}

.nsic-section-light {
    background: var(--nsic-light-gray);
}

.nsic-section-white {
    background: var(--nsic-white);
}

.nsic-section-blue {
    background: var(--nsic-primary-blue-lighter);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--nsic-text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--nsic-primary-blue); }
h3 { font-size: 1.75rem; }

/* Buttons - Refined & Sleek */
.nsic-btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.3px;
    font-size: 15px;
}

.nsic-btn-primary {
    background: var(--nsic-gradient-primary);
    color: var(--nsic-white);
    box-shadow: var(--nsic-shadow-md);
}

.nsic-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--nsic-shadow-xl);
}

.nsic-btn-donate {
    background: linear-gradient(135deg, var(--nsic-donate) 0%, var(--nsic-success) 100%);
    color: var(--nsic-white);
    box-shadow: var(--nsic-shadow-md);
}

.nsic-btn-donate:hover {
    background: linear-gradient(135deg, var(--nsic-donate-hover) 0%, var(--nsic-donate) 100%);
    transform: translateY(-3px);
    box-shadow: var(--nsic-shadow-xl);
}

/* Card Styling - Modern & Sleek */
.nsic-card {
    background: var(--nsic-white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--nsic-shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--nsic-border-gray);
    position: relative;
    overflow: hidden;
}

.nsic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--nsic-gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nsic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nsic-shadow-xl);
    border-color: var(--nsic-primary-blue-light);
}

.nsic-card:hover::before {
    transform: scaleX(1);
}

/* Sticky Donate Button - Sleek & Polished */
.nsic-sticky-donate {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--nsic-donate) 0%, var(--nsic-success) 100%);
    color: var(--nsic-white);
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: var(--nsic-shadow-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-sleek 3s ease-in-out infinite;
    letter-spacing: 0.5px;
    font-size: 15px;
}

.nsic-sticky-donate:hover {
    background: linear-gradient(135deg, var(--nsic-donate-hover) 0%, var(--nsic-donate) 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--nsic-shadow-xl);
}

@keyframes pulse-sleek {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(47, 133, 90, 0.35);
    }
    50% {
        box-shadow: 0 12px 32px rgba(47, 133, 90, 0.5);
    }
}

/* Announcement Ticker - Refined */
.nsic-announcement-ticker {
    background: var(--nsic-gradient-primary);
    color: var(--nsic-white);
    padding: 14px 0;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(91, 155, 213, 0.15);
}

.nsic-ticker-content {
    animation: scroll-left 20s linear infinite;
    white-space: nowrap;
    display: inline-block;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Prayer Times Styling */
.nsic-prayer-times {
    text-align: center;
}

.nsic-prayer-card {
    background: var(--nsic-white);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.nsic-prayer-card.active {
    background: var(--nsic-primary-blue);
    color: var(--nsic-white);
    transform: scale(1.05);
}

.nsic-prayer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

/* Contact Section */
.nsic-contact-info {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 1.1rem;
}

.nsic-contact-info i {
    color: var(--nsic-primary-blue);
    margin-right: 15px;
    font-size: 1.3rem;
}

/* Google Maps Embed */
.nsic-map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.nsic-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Islamic Pattern Background (Subtle) */
.nsic-pattern-overlay {
    position: relative;
}

.nsic-pattern-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234A90E2' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.nsic-pattern-overlay > * {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --nsic-section-padding: 50px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .nsic-sticky-donate {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .bismillah,
    .arabic-text {
        font-size: 1.2em;
    }
}

/* Accessibility */
.nsic-btn:focus,
a:focus {
    outline: 2px solid var(--nsic-primary-blue);
    outline-offset: 2px;
}

/* Navigation Header - Sleek & Modern */
.nsic-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

.nsic-header-nav .nav-link {
    color: var(--nsic-text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nsic-header-nav .nav-link:hover {
    color: var(--nsic-primary-blue);
    background: var(--nsic-primary-blue-lighter);
}

.nsic-header-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nsic-primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nsic-header-nav .nav-link:hover::after {
    width: 80%;
}

.nsic-header-nav .nsic-nav-donate {
    background: linear-gradient(135deg, var(--nsic-donate) 0%, var(--nsic-success) 100%);
    color: var(--nsic-white);
    border-radius: 25px;
    padding: 10px 24px;
}

.nsic-header-nav .nsic-nav-donate:hover {
    background: linear-gradient(135deg, var(--nsic-donate-hover) 0%, var(--nsic-donate) 100%);
    transform: translateY(-2px);
    box-shadow: var(--nsic-shadow-md);
}

.nsic-header-nav .nsic-nav-donate::after {
    display: none;
}

/* Active Navigation Link State - Circular Background */
.nsic-header-nav .nav-link.active {
    color: var(--nsic-primary-blue);
    font-weight: 600;
    background: var(--nsic-primary-blue-lighter);
    border-radius: 20px;
}

.nsic-header-nav .nav-link.active::after {
    display: none;
}

/* For inline-styled nav links */
a.nav-link.active {
    color: #5B9BD5 !important;
    background: #EBF4FA !important;
    border-radius: 20px !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
}

a.nav-link.active::after {
    display: none;
}

/* Header Compensation (push content down to account for fixed header) */
.elementor-location-header + * {
    margin-top: 80px;
}

/* Hamburger Menu Icon */
.nsic-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
}

.nsic-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--nsic-text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hamburger Animation */
.nsic-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nsic-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nsic-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nsic-menu-toggle {
        display: block;
    }
    
    .nsic-header-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 80px);
        background: var(--nsic-white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 20px 0;
        transition: right 0.3s ease;
        z-index: 9998;
    }
    
    .nsic-header-nav.active {
        right: 0;
    }
    
    .nsic-header-nav .nav-link {
        text-align: left;
        padding: 15px 20px;
        border-bottom: 1px solid var(--nsic-medium-gray);
    }
    
    .nsic-header-nav .nav-link:hover {
        background: var(--nsic-primary-blue-lighter);
    }
    
    .nsic-header-nav .nsic-nav-donate {
        margin: 10px 20px;
        text-align: center;
        border-radius: 25px;
        border-bottom: none;
    }
}

/* Print Styles */
@media print {
    .nsic-sticky-donate,
    .nsic-announcement-ticker,
    .nsic-header-nav {
        display: none;
    }
}
