/* ================================================
   İSLAMİ FÜTÜRİST ANA SAYFA CSS
   Benzersiz tasarım - Namaz vakitleri dashboard
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Orbitron:wght@400;600;700;900&family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #FFD700;
    --deep-blue: #0A1628;
    --space-blue: #1A2F4F;
    --accent-teal: #00D9FF;
    --soft-white: #F5F5DC;
    --prayer-active: #00FFB3;
    --prayer-passed: rgba(212, 175, 55, 0.3);
    --kerahat-red: #FF3366;
    --glow-intensity: 0 0 30px;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Cairo', sans-serif;
    background: radial-gradient(ellipse at top, var(--deep-blue), #000814);
    color: var(--soft-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   ANIMATED STAR FIELD BACKGROUND
   ============================================ */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   GEOMETRIC ISLAMIC PATTERN OVERLAY
   ============================================ */
.pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(212, 175, 55, 0.02) 100px, rgba(212, 175, 55, 0.02) 101px),
        repeating-linear-gradient(-45deg, transparent, transparent 100px, rgba(0, 217, 255, 0.02) 100px, rgba(0, 217, 255, 0.02) 101px);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   HEADER - ARABIC CALLIGRAPHY STYLE
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.header::before {
    content: '☪';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    color: var(--primary-gold);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: var(--glow-intensity) var(--primary-gold);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.subtitle {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    font-style: italic;
}

/* ============================================
   LOCATION SELECTOR - FUTURISTIC CARD
   ============================================ */
.location-card {
    background: linear-gradient(135deg, rgba(26, 47, 79, 0.9), rgba(10, 22, 40, 0.95));
    border: 2px solid var(--primary-gold);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(212, 175, 55, 0.1),
        var(--glow-intensity) var(--primary-gold);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: scan 10s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.location-card h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-teal);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 3px;
}

#locationBtn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--deep-blue);
    border: none;
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

#locationBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

#locationBtn:active {
    transform: scale(0.98);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.divider span {
    padding: 0 20px;
    color: var(--accent-teal);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Manual Selection */
.manual-selection {
    position: relative;
    z-index: 1;
}

#citySelect {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 47, 79, 0.9), rgba(10, 22, 40, 0.95));
    color: var(--soft-white);
    border: 2px solid var(--accent-teal);
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300D9FF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 50px;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.2);
}

#citySelect:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 5px 30px rgba(212, 175, 55, 0.4);
}

#citySelect:focus {
    outline: none;
    border-color: var(--prayer-active);
    box-shadow: 0 0 30px rgba(0, 255, 179, 0.3);
}

#citySelect option {
    background: var(--deep-blue);
    color: var(--soft-white);
    padding: 15px;
    font-family: 'Cairo', sans-serif;
}

#locationResult {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   PRAYER DASHBOARD
   ============================================ */
.prayer-dashboard {
    display: none;
    margin-top: 40px;
}

.prayer-dashboard.active {
    display: block;
    animation: slideIn 0.6s ease-out;
}

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

.city-name {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 40px;
    text-shadow: var(--glow-intensity) var(--primary-gold);
}

/* ============================================
   NEXT PRAYER COUNTDOWN - HERO SECTION
   ============================================ */
.next-prayer-hero {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(212, 175, 55, 0.2));
    border: 3px solid var(--accent-teal);
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 217, 255, 0.3),
        inset 0 0 50px rgba(0, 217, 255, 0.1);
}

.next-prayer-hero.kerahat {
    border-color: var(--kerahat-red);
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.3), rgba(212, 175, 55, 0.2));
    animation: kerahat-pulse 1.5s ease-in-out infinite;
}

@keyframes kerahat-pulse {
    0%, 100% { box-shadow: 0 20px 60px rgba(255, 51, 102, 0.3); }
    50% { box-shadow: 0 20px 80px rgba(255, 51, 102, 0.6); }
}

.next-prayer-label {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    color: var(--soft-white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.next-prayer-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--prayer-active);
    margin-bottom: 30px;
    text-shadow: 0 0 30px var(--prayer-active);
}

.countdown-timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--secondary-gold);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.countdown-timer.kerahat {
    color: var(--kerahat-red);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.kerahat-warning {
    display: none;
    background: var(--kerahat-red);
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    box-shadow: 0 0 30px var(--kerahat-red);
}

.kerahat-warning.active {
    display: inline-block;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================
   PRAYER TIMES GRID
   ============================================ */
.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.prayer-card {
    background: linear-gradient(135deg, rgba(26, 47, 79, 0.8), rgba(10, 22, 40, 0.9));
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.prayer-card.passed {
    opacity: 0.4;
    border-color: var(--prayer-passed);
}

.prayer-card.current {
    border-color: var(--prayer-active);
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.2), rgba(0, 217, 255, 0.2));
    box-shadow: 0 0 40px var(--prayer-active);
    transform: scale(1.05);
}

.prayer-card:hover:not(.passed) {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}

.prayer-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.prayer-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.prayer-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--soft-white);
}

.prayer-card.current .prayer-time {
    color: var(--prayer-active);
    text-shadow: 0 0 20px var(--prayer-active);
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading {
    text-align: center;
    padding: 60px;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(212, 175, 55, 0.3);
    border-top: 8px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .next-prayer-name {
        font-size: 2.5rem;
    }
    
    .countdown-timer {
        font-size: 3rem;
    }
    
    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-card {
        padding: 30px 20px;
    }
    
    .next-prayer-hero {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .city-name {
        font-size: 1.8rem;
    }
    
    .next-prayer-name {
        font-size: 2rem;
    }
    
    .countdown-timer {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .prayer-times-grid {
        grid-template-columns: 1fr;
    }
}
/* Günlük İçerik Bölümü */
.daily-content-section {
    margin: 50px 0;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.daily-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-card {
    background: linear-gradient(135deg, rgba(26, 47, 79, 0.95) 0%, rgba(10, 22, 40, 0.95) 100%);
    border: 2px solid #D4AF37;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3);
}

.hadis-card {
    border-color: #40E0D0;
}

.ayet-card {
    border-color: #D4AF37;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.card-icon {
    font-size: 2rem;
}

.card-header h3 {
    color: #D4AF37;
    font-size: 1.5rem;
    margin: 0;
}

.card-body {
    color: white;
}

.arabic-text {
    font-family: 'Amiri', 'Times New Roman', serif;
    font-size: 1.8rem;
    line-height: 2.5;
    text-align: right;
    direction: rtl;
    color: #D4AF37;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    border-right: 4px solid #D4AF37;
}

.turkish-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #E8E8E8;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-style: italic;
}

.source {
    font-size: 0.9rem;
    color: #94A3B8;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.source strong {
    color: #D4AF37;
}

.reference {
    color: #40E0D0;
}

.no-content {
    text-align: center;
    padding: 40px 20px;
    color: #94A3B8;
    font-style: italic;
}

@media (max-width: 768px) {
    .daily-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .arabic-text {
        font-size: 1.5rem;
        line-height: 2.2;
    }
    
    .turkish-text {
        font-size: 1rem;
    }
}

/* Konum Bilgi Kartı */
    .location-info-card {
        background: linear-gradient(135deg, rgba(26, 47, 79, 0.9) 0%, rgba(10, 22, 40, 0.9) 100%);
        border: 2px solid var(--primary-gold, #D4AF37);
        border-radius: 20px;
        padding: 25px;
        margin-bottom: 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    
    .current-location-display {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 20px;
        background: rgba(64, 224, 208, 0.1);
        border-radius: 15px;
        border: 2px solid rgba(64, 224, 208, 0.3);
    }
    
    .location-icon {
        font-size: 2rem;
    }
    
    .location-text {
        flex: 1;
    }
    
    .location-label {
        font-size: 0.85rem;
        color: #94A3B8;
        margin-bottom: 5px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .location-name {
        color: white;
        font-weight: 700;
        font-size: 1.3rem;
    }
    
    @media (max-width: 768px) {
        .current-location-display {
            flex-direction: column;
            text-align: center;
            gap: 10px;
        }
    }
   
    