/* Age Calculator Specific Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    padding: 80px 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 30px;
}

.hero-cta {
    background-color: #fff;
    color: #6a11cb;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-cta:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* Calculator Card */
.calculator-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* Calculator Tabs */
.calculator-tabs {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 25px;
}

.calculator-tab-btn {
    width: 100%;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calculator-tab-btn.active {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    border-color: transparent;
}

.calculator-tab-btn:hover:not(.active) {
    background-color: #e9ecef;
}

/* Calculator Content */
.calculator-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calculator-header {
    margin-bottom: 20px;
}

/* Date Selector */
.date-selector-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.date-selector-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
    text-align: center;
}

.date-selector-wrapper {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Additional Info */
.additional-info {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-label {
    font-weight: 600;
    color: #333;
}

.info-value {
    font-weight: 700;
    color: #2575fc;
}

/* Share Results */
.share-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.share-btn:nth-child(1) {
    background-color: #25D366;
}

.share-btn:nth-child(2) {
    background-color: #1877F2;
}

.share-btn:nth-child(3) {
    background-color: #1DA1F2;
}

.share-btn:nth-child(4) {
    background-color: #6c757d;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.btn-calculate {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #5a0cb0 0%, #1565e0 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
    color: #fff;
}

/* Result Card */
.result-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
}

.result-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

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

.result-icon {
    font-size: 2rem;
    color: #6a11cb;
    margin-bottom: 10px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2575fc;
    margin-bottom: 5px;
}

.result-label {
    font-size: 1rem;
    color: #6c757d;
}

/* Calculator Icons */
.calculator-icon {
    font-size: 2.5rem;
    color: #6a11cb;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.card:hover .calculator-icon {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    transform: scale(1.1);
}

/* Article Cards */
.article-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.article-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.read-more {
    color: #6a11cb;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #2575fc;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        border-radius: 0 0 30px 30px;
    }
    
    .calculator-card {
        padding: 20px;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .calculator-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .calculator-tab-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .date-selector-container {
        padding: 15px;
    }
    
    .date-selector-wrapper {
        padding: 10px;
    }
}

/* RTL Specific Adjustments */
html[dir="rtl"] .fa-arrow-left {
    transform: rotate(180deg);
}

html[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
}

.form-select {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
}

html[dir="rtl"] .form-select {
    background-position: left 0.75rem center;
    padding: 0.375rem 0.75rem 0.375rem 2.25rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a0cb0 0%, #1565e0 100%);
}

/* Animation */
.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 倒计时和当前年龄计数器样式 */
.countdown-section, .current-age-section {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.countdown-item, .age-counter-item {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.countdown-item:hover, .age-counter-item:hover {
    transform: translateY(-5px);
}

.countdown-value, .counter-value {
    font-size: 2rem;
    font-weight: 700;
    color: #6a11cb;
    margin-bottom: 5px;
}

.countdown-label, .counter-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 结果表格样式 */
.results-table {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.results-table .table {
    margin-bottom: 0;
}

.results-table td {
    padding: 12px;
    vertical-align: middle;
}

.results-table td:first-child {
    font-weight: 600;
    color: #495057;
    width: 40%;
}

.results-table td:last-child {
    color: #6a11cb;
    font-weight: 500;
}

/* 生活信息和统计样式 */
.life-info, .life-stats {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-table, .stats-table {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* AI性格分析样式 */
.personality-analysis {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.analysis-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    line-height: 1.6;
}

/* 分享按钮样式 */
.share-section {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
}

.share-buttons .btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-buttons .btn i {
    margin-right: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .countdown-value, .counter-value {
        font-size: 1.5rem;
    }
    
    .countdown-label, .counter-label {
        font-size: 0.8rem;
    }
    
    .results-table td {
        padding: 8px;
    }
    
    .results-table td:first-child {
        width: 50%;
    }
}

/* RTL特定样式 */
html[dir="rtl"] .share-buttons .btn i {
    margin-right: 0;
    margin-left: 8px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown-item, .age-counter-item, .results-table, .info-table, .stats-table, .analysis-content {
    animation: fadeIn 0.5s ease-out;
}

/* 计数器动画 */
@keyframes countUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.countdown-value, .counter-value {
    animation: countUp 0.5s ease-out;
} 