/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
.navigation {
    margin-bottom: 30px;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link {
    text-decoration: none;
    color: #666;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* Introduction Section */
.intro-section {
    margin-bottom: 50px;
}

.intro-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.intro-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.intro-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.intro-card p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Usage Guide Section */
.usage-guide {
    margin-bottom: 50px;
}

.guide-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.guide-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.step-content p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.example {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
    font-size: 0.9rem;
}

/* Examples Section */
.examples-section {
    margin-bottom: 50px;
}

.examples-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.examples-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.example-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.3);
}

.example-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.example-details p {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}

.example-details ul {
    margin-left: 20px;
    margin-top: 10px;
}

.example-details li {
    margin-bottom: 5px;
    color: #555;
}

/* Cross Promotion Section */
.cross-promotion-section {
    margin-bottom: 50px;
}

.cross-promotion-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cross-promotion-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.promotion-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.promotion-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.promotion-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.promotion-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.95;
}

.promotion-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.feature {
    font-size: 0.95rem;
    opacity: 0.9;
}

.promotion-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.promotion-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Tips Section */
.tips-section {
    margin-bottom: 50px;
}

.tips-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tips-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tip-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 236, 210, 0.4);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.tip-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.tip-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Form Styles */
.prediction-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.icon {
    font-size: 1.2rem;
}

.date-input {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.helper-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.predict-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 10px;
}

.predict-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.predict-button:active {
    transform: translateY(0);
}

/* Results Section */
.results-section {
    margin-top: 30px;
    animation: slideIn 0.5s ease-out;
}

.results-section.hidden {
    display: none;
}

.result-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.result-header h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
}

.gender-result {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.gender-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.gender-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.gender-display {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calculation-details {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.calculation-details h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.calculation-info p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.calculation-info span {
    font-weight: 600;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    min-width: 180px;
}

.action-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Chart Section */
.chart-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.chart-section h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.chart-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.chart-container::-webkit-scrollbar {
    height: 8px;
}

.chart-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chart-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.chart-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.gender-chart {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    table-layout: fixed;
}

.gender-chart th,
.gender-chart td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    text-align: center;
    transition: all 0.3s ease;
    width: 7.2%; /* 100% / 14 columns (age + 12 months + some margin) */
}

.gender-chart th:first-child,
.gender-chart td:first-child {
    width: 10%;
    font-weight: 600;
}

.gender-chart th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

.gender-chart td.boy {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.gender-chart td.girl {
    background: #fce4ec;
    color: #c2185b;
    font-weight: 600;
}

.gender-chart td.highlight {
    background: #fff3e0 !important;
    border: 3px solid #ff9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
    transform: scale(1.05);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.legend-color.boy {
    background: #e3f2fd;
}

.legend-color.girl {
    background: #fce4ec;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f5f5f5;
    color: #333;
}

.share-link-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.share-link-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
}

.copy-btn {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #5a6fd8;
}

.share-text textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-top: 10px;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 40px;
}

.faq-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.faq-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}

.footer-section ul li a:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

.footer-disclaimer {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.footer-disclaimer small {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .gender-result {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        min-width: auto;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    /* New sections responsive */
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .promotion-grid {
        grid-template-columns: 1fr;
    }
    
    .promotion-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .promotion-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .prediction-form,
    .chart-section,
    .header {
        padding: 20px;
    }
    
    .intro-content,
    .guide-content,
    .examples-content,
    .tips-content,
    .cross-promotion-content {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .gender-chart {
        font-size: 0.65rem;
    }
    
    .gender-chart th,
    .gender-chart td {
        padding: 3px 4px;
        width: 7%;
    }
    
    .gender-chart th:first-child,
    .gender-chart td:first-child {
        width: 12%;
    }
    
    .intro-content h2,
    .guide-content h2,
    .examples-content h2,
    .tips-content h2 {
        font-size: 1.5rem;
    }
    
    .intro-card,
    .example-card,
    .tip-card {
        padding: 20px;
    }
    
    .promotion-card {
        padding: 20px;
    }
    
    .promotion-text h3 {
        font-size: 1.3rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .tip-icon {
        font-size: 2rem;
    }
    
    .faq-content {
        padding: 25px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-disclaimer {
        padding: 12px;
    }
    
    .footer-disclaimer small {
        font-size: 0.75rem;
    }
}

/* Chinese Calendar Hub Specific Styles */

/* Tool Navigation */
.tool-navigation {
    margin-bottom: 30px;
}

.tool-nav-container {
    display: flex;
    justify-content: center;
}

.tool-nav-links {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.tool-nav-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tool-nav-btn:hover,
.tool-nav-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
}

/* Tool Sections */
.tool-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tool-section.active {
    display: block;
}

.tool-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Calendar Conversion Tool */
.conversion-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.conversion-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.convert-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.conversion-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.result-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
}

.result-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.result-item p {
    font-size: 1rem;
    margin: 0;
}

/* Today's Lunar Tool */
.today-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.today-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 25px;
    border-radius: 15px;
    color: #333;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.today-card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #444;
}

.today-card p {
    font-size: 1rem;
    margin: 0;
    color: #555;
}

.promotion-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
}

.promotion-banner h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.promotion-banner p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.promotion-banner .promotion-btn {
    background: white;
    color: #667eea;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.promotion-banner .promotion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Zodiac Tool */
.zodiac-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.year-input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.year-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.zodiac-results {
    text-align: center;
}

.zodiac-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.zodiac-animal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.zodiac-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.zodiac-animal h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.zodiac-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.detail-item {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.detail-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

.detail-item p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* Stems Tool */
.stems-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.stems-tab {
    background: none;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.stems-tab:hover,
.stems-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.stems-content {
    display: none;
}

.stems-content.active {
    display: block;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.explanation-card {
    background: linear-gradient(135deg, #c3cfe2 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    color: #333;
}

.explanation-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #444;
}

.explanation-card p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.stems-list,
.branches-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stem-item,
.branch-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
}

.cycle-table-container {
    overflow-x: auto;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
}

.cycle-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cycle-table th,
.cycle-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.cycle-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

.cycle-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.cycle-table tr.current-year {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.element-card {
    padding: 25px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.element-card.wood {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.element-card.fire {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.element-card.earth {
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
}

.element-card.metal {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.element-card.water {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.element-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.element-card p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Auspicious Days Tool */
.auspicious-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.activity-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    min-width: 250px;
}

.activity-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.date-range {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.auspicious-results {
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 1.5rem;
    color: #333;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auspicious-days {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auspicious-day {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.day-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.day-lunar {
    color: #666;
    font-size: 0.9rem;
}

.day-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.day-activity,
.day-favorable,
.day-avoid,
.day-solar-term {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
}

.no-results {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

/* Responsive Design for Calendar Hub */
@media (max-width: 768px) {
    .tool-nav-links {
        justify-content: center;
    }
    
    .tool-nav-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .tool-card {
        padding: 25px;
    }
    
    .tool-header h2 {
        font-size: 1.6rem;
    }
    
    .conversion-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .convert-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .conversion-results {
        grid-template-columns: 1fr;
    }
    
    .today-info {
        grid-template-columns: 1fr;
    }
    
    .zodiac-details {
        grid-template-columns: 1fr;
    }
    
    .explanation-grid {
        grid-template-columns: 1fr;
    }
    
    .stems-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .stems-tab {
        width: 100%;
        max-width: 200px;
    }
    
    .elements-grid {
        grid-template-columns: 1fr;
    }
    
    .date-range {
        flex-direction: column;
        align-items: center;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .day-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .tool-nav-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-header h2 {
        font-size: 1.4rem;
    }
    
    .zodiac-icon {
        font-size: 3rem;
    }
    
    .promotion-banner {
        padding: 20px;
    }
    
    .promotion-banner h3 {
        font-size: 1.2rem;
    }
    
    .explanation-card {
        padding: 20px;
    }
    
    .cycle-table-container {
        padding: 15px;
    }
    
    .cycle-table {
        font-size: 0.8rem;
    }
    
    .cycle-table th,
    .cycle-table td {
        padding: 8px;
    }
    
    .auspicious-day {
        padding: 20px;
    }
} 