/* Persian Calendar - Zodiac Sign Resolver Styles */

:root {
    --primary-color: #8b5cf6;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --dark-bg: #1f2937;
    --light-bg: #f9fafb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

.persian-calendar-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.calendar-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header-section {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #8b5cf6;
    border-color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.header-section h1 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-section .subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 300;
}

.content-section {
    padding: 60px 40px;
}

.zodiac-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.btn-submit {
    padding: 14px 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.results-section {
    animation: slideIn 0.4s ease-out;
}

.results-section.hidden,
#error.hidden,
#loading.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dates-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
}

.date-item label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
}

.date-item p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.zodiac-result {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.zodiac-sign-box {
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    padding: 40px;
    border-radius: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.zodiac-sign-box h2 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    opacity: 0.95;
}

.zodiac-sign-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.zodiac-emoji {
    font-size: 4rem;
    margin: 0;
}

.zodiac-characteristics {
    display: flex;
    flex-direction: column;
}

.zodiac-characteristics h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.characteristics-content {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section {
        padding: 40px 20px;
    }

    .language-selector {
        margin-bottom: 20px;
        gap: 8px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .header-section h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 30px 20px;
    }

    .dates-info {
        grid-template-columns: 1fr;
    }

    .zodiac-result {
        grid-template-columns: 1fr;
    }

    .zodiac-sign-box {
        padding: 30px 20px;
        order: 2;
    }

    .zodiac-characteristics {
        order: 1;
    }

    body.rtl .zodiac-characteristics {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .persian-calendar-container {
        padding: 20px 10px;
    }

    .calendar-wrapper {
        border-radius: 12px;
    }

    .language-selector {
        gap: 6px;
        margin-bottom: 15px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .header-section h1 {
        font-size: 1.5rem;
    }

    .header-section {
        padding: 30px 15px;
    }

    .content-section {
        padding: 20px 15px;
    }

    .zodiac-form {
        gap: 16px;
    }

    .btn-submit {
        padding: 12px 24px;
        font-size: 1rem;
    }
}
