/* =========================
   Persian Local Font
========================= */
@import url(fonts.css);

/* =========================
   Theme Variables
========================= */
:root {
    --bg-main: #f4f6f8;
    --bg-box: #ffffff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --primary: #1f3a5f;
    --link: #0a7cff;
    --border: #e5e7eb;
}

/* Dark Mode */
.dark-mode {
    --bg-main: #0f172a;
    --bg-box: #1e293b;
    --text-main: #e5e7eb;
    --text-muted: #cbd5f5;
    --primary: #60a5fa;
    --link: #93c5fd;
    --border: #334155;
}

/* =========================
   Base Styles
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.9;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

header {
    background-color: var(--primary);
    color: #fff;
    padding: 2.2rem 1rem;
    text-align: center;
}

header p {
    opacity: 0.9;
    margin-top: 0.5rem;
}

.container {
    max-width: 960px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.event-box {
    background: var(--bg-box);
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: background-color 0.3s;
}

.event-box h2 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.event-box p, .event-box a {
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.back-link {
    display: inline-block;
    color: #0a7cff;
    text-decoration: none;
    font-weight: bold;
}

.site-footer {
    margin-top: auto;
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--link);
    text-decoration: none;
    margin: 0 0.25rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* =========================
   Schedule Table
========================= */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
}

/* Optional: nice scrollbar spacing */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.schedule-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background-color: var(--bg-box);
    color: var(--text-main);
}

.schedule-table th,
.schedule-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.schedule-table thead {
    background-color: var(--primary);
    color: #fff;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.04);
}

.dark-mode .schedule-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.04);
}

/* =========================
   Event Links
========================= */
.event-links {
    list-style: none;
}

.event-links li {
    margin-bottom: 0.8rem;
}

.event-links a {
    color: var(--link);
    font-weight: bold;
    text-decoration: none;
}

.event-links a:hover {
    text-decoration: underline;
}

/* =========================
   Theme Toggle
========================= */
.theme-toggle {
    margin-top: 1.2rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.45);
    color: white;
    padding: 0.45rem 0.9rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
}
