/* Pregnancy Calculator Styles */
.pregnancy-mode-selector {
    margin-bottom: 2rem;
}

.mode-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mode-btn {
    flex: 1;
    min-width: 200px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mode-btn.active {
    background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
    border-color: #db2777;
    color: white;
}

.mode-btn i {
    font-size: 1.5rem;
}

.mode-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

.calculator-mode {
    display: none;
}

.calculator-mode.active {
    display: block;
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input {
    width: 18px;
    height: 18px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.pregnancy-timeline {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.timeline-visual {
    position: relative;
    margin: 2rem 0;
}

.timeline-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    position: relative;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #f472b6, #db2777);
    border-radius: 5px;
    width: 0%;
    transition: width 1s ease;
}

.timeline-marks {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 1rem;
}

.timeline-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 33.33%;
}

.mark-dot {
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.timeline-mark.first .mark-dot {
    border-color: #f472b6;
}

.timeline-mark.second .mark-dot {
    border-color: #db2777;
}

.timeline-mark.third .mark-dot {
    border-color: #be185d;
}

.mark-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.3;
}

.current-position {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    text-align: center;
    transition: left 1s ease;
}

.position-dot {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin: 0 auto 0.5rem;
}

.position-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.week-development {
    margin: 1.5rem 0;
}

.development-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid #f472b6;
}

.dev-week {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.dev-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.dev-desc {
    color: var(--gray);
    line-height: 1.5;
}

.important-dates {
    margin: 1.5rem 0;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.date-card {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.date-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.date-content {
    flex: 1;
}

.date-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.date-value {
    font-weight: 600;
    color: var(--text);
}

.pregnancy-milestones {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow);
}

.milestone-list {
    margin-top: 1rem;
}

.milestone-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.milestone-item:last-child {
    border-bottom: none;
}

.milestone-week {
    min-width: 60px;
    font-weight: 700;
    color: #db2777;
}

.milestone-text {
    color: var(--text);
}

.milestone-timeline {
    margin: 1.5rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-week {
    min-width: 100px;
    font-weight: 700;
    color: #db2777;
    font-size: 1.1rem;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.timeline-content p {
    margin: 0;
    color: var(--gray);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .mode-buttons {
        flex-direction: column;
    }
    
    .mode-btn {
        min-width: 100%;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .dates-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-week {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-marks {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-mark {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .mark-dot {
        margin-bottom: 0;
    }
    
    .mark-label {
        text-align: left;
    }
}