/* static/css/style.css */

/* Custom Tailwind Configuration - Variables for consistent theming */
:root {
    --purple-dark: #0F001F; /* Darker deep purple for primary background */
    --purple-card: #1E003D; /* Slightly lighter deep purple for card backgrounds */
    --accent-purple: #C220E7; /* Vibrant purple for main accents (buttons, links, headings) */
    --accent-pink: #FF00E0; /* Bright pink for secondary accents (icons, underlines) */
    --text-light: #F0E0FF; /* Light purple-ish white for main text */
    --text-medium: #D0B0E0; /* Muted purple-ish gray for secondary text */
}

/* Base Body Styles */
body {
    font-family: 'Shabnam', sans-serif; /* Persian font from Google Fonts */
    background-color: var(--purple-dark);
    color: var(--text-light);
    overflow-x: hidden; /* Prevents horizontal scroll issues */
    direction: rtl; /* Set default text direction to right-to-left */
    text-align: right; /* Align text to the right for RTL languages */
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    /* برای نمایش اعداد فارسی */
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    /* این دو خط برای تبدیل اعداد به فارسی */
    unicode-bidi: isolate;
    direction: rtl;
}


/* Headings Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Shabnam', sans-serif; /* Keep Vazirmatn for headings */
    color: var(--accent-purple); /* Headings use the accent purple */
}

/* General Link Styles (used in navbar/footer if not overridden by Tailwind classes) */
a {
    color: var(--text-light);
    text-decoration: none;
}

a:hover {
    color: var(--accent-purple); /* Hover color for general links */
}


/* Custom Button Glow Effect */
.btn-glow {
    box-shadow: 0 0 10px rgba(194, 32, 231, 0.5), 0 0 20px rgba(194, 32, 231, 0.3);
    transition: all 0.3s ease; /* Smooth transition for all properties */
}

.btn-glow:hover {
    box-shadow: 0 0 15px rgba(194, 32, 231, 0.8), 0 0 30px rgba(194, 32, 231, 0.5);
    transform: translateY(-2px); /* Slight lift on hover */
}

.btn-animate {
    transition: all 0.3s ease-in-out;
}
.btn-animate:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

/* Base Card Styles */
.card-base {
    background-color: var(--purple-card);
    border: 1px solid rgba(194, 32, 231, 0.2); /* Subtle purple border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow */
    transition: all 0.3s ease; /* Smooth transition */
}

.card-base:hover {
    border-color: var(--accent-purple); /* Accent border on hover */
    box-shadow: 0 6px 20px rgba(194, 32, 231, 0.15); /* Enhanced shadow on hover */
    transform: translateY(-5px); /* Slight lift on hover */
}

.articles-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #1f003d, #2a0050, #1f003d, #3a0060);
    background-size: 400% 400%; /* کم کردن شدت برای حالت هاله *//* بلور برای پخش شدن رنگ */
    z-index: -1;
}

#articles {
  position: relative;
  box-shadow: 0 0 30px 10px rgba(194, 32, 231, 0.4); /* هاله بنفش روشن مشابه بک‌گراند هیرو */
  border-radius: 12px; /* گوشه‌های گرد (اختیاری) */
  background-color: var(--purple-card); /* حفظ پس‌زمینه کارت مانند */
  z-index: 10;
}


/* Hero Section Background Effect */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0; /* Shorthand for top:0; right:0; bottom:0; left:0; */
    background: linear-gradient(45deg, #1f003d, #2a0050, #1f003d, #3a0060); /* Purple gradient */
    background-size: 400% 400%; /* For animating the gradient *//* Gradient animation */
    z-index: -1; /* Puts the background behind content */
}

/* Keyframe Animation for Background Gradient */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Section Grid Overlay Effect */
.section-grid-overlay {
    background-image:
        linear-gradient(to left, rgba(255, 255, 255, 0.03) 1px, transparent 1px), /* Vertical lines */
        linear-gradient(to top, rgba(255, 255, 255, 0.03) 1px, transparent 1px); /* Horizontal lines */
    background-size: 20px 20px; /* Size of grid cells */
    background-position: center center; /* Center the grid */
}


/* Scroll Indicator Animation */
.scroll-indicator {
    animation: bounce 2s infinite; /* Bouncing animation */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Specific styles for notice list items */
.notice-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    padding: 1rem;
    border-bottom: 1px solid rgba(194, 32, 231, 0.1); /* Subtle separator */
}

.notice-item-link:last-child {
    border-bottom: none; /* No border for the last item */
}

/* Form field styling (overriding form.as_p defaults) */
form input[type="text"],
form input[type="email"],
form input[type="number"],
form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem; /* rounded-lg */
    background-color: var(--purple-dark); /* bg-primary-dark */
    border: 1px solid rgba(194, 32, 231, 0.3); /* border-accent-purple/30 */
    color: var(--text-light); /* text-text-light */
    font-family: 'Vazirmatn', sans-serif; /* Ensure Vazirmatn font in inputs */
    transition: all 0.3s ease;
    text-align: right; /* For RTL input text */
}
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(194, 32, 231, 0.3);
}
form textarea {
    min-height: 120px; /* Better visibility for textareas */
    resize: vertical;
}
/* Adjusting form.as_p default paragraph margins */
form p {
    margin-bottom: 0; /* Let Tailwind classes handle spacing */
}

/* Icon for Play/Game Controller in Navbar */


/* Ensure right alignment for text-align: right */
.text-center {
    text-align: center !important; /* Override if necessary for specific elements */
}




#game-symbols-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.game-symbol-wrapper {
    position: absolute;
    opacity: 0.5;
    stroke: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.game-symbol {
    width: 100%;
    height: 100%;
    stroke: white;
    stroke-width: 2;
}


/* Custom select input styling */
.bg-lavender {
  background-color: #f3e8ff; /* یک یاسی مدرن */
}
