/* Lịch Âm Dương CSS - Thiết kế hiện đại và đẹp mắt */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary, #333);
    background: var(--color-background, #f8f9fa);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: linear-gradient(135deg, var(--color-background-light, #f8f9fa) 0%, var(--color-background, #ffffff) 100%);
    border-bottom: 1px solid var(--color-border, #e9ecef);
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--color-text-secondary, #6c757d);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--color-primary, #E60026);
}

.breadcrumb-current {
    color: var(--color-primary, #E60026);
    font-weight: 600;
    font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--color-text-secondary, #6c757d);
    font-size: 1.2rem;
    line-height: 1;
}

/* Hero Section */
.calendar-hero {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #8e44ad 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.calendar-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/tet-background-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.calendar-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-link {
    color: var(--color-secondary, #FFD700);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.hero-link:hover {
    color: var(--color-secondary, #FFD700);
    border-bottom-color: var(--color-secondary, #FFD700);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hero-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.decoration-item {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.decoration-item:nth-child(2) {
    animation-delay: 1s;
}

.decoration-item:nth-child(3) {
    animation-delay: 2s;
}



















/* Calendar */
.detailed-calendar {
    padding: 2rem 0;
}

.calendar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-background-light, #f8f9fa), var(--color-background, #ffffff));
    border-radius: 15px;
    border: 1px solid var(--color-border, #e9ecef);
}

.title-content {
    text-align: center;
    flex: 1;
}

.month-nav-btn {
    background: var(--color-button-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(230, 0, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.month-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 38, 0.4);
}

.month-nav-btn:active {
    transform: translateY(0);
}

.prev-btn {
    margin-right: 1rem;
}

.next-btn {
    margin-left: 1rem;
}

.month-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(230, 0, 38, 0.2);
}

.month-nav-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(230, 0, 38, 0.2);
}

.calendar-title h2 {
    font-size: 2rem;
    color: var(--color-primary, #E60026);
    margin: 0;
    font-weight: 700;
}

.calendar-wrapper {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

        .day-header {
            text-align: center;
            font-weight: bold;
            color: var(--color-primary);
            padding: 1.5rem;
            font-size: 1.1rem;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 15px;
            border: 2px solid transparent;
        }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.calendar-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.calendar-day:hover::before {
    opacity: 1;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #e74c3c;
    transform: scale(1.05);
}

        .calendar-day.other-month {
            opacity: 0.3;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            color: #999;
        }

.calendar-day.today {
    border: 3px solid var(--color-primary, #E60026);
    border-width: 3px;
    font-weight: bold;
    background: linear-gradient(135deg, #fff0f0, #ffe0e0);
    box-shadow: 0 10px 30px rgba(230, 0, 38, 0.3);
    transform: scale(1.05);
}

.calendar-day.today .solar-date {
    color: var(--color-primary, #E60026);
    font-weight: 800;
}

.calendar-day.today .lunar-date {
    color: var(--color-accent-primary, #FF4500);
    font-weight: 600;
}

.calendar-day.tet-date {
    border: 3px solid #f39c12;
    background: linear-gradient(135deg, #fff8e1, #ffeaa7);
    position: relative;
}

.tet-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1rem;
    animation: bounce 1s infinite;
}

.solar-date {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.lunar-date {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Information Sections */
.lunar-information, .auspicious-hours, .traditional-activities {
    padding: 4rem 0;
}

.info-wrapper, .hours-wrapper, .activities-wrapper {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header h3 {
    color: #e74c3c;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Date Info Grid */
.date-info-content {
    min-height: 200px;
}

.info-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Selected Date Info */
.selected-date-info {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary, #E60026), var(--color-accent-primary, #FF4500));
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(230, 0, 38, 0.3);
}

.date-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.date-number {
    font-size: 4.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    min-width: 100px;
    text-align: center;
    line-height: 1;
}

.date-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.date-month-year {
    font-size: 1.8rem;
    font-weight: 600;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.date-weekday {
    font-size: 1.4rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.date-lunar {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 2rem 1.5rem;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lunar-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.lunar-date {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.lunar-year {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.date-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary, #E60026), var(--color-accent-primary, #FF4500));
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--color-primary, #E60026);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-primary, #E60026), var(--color-accent-primary, #FF4500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header h4 {
    font-size: 1.3rem;
    color: var(--color-text-primary, #333);
    margin: 0;
    font-weight: 700;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateX(5px);
}

.info-label {
    font-weight: 600;
    color: var(--color-text-secondary, #666);
}

.info-value {
    font-weight: 700;
    color: var(--color-primary, #E60026);
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.day-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-label {
    font-weight: 600;
    color: var(--color-text-secondary, #666);
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.star {
    font-size: 1.2rem;
    color: var(--color-secondary, #FFD700);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.day-description {
    background: linear-gradient(135deg, #fff8e1, #ffeaa7);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--color-secondary, #FFD700);
    font-style: italic;
    color: var(--color-text-primary, #333);
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .date-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .date-main {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        width: 100%;
    }
    
    .date-number {
        font-size: 3.5rem;
        min-width: auto;
    }
    
    .date-month-year {
        font-size: 1.5rem;
    }
    
    .date-weekday {
        font-size: 1.2rem;
    }
    
    .date-lunar {
        padding: 1.5rem;
        min-width: 100px;
    }
    
    .lunar-date {
        font-size: 1.5rem;
    }
    
    .date-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .card-header h4 {
        font-size: 1.2rem;
    }
    
    .info-item {
        padding: 0.6rem;
    }
    
    .info-value {
        padding: 0.2rem 0.6rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .date-header {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .date-main {
        gap: 1rem;
    }
    
    .date-number {
        font-size: 3rem;
    }
    
    .date-month-year {
        font-size: 1.3rem;
    }
    
    .date-weekday {
        font-size: 1.1rem;
    }
    
    .date-lunar {
        padding: 1rem;
        min-width: 80px;
    }
    
    .lunar-date {
        font-size: 1.3rem;
    }
    
    .lunar-year {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
    
    .info-item {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .info-value {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .day-rating {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .day-description {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

.date-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-content h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-content p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.good-day {
    color: #27ae60;
    font-weight: bold;
}

.bad-day {
    color: #e74c3c;
    font-weight: bold;
}

/* Hours Grid */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.hour-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hour-card.auspicious::before {
    opacity: 1;
}

.hour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.hour-header {
    margin-bottom: 1rem;
}

.hour-name {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.hour-time {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.hour-element {
    background: #f8f9fa;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.hour-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-style: italic;
}

.hour-status {
    font-weight: bold;
    font-size: 1.1rem;
}

.hour-status.auspicious {
    color: #27ae60;
}

.hour-status.neutral {
    color: #e74c3c;
}

/* Activities List */
.activities-list {
    display: grid;
    gap: 1.5rem;
}

.activity-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.activity-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-content h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: 600;
}

.activity-importance {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-importance.very-important {
    background: #e74c3c;
    color: white;
}

.activity-importance.important {
    background: #f39c12;
    color: white;
}

.activity-importance.optional {
    background: #95a5a6;
    color: white;
}

.activity-date {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.activity-description {
    color: #666;
    line-height: 1.6;
}

/* Back to Home */
.back-to-home {
    padding: 4rem 0;
    text-align: center;
}

.back-home-wrapper {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.back-home-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
}

.btn-icon {
    font-size: 1.8rem;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
        @media (max-width: 768px) {
            .calendar-hero h1 {
                font-size: 2.5rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
            }
            
            .calendar-wrapper {
                padding: 1.5rem;
                margin: 0 1rem;
            }
            
            .calendar-title h2 {
                font-size: 1.6rem;
            }
            
            .month-nav-btn {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }
            
            .calendar-day {
                padding: 0.8rem;
            }
            
            .calendar-day.today {
                transform: scale(1.02);
            }
            
            .solar-date {
                font-size: 1.2rem;
            }
            
            .lunar-date {
                font-size: 0.8rem;
            }
            
            .info-wrapper, .hours-wrapper, .activities-wrapper {
                padding: 1.5rem;
                margin: 0 1rem;
            }
            
            .date-info-grid {
                grid-template-columns: 1fr;
            }
            
            .hours-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }
            

            
            .activity-card {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }
        }

        @media (max-width: 480px) {
            .calendar-hero h1 {
                font-size: 2rem;
            }
            
            .calendar-wrapper {
                padding: 1rem;
            }
            
            .calendar-title h2 {
                font-size: 1.4rem;
            }
            
            .month-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .calendar-title {
                padding: 0.8rem 1rem;
            }
            
            .calendar-header {
                gap: 0.5rem;
            }
            
            .day-header {
                padding: 1rem;
                font-size: 0.9rem;
            }
            
            .calendar-grid {
                gap: 0.5rem;
            }
            
            .calendar-day {
                padding: 0.5rem;
            }
            
            .calendar-day.today {
                transform: scale(1.01);
            }
            
            .solar-date {
                font-size: 1rem;
            }
            
            .lunar-date {
                font-size: 0.7rem;
            }
            

        }
