/*
  =================================================================
  فایل استایل اختصاصی محاسبه‌گر تخمک‌گذاری
  نسخه: 1.1 - بهینه‌سازی A11y
  =================================================================
*/

/* --- Date Input --- */
.date-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 1.1rem;
    font-family: var(--font-family-base);
    background-color: white;
    
    /* === تغییر ۱: افزودن احترام به prefers-reduced-motion === */
     @media (prefers-reduced-motion: no-preference) {
        transition: var(--transition-fast);
    }
}
.date-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.1);
    outline: none;
}
.form-group .info-text {
    font-size: 0.85rem;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* --- Custom Ovulation Result Card --- */
.result-card-ovulation {
    background: linear-gradient(145deg, var(--cat-زنان-و-بارداری), #ff7aa2);
    color: white;
    border-radius: var(--border-radius-base);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    
     /* === تغییر ۲: افزودن احترام به prefers-reduced-motion === */
     @media (prefers-reduced-motion: no-preference) {
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
}

.result-card-ovulation.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-card-ovulation .main-result {
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
}

.result-card-ovulation .result-header h3 {
    font-size: 1.1rem;
    font-weight: normal;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-card-ovulation .result-value {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: bold;
    line-height: 1.2;
}

/* --- Fertile Window Section (Highlight) --- */
#fertile-window {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-base);
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#fertile-window h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}
#fertile-window h4 .fa-star {
    color: #ffc107;
    
    /* === تغییر ۳: افزودن احترام به prefers-reduced-motion برای انیمیشن === */
    @media (prefers-reduced-motion: no-preference) {
        animation: pulse-star 1.5s infinite;
    }
}

/* انیمیشن چشمک‌زن ستاره */
@keyframes pulse-star {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#fertile-window .window-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}
#fertile-window strong {
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* --- Other Dates Section --- */
.timeline-section h4 {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}
.dates-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
.dates-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    opacity: 0.95;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrap */
    gap: 5px; /* Spacing for wrap */
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
}
.dates-list li strong {
    font-weight: bold;
    margin-left: 5px; /* RTL space */
}

/* --- استایل دکمه CTA که در HTML اضافه شد --- */
.result-card-ovulation .secondary-cta {
    background-color: white;
    color: var(--cat-زنان-و-بارداری);
    font-weight: bold;
    margin-top: 10px;
}
.result-card-ovulation .secondary-cta:hover {
    background-color: #fff0f5; /* Light pink hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}