/* Date Calculator Styles */

/* SEO Content Styling */
.seo-content {
    margin-top: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
    color: #444;
}

.seo-content h2 {
    color: #2c3e50;
    margin: 30px 0 20px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.seo-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.seo-content h3 {
    color: #34495e;
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.seo-content p {
    margin-bottom: 1.2em;
    font-size: 1.05rem;
    line-height: 1.7;
}

.seo-content ul, .seo-content ol {
    margin: 20px 0 20px 25px;
    padding: 0;
}

.seo-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.seo-content ul li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.steps {
    list-style: none;
    counter-reset: step-counter;
    margin: 30px 0;
    padding: 0;
}

.steps li {
    counter-increment: step-counter;
    margin-bottom: 30px;
    padding-left: 60px;
    position: relative;
    min-height: 50px;
}

.steps li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.steps h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.example {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.example:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.example h3 {
    color: var(--primary-color);
    margin-top: 0;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.example h3 i {
    margin-right: 10px;
    font-size: 1.1em;
}

.faq {
    margin: 40px 0;
}

.faq h3 {
    color: #2c3e50;
    background: #f8f9ff;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.faq h3:before {
    content: '\f059';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-color);
}

.faq h3:hover {
    background: #f0f4ff;
}

.faq p {
    padding: 15px 20px 15px 45px;
    margin: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    border-left: 2px solid #f0f4ff;
    border-right: 2px solid #f0f4ff;
    border-bottom: 2px solid #f0f4ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .seo-content {
        padding: 20px 15px;
    }
    
    .seo-content h2 {
        font-size: 1.6rem;
    }
    
    .seo-content h3 {
        font-size: 1.3rem;
    }
    
    .steps li {
        padding-left: 50px;
    }
    
    .steps li:before {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
}
.date-calculator-page {
    padding: 40px 0;
}

.date-calculator-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.calculator-inputs, .date-results {
    background: #f9faff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.date-results {
    background: #f0f4ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
    outline: none;
}

.calculation-type {
    margin-bottom: 20px;
}

.calculation-type label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
}

.date-result-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 15px 0;
    line-height: 1.2;
}

.date-details {
    margin-top: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.date-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.date-detail-label {
    color: var(--text-light);
}

.date-detail-value {
    font-weight: 600;
}

.weekday-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.workdays-result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .date-result-large {
        font-size: 2rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Calendar styles */
.calendar-preview {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-month-year {
    font-weight: 600;
    font-size: 1.1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-day-header {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 5px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: #f0f4ff;
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.weekend {
    color: #f44336;
}

.calendar-day.weekend.other-month {
    color: #ffcdd2;
}

/* Age at date result */
.age-at-date-result {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.age-at-date-result h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.age-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.age-breakdown-item {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.age-breakdown-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.age-breakdown-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 3px;
}
