/* Basic Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation Bar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Search Section */
.search-section {
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

#search-input {
    border-radius: 0.375rem 0 0 0.375rem;
}

#search-btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Holidays Section */
.holidays-section {
    min-height: calc(100vh - 200px);
}

/* Holiday Card Link */
.holiday-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Holiday Card Styles */
.holiday-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

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

.holiday-card-header {
    background-color: #0d6efd;
    color: white;
    padding: 1rem;
    position: relative;
}

.holiday-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.holiday-card-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.holiday-card-header .fa-arrow-right {
    transition: transform 0.3s ease;
}

.holiday-card-link:hover .holiday-card-header .fa-arrow-right {
    transform: translateX(5px);
}

/* Card Content */
.holiday-card-content {
    padding: 1rem;
    position: relative;
}

/* Short Description */
.short-description {
    margin-bottom: 0;
    position: relative;
    width: 100%;
}

.short-description p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    width: 100%;
    text-align: justify;
}

/* Full Content */
.full-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    margin-top: 0;
}

.holiday-card-link:hover .full-content {
    max-height: 800px;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.3s ease 0.1s;
}

.full-content p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Image Styles */
.full-image-container {
    margin: 1rem 0 0 0;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.full-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.holiday-card-link:hover .full-image {
    transform: scale(1.02);
}

/* Holiday Detail Image Styles */
.holiday-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.holiday-image:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Holiday Images Container */
.holiday-images {
    margin-top: 1.5rem;
}

.holiday-images h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.holiday-images .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.holiday-images .col-6,
.holiday-images .col-md-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Responsive Image Sizes */
@media (max-width: 768px) {
    .holiday-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .holiday-image {
        height: 150px;
    }
    
    .holiday-images .col-6 {
        margin-bottom: 1rem;
    }
}

/* Bilibili Video Styles */
.bilibili-videos-container {
    margin-top: 1rem;
}

.bilibili-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bilibili-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Video Link Styles */
.video-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0d6efd;
    color: white;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.video-link:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    color: white;
}

.video-link i {
    margin-right: 0.5rem;
}

/* Language Toggle */
.dropdown-item {
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .holiday-card {
        margin-bottom: 1rem;
    }
    
    .holiday-card-header {
        padding: 0.75rem;
    }
    
    .holiday-card-content {
        padding: 0.75rem;
    }
    
    .full-image {
        height: 150px;
    }
    
    .full-content {
        max-height: 600px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .search-section {
        padding: 1rem 0;
    }
    
    .holidays-section {
        padding: 2rem 0;
    }
    
    .holiday-card {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .full-image {
        height: 120px;
    }
    
    .full-content {
        max-height: 500px;
    }
    
    .holiday-card-header h3 {
        font-size: 1.1rem;
    }
    
    .holiday-card-header p {
        font-size: 0.85rem;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #6c757d;
}

.loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}