/*
 * ShahedOne Stylesheet - Ultimate Version 2
 * - شامل تم شیشه مایع (Liquid Glass)
 * - استایل‌های چالش روزانه (جدید)
 * - ریسپانسیو کامل برای موبایل
 */

/* --- 1. ایمپورت فونت‌های سفارشی --- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Roboto+Mono:wght@400&display=swap');


/* --- 2. Base Styling (Liquid Glass) --- */
body {
    font-family: 'Inter', sans-serif;
    
    /* پس‌زمینه رنگی و مایع (Fluid Gradient) - شبیه iOS */
    background-color: #f0f2f5; 
    background-image:
        radial-gradient(at 40% 20%, hsla(28, 100%, 74%, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 10%, hsla(189, 100%, 56%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(340, 100%, 76%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(22, 100%, 77%, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 100%, hsla(242, 100%, 70%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 0%, hsla(343, 100%, 76%, 0.2) 0px, transparent 50%);
    background-attachment: fixed; 
    
    color: #1a1a2e; 
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- 3. کلاس‌های فونت سفارشی --- */
.font-cursive-title {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

.font-footer-credit {
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
}

/* --- 4. Card Styling (iOS Liquid Glass) --- */
.glass-neon-card {
    background-color: rgba(255, 255, 255, 0.1); 
    
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 1.25rem; /* 20px */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
    
    position: relative;
    overflow: hidden;
}

/* --- 5. Button Styling --- */
.neon-button {
    background-color: #3b82f6; 
    color: white;
    border-radius: 0.75rem; 
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgb(59 130 246 / 0.1);
}
.neon-button:hover {
    background-color: #2563eb; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgb(59 130 246 / 0.2);
}
.neon-button:disabled {
    background-color: #93c5fd; 
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.neon-button-secondary {
    background-color: rgba(243, 244, 246, 0.3); 
    color: #374151; 
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem; 
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(5px); 
}
.neon-button-secondary:hover {
    background-color: rgba(229, 231, 235, 0.5); 
    color: #111827; 
}

/* --- 6. Navigation Styling --- */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2); 
    color: #2563eb; 
    font-weight: 600;
    border-right: 0; 
    border-top: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    nav.glass-neon-card {
        background-color: rgba(255, 255, 255, 0.1); 
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
    }

    .nav-link.active {
        background-color: transparent;
        color: #2563eb; 
        border-bottom: 3px solid #3b82f6;
        border-top: 0;
        box-shadow: none;
    }
}


/* --- 7. Forms & Modals --- */
.form-input-neon {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #111827;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}
.form-input-neon:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5); 
    background-color: rgba(255, 255, 255, 0.5); 
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}
.form-input-neon::placeholder {
    color: #374151; 
    opacity: 0.8;
}

.login-option-button {
    background-color: rgba(255, 255, 255, 0.15); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #374151; 
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}
.login-option-button:hover {
    background-color: rgba(239, 246, 255, 0.5); 
    border-color: rgba(59, 130, 246, 0.3); 
    color: #2563eb; 
}

/* --- 8. Scrollbar --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}
.neon-text-blue {
    color: #3b82f6; 
}


/* --- 9. Story Reel Styling --- */
.story-ring {
    transition: all 0.3s ease;
}
.story-unseen {
    background-color: #ef4444; 
}
.story-seen {
    background-color: #d1d5db; 
}

#feed-container .glass-neon-card {
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

#story-reel-container.bg-white {
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


/* --- 10. Base Tailwind Overrides --- */
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 11. (جدید) Challenge Options Styling --- */
.challenge-option {
    background-color: rgba(255, 255, 255, 0.15); /* شیشه‌ای */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}
.challenge-option:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}
/* جواب درست (سبز) */
.challenge-option.correct {
    background-color: rgba(34, 197, 94, 0.3); 
    border-color: #22c55e;
    color: #14532d;
}
/* جواب غلط (قرمز) */
.challenge-option.wrong {
    background-color: rgba(239, 68, 68, 0.3); 
    border-color: #ef4444;
    color: #7f1d1d;
}


/* --- 12. Responsive for Small Phones (4.5 inch) --- */
@media (max-width: 380px) {
    main {
        padding-left: 0.75rem; 
        padding-right: 0.75rem; 
        padding-top: 1rem; 
    }
    
    .glass-neon-card {
        padding: 1rem; 
    }
    
    #comment-modal .glass-neon-card,
    #search-modal .glass-neon-card,
    #create-post-modal .glass-neon-card,
    #likes-modal .glass-neon-card {
        padding: 1rem;
    }

    h1.text-3xl {
        font-size: 1.5rem; 
        line-height: 2rem;
    }
    h1.font-cursive-title {
        font-size: 2.25rem; 
        line-height: 2.5rem;
    }
    h2.text-2xl, h3.text-xl {
        font-size: 1.25rem; 
        line-height: 1.75rem;
    }

    .login-option-button {
        padding: 0.75rem; 
        font-size: 0.875rem; 
    }
    
    #dashboard-send-button {
        padding-left: 0.75rem !important; 
        padding-right: 0.75rem !important;
        padding-top: 0.5rem !important; 
        padding-bottom: 0.5rem !important;
    }
    #dashboard-send-button i {
        width: 1.25rem; 
        height: 1.25rem;
    }
    #dashboard-chat-input {
        font-size: 0.875rem; 
    }
    
    .story-reel-item .story-avatar {
        width: 3rem; 
        height: 3rem; 
    }
    .story-reel-item {
        width: 4rem; 
    }
    
    nav.glass-neon-card .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    nav.glass-neon-card .nav-link span {
        font-size: 0.65rem; 
    }
    nav.glass-neon-card .nav-link i {
        width: 1.25rem; 
        height: 1.25rem; 
    }
    
    #add-teacher-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    #add-teacher-form button {
        margin-top: 0.5rem;
    }
    
    #points-admin-panel .flex.items-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    #points-admin-panel .flex.items-center.space-x-4 {
        margin-left: 0; 
        width: 100%;
        justify-content: space-between; 
    }
}