/* style.css - اعمال سراسری فونت ساحل و اطمینان از نمایش اعداد فارسی */
@font-face {
    font-family: 'Sahel';
    src: url('Sahel.woff2') format('woff2');
    font-weight: normal;
}
@font-face {
    font-family: 'Sahel';
    src: url('Sahel-Bold.woff2') format('woff2');
    font-weight: bold;
}

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

/* اعمال سراسری فونت ساحل */
body, button, input, textarea, .card, h1, h2, h3, .countdown-number, .admin-countdown {
    font-family: 'Sahel', 'Tahoma', sans-serif;
}

html {
    /* اعمال فونت روی کل صفحه و اعداد */
    font-family: 'Sahel', 'Tahoma', sans-serif;
}

/* جهت اطمینان از نمایش اعداد در شمارشگر و جاهای دیگر */
.countdown-number, .admin-countdown {
    font-feature-settings: "ss02";
    letter-spacing: normal;
}

body {
    font-family: 'Sahel', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #f5f7fc 0%, #e9eef4 100%);
    padding: 2rem 1.5rem;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.help-icon {
    background: #2c3e66;
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.site-title {
    font-size: 2.2rem;
    color: #1e2a47;
    border-right: 5px solid #f5a623;
    padding-right: 1rem;
    margin: 1rem 0 0.8rem;
}

.description {
    background: rgba(255, 248, 225, 0.9);
    padding: 1.2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 36px;
    padding: 1.8rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
}

.card h2 {
    font-size: 1.8rem;
    color: #ff8c42;
    margin-bottom: 1rem;
    text-align: center;
}

.datetime-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 28px;
    margin-bottom: 1rem;
}

.date-item,
.time-item {
    background: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.95rem;
}

.link-btn {
    display: block;
    text-align: center;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    padding: 0.85rem;
    border-radius: 60px;
    margin: 0.6rem 0 1.5rem;
    transition: 0.2s;
}

.link-btn:hover {
    background: #f5a623;
    color: #1e2a47;
}

.countdown-wrapper {
    background: #f8fafd;
    border-radius: 28px;
    padding: 1rem;
}

.countdown-label {
    text-align: center;
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.countdown-boxes {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.countdown-item {
    flex: 1;
    background: white;
    border-radius: 24px;
    padding: 0.8rem 0.3rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.countdown-number {
    font-size: 1.9rem;
    font-weight: 900;
    color: #f5a623;
}

.countdown-unit {
    font-size: 0.8rem;
    color: #5a6e8a;
    margin-top: 6px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 550px;
    border-radius: 36px;
}

.close-modal {
    float: left;
    font-size: 28px;
    padding: 8px 18px;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    clear: both;
}

@media (max-width: 750px) {
    .countdown-number {
        font-size: 1.3rem;
    }
    .card {
        padding: 1rem;
    }
}