/* ===================================
   Islamische Bestattung Page Styles
   Islamic burial - Gold accents + Arabic text support
   =================================== */

/* Import Arabic font */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');

/* ===================================
   Hero Section - Islamic Styling
   =================================== */

/* Islamic particles container */
#islamicParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Golden divine light with subtle shimmer */
#islamicParticles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(125deg, transparent 0%, rgba(212, 175, 55, 0.10) 20%, transparent 40%),
        linear-gradient(65deg, transparent 30%, rgba(255, 215, 0, 0.08) 50%, transparent 70%),
        linear-gradient(145deg, transparent 60%, rgba(184, 147, 95, 0.06) 80%, transparent 100%);
    animation: divineLight 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes divineLight {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.75;
        transform: translateX(5px) scale(1.01);
    }
}

/* Subtle crescent and star motif overlay */
#islamicParticles::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><path d="M60,30 L63,45 L78,48 L63,51 L60,66 L57,51 L42,48 L57,45 Z" fill="none" stroke="%23d4af37" stroke-width="0.4" opacity="0.12"/></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,20 Q40,50 50,80 Q70,65 70,50 Q70,35 50,20" fill="none" stroke="%23d4af37" stroke-width="0.4" opacity="0.08"/></svg>');
    background-size: 120px 120px, 100px 100px;
    background-position: 10% 20%, 85% 75%;
    opacity: 0.3;
    pointer-events: none;
    z-index: 2;
    animation: celestialFloat 50s linear infinite;
}

@keyframes celestialFloat {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Fix hero button hover readability */
.islamic-hero .hero-btn-primary {
    color: var(--color-bg-primary);
}

.islamic-hero .hero-btn-primary:hover {
    color: var(--color-bg-primary);
    text-shadow: none;
}

/* Verse container in hero - more compact */
.islamic-hero .verse-container {
    margin-top: 0;
    margin-bottom: var(--spacing-8);
    max-width: 500px;
    padding: var(--spacing-4);
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.islamic-hero .quran-verse {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-2);
}

.islamic-hero .verse-translation {
    font-size: 0.85rem;
    margin-top: var(--spacing-2);
}

/* ===================================
   Ambient Gold Particles - Rising & Floating
   =================================== */

/* Base particle styling */
.islamic-particle {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.islamic-particle::before {
    content: '';
    position: absolute;
    width: var(--particle-size, 3px);
    height: var(--particle-size, 3px);
    background: radial-gradient(
        circle at 40% 40%,
        rgba(255, 215, 0, 0.9) 0%,
        rgba(212, 175, 55, 0.7) 50%,
        rgba(184, 147, 95, 0.5) 100%
    );
    border-radius: 50%;
    box-shadow:
        0 0 8px rgba(255, 215, 0, 0.6),
        0 0 14px rgba(212, 175, 55, 0.4),
        inset 0.5px 0.5px 1px rgba(255, 255, 255, 0.5);
    filter: blur(0.4px);
}

/* Rising light particles (upward movement) */
.gold-rising {
    animation: goldRise var(--duration) ease-out forwards;
}

@keyframes goldRise {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(var(--rise-distance)) translateX(var(--drift)) scale(1);
        opacity: 0;
    }
}

/* Floating dust particles (gentle drift) */
.gold-floating {
    animation: goldFloat var(--duration) ease-in-out forwards;
}

@keyframes goldFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.3);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.5;
    }
    85% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(var(--float-distance)) translateX(var(--drift)) scale(0.8);
        opacity: 0;
    }
}

/* Twinkling star particles (pulsing glow) */
.gold-star {
    width: calc(var(--particle-size, 3px) * 1.5);
    height: calc(var(--particle-size, 3px) * 1.5);
    animation: starTwinkle var(--duration) ease-in-out infinite;
}

/* Bright star center with sharp vertical/horizontal rays */
.gold-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--particle-size, 3px) * 1.5);
    height: calc(var(--particle-size, 3px) * 1.5);
    transform: translate(-50%, -50%);
    background:
        /* Horizontal ray - sharp */
        linear-gradient(to right,
            transparent 0%,
            transparent 35%,
            rgba(255, 215, 0, 0.15) 40%,
            rgba(255, 215, 0, 0.6) 47%,
            rgba(255, 255, 255, 1) 49.5%,
            rgba(255, 215, 0, 1) 50%,
            rgba(255, 255, 255, 1) 50.5%,
            rgba(255, 215, 0, 0.6) 53%,
            rgba(255, 215, 0, 0.15) 60%,
            transparent 65%,
            transparent 100%),
        /* Vertical ray - sharp */
        linear-gradient(to bottom,
            transparent 0%,
            transparent 35%,
            rgba(255, 215, 0, 0.15) 40%,
            rgba(255, 215, 0, 0.6) 47%,
            rgba(255, 255, 255, 1) 49.5%,
            rgba(255, 215, 0, 1) 50%,
            rgba(255, 255, 255, 1) 50.5%,
            rgba(255, 215, 0, 0.6) 53%,
            rgba(255, 215, 0, 0.15) 60%,
            transparent 65%,
            transparent 100%),
        /* Bright center core */
        radial-gradient(circle at center,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 215, 0, 1) 15%,
            rgba(255, 215, 0, 0.9) 30%,
            rgba(212, 175, 55, 0.4) 50%,
            transparent 70%);
    box-shadow:
        0 0 2px rgba(255, 255, 255, 1),
        0 0 4px rgba(255, 215, 0, 1),
        0 0 8px rgba(255, 215, 0, 0.9),
        0 0 12px rgba(212, 175, 55, 0.7),
        0 0 16px rgba(212, 175, 55, 0.4),
        0 0 20px rgba(212, 175, 55, 0.2);
}

/* Sharp diagonal rays for 4-point star */
.gold-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--particle-size, 3px) * 1.3);
    height: calc(var(--particle-size, 3px) * 1.3);
    transform: translate(-50%, -50%) rotate(45deg);
    background:
        /* First diagonal ray */
        linear-gradient(to right,
            transparent 0%,
            transparent 38%,
            rgba(255, 215, 0, 0.1) 43%,
            rgba(255, 215, 0, 0.5) 48%,
            rgba(255, 215, 0, 0.8) 50%,
            rgba(255, 215, 0, 0.5) 52%,
            rgba(255, 215, 0, 0.1) 57%,
            transparent 62%,
            transparent 100%),
        /* Second diagonal ray */
        linear-gradient(to bottom,
            transparent 0%,
            transparent 38%,
            rgba(255, 215, 0, 0.1) 43%,
            rgba(255, 215, 0, 0.5) 48%,
            rgba(255, 215, 0, 0.8) 50%,
            rgba(255, 215, 0, 0.5) 52%,
            rgba(255, 215, 0, 0.1) 57%,
            transparent 62%,
            transparent 100%);
}

@keyframes starTwinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.7);
        filter: brightness(0.8);
    }
    15% {
        opacity: 0.6;
        transform: scale(0.7);
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        transform: scale(0.7);
        filter: brightness(1.5) saturate(1.2);
    }
    85% {
        opacity: 0.6;
        transform: scale(0.7);
        filter: brightness(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.7);
        filter: brightness(0.8);
    }
}

/* ===================================
   Phoenix Logo Particles
   =================================== */

/* Phoenix particles container */
.phoenix-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Individual phoenix particle */
.islamic-hero .phoenix-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    animation: oozeOut var(--ooze-duration) ease-out forwards;
    will-change: transform, opacity;
}

/* Phoenix particle appearance - gold dust for Islamic theme */
.islamic-hero .phoenix-particle::before {
    content: '';
    position: absolute;
    width: var(--particle-size, 8px);
    height: var(--particle-size, 8px);
    background: radial-gradient(
        circle at 35% 35%,
        rgba(255, 215, 0, 1) 0%,
        rgba(212, 175, 55, 0.95) 30%,
        rgba(184, 147, 95, 0.85) 60%,
        rgba(212, 175, 55, 0.7) 100%
    );
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.8);
    box-shadow:
        0 0 12px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(212, 175, 55, 0.6),
        inset 1px 1px 3px rgba(255, 255, 255, 0.6);
    filter: blur(0.3px);
}

/* Oozing outward animation */
@keyframes oozeOut {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0.3);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%)
                   translate(var(--ooze-x), var(--ooze-y))
                   scale(0.8);
        opacity: 0;
    }
}

/* ===================================
   Arabic/Bilingual Text Styling
   =================================== */

.arabic-text {
    display: block;
    font-family: 'Amiri', serif;
    direction: rtl;
    color: var(--color-accent-gold);
    font-weight: 700;
    line-height: 1.6;
}

.german-text {
    display: block;
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Islamic hero specific */
.islamic-hero .arabic-text {
    font-size: 2rem;
    margin-bottom: var(--spacing-2);
}

.islamic-hero .german-text {
    font-size: 1.75rem;
}

/* Subtitle styling */
.islamic-subtitle .arabic-text {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.islamic-subtitle .german-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Quranic verse styling */
.verse-container {
    margin-top: var(--spacing-8);
    padding: var(--spacing-6);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quran-verse {
    font-size: 1.3rem;
    color: var(--color-accent-gold);
    font-family: 'Amiri', serif;
    direction: rtl;
    text-align: center;
    line-height: 1.8;
    margin-bottom: var(--spacing-3);
}

.verse-translation {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-style: italic;
    direction: ltr;
    margin-top: var(--spacing-3);
    font-family: var(--font-serif);
}

/* ===================================
   Introduction Section
   =================================== */

.intro-section {
    background: var(--color-bg-secondary);
    padding: 4rem 0;
}

.intro-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-12);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.intro-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.intro-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ===================================
   Benefits Grid / Service Cards
   =================================== */

.benefits-section {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent-gold);
    stroke-width: 2;
}

/* ===================================
   Process Timeline
   =================================== */

.process-section {
    background: linear-gradient(135deg,
        var(--color-bg-secondary) 0%,
        var(--color-bg-primary) 100%
    );
    padding: var(--spacing-20) 0;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

.process-step {
    display: flex;
    gap: var(--spacing-6);
    align-items: flex-start;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 80px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(180deg,
        var(--color-accent-gold) 0%,
        rgba(212, 175, 55, 0.3) 100%
    );
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--color-accent-gold),
        var(--color-accent-gold-light)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-bg-primary);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.step-content h3 {
    font-size: var(--font-size-xl);
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-3);
}

.step-content p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===================================
   Cemetery Cards
   =================================== */

.burial-note {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--color-accent-gold);
    border-radius: 8px;
}

.burial-note strong {
    color: var(--color-accent-gold);
}

/* ===================================
   Golden CTA Section
   =================================== */

.golden-cta-section h2,
.golden-cta-section p {
    color: var(--color-bg-primary) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.golden-cta-features .golden-feature {
    color: var(--color-bg-primary);
}

/* ===================================
   WhatsApp Button
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: var(--spacing-8);
    right: var(--spacing-8);
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro-layout {
        grid-template-columns: 1fr;
    }

    .intro-lead {
        font-size: 1.1rem;
    }

    .burial-note {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .process-section {
        padding: var(--spacing-16) 0;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .process-step::before {
        display: none;
    }

    .step-number {
        margin: 0 auto var(--spacing-4);
    }

    .whatsapp-float {
        bottom: var(--spacing-4);
        right: var(--spacing-4);
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .islamic-hero .arabic-text {
        font-size: 1.75rem;
    }

    .islamic-hero .german-text {
        font-size: 1.5rem;
    }

    .quran-verse {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .intro-section {
        padding: 3rem 0;
    }

    .benefits-section {
        padding: 3rem 0;
    }

    .intro-lead {
        font-size: 1rem;
    }

    .burial-note {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .islamic-hero .arabic-text {
        font-size: 1.5rem;
    }

    .islamic-hero .german-text {
        font-size: 1.25rem;
    }

    .quran-verse {
        font-size: 1.1rem;
    }

    .verse-container {
        padding: var(--spacing-4);
    }
}

/* ===================================
   Light Theme Support
   =================================== */

[data-theme="light"] .intro-section {
    background: #f8f9fa;
}

[data-theme="light"] .burial-note {
    background: rgba(212, 175, 55, 0.08);
    border-left-color: var(--color-accent-gold);
}

[data-theme="light"] .burial-note strong {
    color: var(--color-accent-gold);
}

[data-theme="light"] .golden-cta-section h2,
[data-theme="light"] .golden-cta-section p {
    color: var(--color-bg-primary) !important;
}

[data-theme="light"] .verse-container {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.25);
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .hero-section {
        background: white;
        color: black;
    }

    .verse-container {
        border: 1px solid #333;
        background: #f9f9f9;
    }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }

    .phoenix-particle {
        animation: none;
        opacity: 0;
    }
}
