/* 
 * Islamic & Child-Friendly Theme
 * For Aqiqah Invitation
 * Features: Balloons, Teddy Bears, Islamic Patterns
 */

/* =========================================
   CSS Variables - Color Palette (Blue Dominant)
   ========================================= */
:root {
    --primary-mint: #7EC8E3;
    /* Light blue */
    --secondary-cream: #F0F8FF;
    /* Alice blue (cream-ish) */
    --accent-gold: #D4A574;
    /* Keep gold for Islamic elegance */
    --soft-pink: #B8D4E8;
    /* Soft blue-gray instead of pink */
    --sky-blue: #5DADE2;
    /* Vibrant sky blue */
    --islamic-green: #3498DB;
    /* Changed to blue */
    --warm-brown: #6A89A7;
    /* Blue-gray */
    --text-dark: #2C3E50;
    /* Dark blue-gray */
    --text-light: #5D6D7E;
    /* Medium blue-gray */
    --gradient-islamic: linear-gradient(135deg, #7EC8E3 0%, #5DADE2 50%, #AED6F1 100%);
    --gradient-gold: linear-gradient(135deg, #D4A574 0%, #E8C9A0 100%);
    --gradient-blue: linear-gradient(135deg, #3498DB 0%, #85C1E9 50%, #AED6F1 100%);
}

/* =========================================
   Base Styles
   ========================================= */
body.islamic-child-theme {
    background: var(--secondary-cream);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text-dark);
}

/* =========================================
   Header Greeting & Floating Emoji Fix
   ========================================= */
.header-greeting {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-greeting .floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: floatEmoji 3s ease-in-out infinite;
    opacity: 0.9;
    pointer-events: none;
}

.header-greeting .emoji-1 {
    top: 5px;
    left: 10%;
    animation-delay: 0s;
}

.header-greeting .emoji-2 {
    top: 10px;
    right: 10%;
    animation-delay: 0.3s;
}

.header-greeting .emoji-3 {
    bottom: 5px;
    left: 25%;
    animation-delay: 0.6s;
}

.header-greeting .emoji-4 {
    top: 0;
    right: 25%;
    animation-delay: 0.9s;
}

.header-greeting .emoji-5 {
    bottom: 10px;
    right: 15%;
    animation-delay: 1.2s;
}

@keyframes floatEmoji {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

/* Mobile: Make emojis smaller and adjust positions */
@media (max-width: 480px) {
    .header-greeting {
        height: 60px;
        margin-bottom: 10px;
    }

    .header-greeting .floating-emoji {
        font-size: 1.3rem;
    }

    .header-greeting .emoji-1 {
        top: 5px;
        left: 5%;
    }

    .header-greeting .emoji-2 {
        top: 5px;
        right: 5%;
    }

    .header-greeting .emoji-3 {
        bottom: 5px;
        left: 20%;
    }

    .header-greeting .emoji-4 {
        top: 0;
        right: 20%;
    }

    .header-greeting .emoji-5 {
        bottom: 5px;
        right: 40%;
    }
}

/* =========================================
   Bismillah Header
   ========================================= */
.bismillah-header {
    text-align: center;
    padding: 20px;
    background: var(--gradient-gold);
    color: white;
    font-size: 1.8rem;
    font-family: 'Amiri', 'Traditional Arabic', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--accent-gold);
}

.bismillah-header::before,
.bismillah-header::after {
    content: '☪';
    margin: 0 15px;
    opacity: 0.8;
}

/* =========================================
   Islamic Pattern Border
   ========================================= */
.islamic-border {
    position: relative;
    border: 3px solid var(--accent-gold);
    border-radius: 20px;
}

.islamic-border::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: var(--secondary-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.islamic-pattern-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg,
            var(--accent-gold) 0px,
            var(--accent-gold) 20px,
            var(--islamic-green) 20px,
            var(--islamic-green) 40px,
            var(--primary-mint) 40px,
            var(--primary-mint) 60px);
    z-index: 9999;
}

/* =========================================
   Floating Balloons
   ========================================= */
.balloon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.balloon {
    position: absolute;
    bottom: -150px;
    width: 80px;
    height: 100px;
    border-radius: 50% 50% 50% 50%;
    animation: floatUp 15s ease-in-out infinite;
    opacity: 0.8;
}

.balloon::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: var(--text-light);
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid inherit;
}

.balloon-1 {
    left: 5%;
    background: #AED6F1;
    animation-delay: 0s;
    border-top-color: #AED6F1;
}

.balloon-2 {
    left: 15%;
    background: #5DADE2;
    animation-delay: 2s;
    border-top-color: #5DADE2;
}

.balloon-3 {
    left: 25%;
    background: #3498DB;
    animation-delay: 4s;
    border-top-color: #3498DB;
}

.balloon-4 {
    left: 75%;
    background: #85C1E9;
    animation-delay: 1s;
    border-top-color: #85C1E9;
}

.balloon-5 {
    left: 85%;
    background: var(--accent-gold);
    animation-delay: 3s;
    border-top-color: var(--accent-gold);
}

.balloon-6 {
    left: 95%;
    background: #7EC8E3;
    animation-delay: 5s;
    border-top-color: #7EC8E3;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(-5deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-120vh) rotate(5deg);
        opacity: 0;
    }
}

/* =========================================
   Teddy Bear Decoration
   ========================================= */
.teddy-bear {
    position: fixed;
    bottom: 20px;
    font-size: 4rem;
    z-index: 100;
    animation: teddyWave 3s ease-in-out infinite;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.2));
}

.teddy-bear-left {
    left: 20px;
}

.teddy-bear-right {
    right: 20px;
    transform: scaleX(-1);
}

@keyframes teddyWave {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* Teddy with balloon SVG style */
.teddy-with-balloon {
    position: fixed;
    bottom: 10px;
    width: 120px;
    height: auto;
    z-index: 50;
    animation: teddyBounce 2s ease-in-out infinite;
}

.teddy-with-balloon.left {
    left: 10px;
}

.teddy-with-balloon.right {
    right: 10px;
    transform: scaleX(-1);
}

@keyframes teddyBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =========================================
   Stars & Clouds
   ========================================= */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    color: var(--accent-gold);
    animation: twinkle 2s ease-in-out infinite;
    opacity: 0.6;
}

.star-1 {
    top: 10%;
    left: 10%;
    font-size: 1.5rem;
    animation-delay: 0s;
}

.star-2 {
    top: 15%;
    left: 80%;
    font-size: 1rem;
    animation-delay: 0.5s;
}

.star-3 {
    top: 5%;
    left: 50%;
    font-size: 1.2rem;
    animation-delay: 1s;
}

.star-4 {
    top: 20%;
    left: 30%;
    font-size: 0.8rem;
    animation-delay: 1.5s;
}

.star-5 {
    top: 8%;
    left: 70%;
    font-size: 1.3rem;
    animation-delay: 2s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.cloud {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: cloudFloat 20s linear infinite;
}

.cloud-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.cloud-2 {
    top: 25%;
    left: -10%;
    animation-delay: 5s;
    font-size: 2rem;
}

.cloud-3 {
    top: 5%;
    left: -10%;
    animation-delay: 10s;
    font-size: 2.5rem;
}

@keyframes cloudFloat {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(120vw);
    }
}

/* =========================================
   Crescent Moon
   ========================================= */
.crescent-moon {
    position: fixed;
    top: 50px;
    right: 50px;
    font-size: 3rem;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
    animation: moonGlow 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes moonGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(212, 165, 116, 0.8));
    }
}

/* =========================================
   Card Styles - Islamic Theme
   ========================================= */
.islamic-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 10px 40px rgba(142, 209, 198, 0.2);
    border: 2px solid var(--primary-mint);
    position: relative;
    overflow: hidden;
}

.islamic-card::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.islamic-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
}

/* =========================================
   Section Headers
   ========================================= */
.section-title-islamic {
    text-align: center;
    color: var(--islamic-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title-islamic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* =========================================
   Cover Section - Child Theme Override
   ========================================= */
.cover-section.islamic-child {
    background: var(--gradient-islamic) !important;
    min-height: 100vh;
    position: relative;
}

.cover-section.islamic-child .cover-overlay {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.cover-section.islamic-child .main-title {
    background: linear-gradient(45deg, var(--accent-gold), var(--islamic-green), var(--soft-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    text-shadow: none;
}

.cover-section.islamic-child .baby-name {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* =========================================
   Button Styles
   ========================================= */
.btn-islamic {
    background: var(--gradient-gold) !important;
    color: white !important;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.btn-islamic:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
}

.btn-mint {
    background: linear-gradient(135deg, var(--primary-mint), var(--islamic-green)) !important;
    color: white !important;
}

/* =========================================
   Form Styling
   ========================================= */
.form-islamic input,
.form-islamic select,
.form-islamic textarea {
    border: 2px solid var(--primary-mint) !important;
    border-radius: 15px !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease;
}

.form-islamic input:focus,
.form-islamic select:focus,
.form-islamic textarea:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2) !important;
    outline: none !important;
}

.form-islamic label {
    color: var(--islamic-green);
    font-weight: 600;
}

/* =========================================
   Footer
   ========================================= */
.footer-islamic {
    background: var(--gradient-gold);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-islamic::before {
    content: '☪ بارك الله ☪';
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* =========================================
   Opening Overlay - Islamic Style
   ========================================= */
#opening-overlay.islamic-child {
    background: var(--gradient-islamic) !important;
}

#opening-overlay.islamic-child .opening-content {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#opening-overlay.islamic-child .btn-open {
    background: var(--gradient-gold);
    color: white;
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 768px) {
    .teddy-bear {
        font-size: 2.5rem;
        bottom: 10px;
    }

    .teddy-bear-left {
        left: 10px;
    }

    .teddy-bear-right {
        right: 10px;
    }

    .teddy-with-balloon {
        width: 80px;
    }

    .crescent-moon {
        font-size: 2rem;
        top: 30px;
        right: 20px;
    }

    .bismillah-header {
        font-size: 1.3rem;
        padding: 15px;
    }

    .balloon {
        width: 50px;
        height: 65px;
    }
}

/* =========================================
   Print Styles - Hide decorations
   ========================================= */
@media print {

    .balloon-container,
    .teddy-bear,
    .teddy-with-balloon,
    .stars-container,
    .crescent-moon,
    .islamic-pattern-top {
        display: none !important;
    }
}