/* assets/css/styles.css */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2'),
         url('../fonts/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #ff6b00; /* نارنجی پرشین اسکرید */
    --primary-hover: #e65c00;
    --secondary-color: #0f172a; /* آبی نفتی تیره */
    --accent-color: #38bdf8; /* آبی روشن برای جزئیات */
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    --radius-lg: 24px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    margin: 0;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--secondary-color);
    line-height: 1.6;
}

.container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 650px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.container:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

h1 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

h2 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* SEO Content Styling */
.seo-content {
    text-align: right;
    direction: rtl;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 107, 0, 0.03);
    border-radius: var(--radius-md);
    border-right: 4px solid var(--primary-color);
}

.seo-content p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #475569;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: right;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Vazir';
    text-align: left;
    direction: ltr;
    background: #f8fafc;
    transition: var(--transition);
    outline: none;
}

input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Vazir';
    width: 100%;
    max-width: 250px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Result Cards */
.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

#equivalent-area,
#result,
#cost {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: right;
    direction: rtl;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

#equivalent-area:hover,
#result:hover,
#cost:hover {
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

#equivalent-area {
    border-left: 4px solid var(--accent-color);
}

#result {
    border-left: 4px solid var(--primary-color);
}

#cost {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border: none;
}

#cost div {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

#cost div:last-child {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.error {
    color: #ef4444;
    background: #fef2f2;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #fecaca;
    margin-top: 1rem;
}

/* FAQ Section */
.faq {
    text-align: right;
    direction: rtl;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed #cbd5e1;
}

.faq h2 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.faq h3 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.faq h3::before {
    content: '+';
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.faq p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-right: 1.2rem;
}

.internal-links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.internal-links a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: var(--transition);
    margin: 0 0.5rem;
}

.internal-links a:hover {
    color: var(--primary-color);
    border-bottom-style: solid;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.3rem;
    }

    input {
        padding: 0.8rem;
    }

    button {
        width: 100%;
    }
}