/* Custom CSS for Grand Est - Хүүхдийн баяр Website */

/* Custom colors */
:root {
    --primary-color: #4d6baa;
    --secondary-color: #f39c12;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --info-color: #3498db;
    
    /* Child-friendly colors */
    --soft-blue: #a7c5eb;
    --soft-green: #b7e1cd;
    --soft-yellow: #ffde7d;
    --soft-pink: #ffc8dd;
    --soft-purple: #d6bbfc;
    --soft-orange: #ffb385;
}

/* General styles */
body {
    background-color: #f8f9fa;
    position: relative;
}

/* Make all avatar text white by default */
.avatar {
    color: #fff !important;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://via.placeholder.com/50?text=dot');
    background-size: 200px;
    background-repeat: repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Navbar customization */
.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    height: 72px;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar .nav-item {
    margin: 0 0.3rem;
}

.navbar .nav-link {
    padding: 0.5rem 0.7rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.navbar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Adjust page wrapper for sticky navbar */
.page-wrapper {
    padding-top: 1rem;
}

@media (max-width: 767px) {
    .navbar {
        height: auto;
    }
    
    .navbar .container-xl {
        padding: 0.5rem 1rem;
    }
}

/* For full-height hero with navbar */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    min-height: 100vh;
    padding-top: 72px;
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    background-position: 50% center; /* Center horizontally by default */
}

@media (max-width: 991px) {
    .hero-image {
        background-position: 70% center; /* Move focus more to the right on medium screens */
    }
}

@media (max-width: 767px) {
    .hero-section {
        margin-top: -60px;
    }
    
    .hero-image {
        padding-top: 60px;
        min-height: 100vh;
        background-position: 65% 30%; /* Position to show more of the characters */
    }
}

@media (max-width: 576px) {
    .hero-image {
        background-position: 60% 25%; /* Further adjust to focus on the characters */
    }
    
    /* Ensure proper spacing at the bottom */
    .hero-content {
        padding-bottom: 3rem;
    }
}

/* Mobile-specific hero image adjustments */
.mobile-hero-adjust {
    background-size: cover;
    background-position: 50% center;
}

@media (max-width: 1200px) {
    .mobile-hero-adjust {
        background-position: 60% center;
    }
}

@media (max-width: 991px) {
    .mobile-hero-adjust {
        background-position: 68% center;
    }
}

@media (max-width: 767px) {
    .mobile-hero-adjust {
        background-position: 65% 30%;
        background-size: cover;
    }
}

@media (max-width: 576px) {
    .mobile-hero-adjust {
        background-position: 60% 20%;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .mobile-hero-adjust {
        /* More aggressive positioning to ensure children are visible */
        background-position: 55% 20%;
        background-size: 250%;
    }
}

/* Hero section styles */
.hero {
    background-image: linear-gradient(to right, rgba(77, 107, 170, 0.8), rgba(243, 156, 18, 0.7)), url('https://via.placeholder.com/1200x600?text=Children+Day');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 5rem 0;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1.2s ease;
    /* Center content vertically within hero section */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

/* Mobile responsiveness for hero section */
@media (max-width: 991px) {
    .hero-image {
        height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-image {
        height: 100vh;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0.3rem;
    }
}

@media (max-width: 576px) {
    .hero-image {
        height: 100vh;
        background-position: 60% center;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        margin: 0.5rem 0;
        width: 100%;
        max-width: 250px;
    }
}

/* Portrait-specific adjustments */
@media (max-width: 576px) and (orientation: portrait) {
    .hero-image {
        height: 100vh;
    }
    
    .hero-overlay {
        padding-top: 4rem;
        align-items: flex-start;
    }
}

/* Card customization */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.card-header {
    font-weight: bold;
    background-color: var(--soft-blue);
    color: #2c3e50;
    border-bottom: none;
}

/* Colorful cards variations */
.card-blue {
    background-color: var(--soft-blue);
}

.card-green {
    background-color: var(--soft-green);
}

.card-yellow {
    background-color: var(--soft-yellow);
}

.card-pink {
    background-color: var(--soft-pink);
}

.card-purple {
    background-color: var(--soft-purple);
}

.card-orange {
    background-color: var(--soft-orange);
}

/* Event details card */
.event-details {
    background-color: transparent;
    color: #2c3e50;
    border-radius: 0.8rem;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event-details h3 {
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Activities list */
.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

.activity-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Avatar customization */
.avatar {
    font-weight: bold;
}

/* Footer customization */
.footer {
    margin-top: 3rem;
}

/* Language selector */
.language-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.language-selector .nav-link {
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.language-selector .nav-link:hover {
    background-color: rgba(0,0,0,0.05);
}

.nav-item .flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-mn {
    background-image: url('https://flagcdn.com/w80/mn.png');
}

.flag-fr {
    background-image: url('https://flagcdn.com/w80/fr.png');
}

.flag-gb {
    background-image: url('https://flagcdn.com/w80/gb.png');
}

.nav-item a.nav-link.fw-bold {
    position: relative;
}

.nav-item a.nav-link.fw-bold:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
}

@media (max-width: 767px) {
    .nav-item a.nav-link {
        padding: 0.3rem 0.5rem;
    }
    
    .language-selector {
        gap: 2px;
    }
    
    .language-selector .nav-link {
        padding: 4px 6px;
    }
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Decorative elements */
.children-decoration {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
    transform: rotate(10deg);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .page-body {
        padding: 0 !important;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s;
}

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

/* Festive balloon decorations */
.balloon {
    position: fixed;
    width: 30px;
    height: 40px;
    background-color: var(--soft-pink);
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
}

.balloon::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

/* Datagrid customization */
.datagrid-item {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.datagrid-title {
    font-weight: bold;
    color: var(--primary-color);
}

/* Feature cards */
.feature-card {
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

/* Background patterns */
.pattern-dots {
    background-image: radial-gradient(var(--soft-blue) 2px, transparent 2px);
    background-size: 20px 20px;
}

.pattern-stripes {
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.03) 50%, rgba(0, 0, 0, 0.03) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

/* Colorful placeholder images */
.img-placeholder {
    min-height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

.img-placeholder.children-pattern::before {
    background-image: repeating-linear-gradient(
        45deg,
        var(--soft-blue),
        var(--soft-blue) 15px,
        var(--soft-green) 15px,
        var(--soft-green) 30px,
        var(--soft-yellow) 30px,
        var(--soft-yellow) 45px,
        var(--soft-pink) 45px,
        var(--soft-pink) 60px
    );
}

.img-placeholder.celebration-pattern::before {
    background-image: repeating-radial-gradient(
        circle at 50% 50%,
        var(--soft-yellow),
        var(--soft-pink) 10px,
        var(--soft-purple) 10px,
        var(--soft-blue) 20px
    );
}

.img-placeholder.traditional-pattern::before {
    background-image: 
        linear-gradient(var(--soft-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--soft-blue) 1px, transparent 1px),
        linear-gradient(var(--soft-yellow) 1px, transparent 1px),
        linear-gradient(90deg, var(--soft-yellow) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 10px 10px, 10px 10px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

.img-placeholder.mongolia-pattern::before {
    background-image: 
        repeating-linear-gradient(
            -45deg,
            var(--soft-blue),
            var(--soft-blue) 5px,
            var(--soft-red) 5px,
            var(--soft-red) 10px
        );
}

.img-placeholder.children-games::before {
    background-image: radial-gradient(var(--soft-green) 8px, transparent 8px);
    background-size: 30px 30px;
}

.img-placeholder-content {
    position: relative;
    z-index: 1;
    color: #333;
    text-align: center;
    padding: 2rem;
}

.img-placeholder-content .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
} 