﻿/* ---------------- FONT & BODY ---------------- */
@font-face {
    font-family: 'IRANYekanXNoEn';
    src: url('/fonts/IRANYekanXNoEn-Regular.woff2') format('woff2'), url('/fonts/IRANYekanXNoEn-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'IRANYekanXNoEn', Tahoma, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
    direction: rtl;
}

/* ---------------- HEADER ---------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    z-index: 1000;
}

    .header .logo {
        font-weight: 700;
        font-size: 1.5rem;
        background: linear-gradient(135deg, #ffb400, #ffd570, #ffca4d);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }

    .header nav a {
        margin-left: 1.5rem;
        text-decoration: none;
        font-weight: 500;
        color: #333;
        transition: color 0.3s;
    }

        .header nav a:hover {
            color: #b37a45;
        }

/* ---------------- RESPONSIVE ---------------- */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

    .menu-links a:hover {
        color: #b37a45;
    }

@media (max-width: 900px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
    }

    .menu-links {
        position: absolute;
        top: 60px;
        left: 0;
        background: #fff;
        width: 200px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: none;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

        .menu-links a {
            margin: 0;
        }

    .menu-toggle {
        display: block;
    }
}



.footer {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    color: #ddd;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.footer h3, .footer h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-about p {
    line-height: 1.8;
    font-size: 0.95rem;
    color: #bbb;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s;
}

    .footer-links a:hover {
        color: #ffd700; /* طلایی برای هاور */
    }

.footer-social .social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    font-size: 1.4rem;
    color: #ddd;
    transition: transform 0.3s, color 0.3s;
}

    .footer-social a:hover {
        color: #56ccf2;
        transform: scale(1.2);
    }

.footer-enemad img {
    width: 100px;
    margin-top: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}
/* ---------------- RESULT PAGE ---------------- */
.result-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.result-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.result-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.result-card.success .result-icon {
    color: #2ecc71;
}

.result-card.error .result-icon {
    color: #e74c3c;
}

.result-card.info .result-icon {
    color: #3498db;
}

.result-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.result-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.result-next-box {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: #fff8e6;
    color: #5c4520;
    line-height: 1.9;
    text-align: right;
}

    .result-next-box strong,
    .result-next-box span {
        display: block;
    }

    .result-next-box strong {
        margin-bottom: 0.25rem;
        color: #2f2414;
    }

.result-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.result-btn {
    display: inline-block;
    margin-top: 0;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #ffb400, #ffd570);
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-btn-primary {
    background: linear-gradient(135deg, #ffb400, #ffd570);
}

.result-btn-secondary {
    background: #fff;
    border: 1px solid #e3c16a;
    color: #6a4a13;
}

    .result-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }
