/* Custom styles for MyCaravanLife */

/* Variable definitions based on MVP spec - updated with more vibrant, friendly colors */
:root {
    /* Primary colors - updated to more vibrant, adventurous tones */
    --primary-color: #0F7296; /* More vibrant blue - less corporate */
    --secondary-color: #FF8A2A; /* More vibrant orange - more energetic */
    --accent-color: #5CE1E6; /* Brighter turquoise - more vacation feel */
    
    /* Neutral colors */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #999999;
    --dark-gray: #333333;
    
    /* Additional colors for a more playful palette */
    --adventure-green: #5ABA4A; /* Bright nature green */
    --sunset-red: #FF5757; /* Warm sunset red */
    --sunny-yellow: #FFD03A; /* Cheerful yellow */
    
    /* Chart colors */
    --chart-color-1: var(--primary-color);
    --chart-color-2: var(--secondary-color);
    --chart-color-3: var(--adventure-green);
    --chart-color-4: var(--accent-color);
}

/* Typography - switching to more casual, friendly fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

body {
    font-family: 'Nunito', sans-serif; /* More rounded, friendly font */
    color: var(--dark-gray);
    background-color: #fafafa; /* Slightly off-white for a softer look */
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Quicksand', sans-serif; /* More playful, rounded headings */
    font-weight: 700; /* Bolder headings for more impact */
}

.font-weight-light {
    font-weight: 400 !important;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Primary button styling - more rounded and playful */
.btn {
    border-radius: 50px; /* Pill shaped buttons are more friendly */
    font-weight: 600;
    text-transform: none; /* Less formal text */
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(255, 138, 42, 0.3); /* Subtle shadow for depth */
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #FF9D4D; /* Lighter orange on hover */
    border-color: #FF9D4D;
    color: var(--white);
    transform: translateY(-2px); /* Slight lift effect on hover */
    box-shadow: 0 6px 15px rgba(255, 138, 42, 0.4); /* Enhanced shadow on hover */
}

/* Secondary button styling */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Tertiary buttons - text only */
.btn-text {
    color: var(--primary-color);
    background-color: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
}

.btn-text:hover {
    text-decoration: none;
    color: var(--secondary-color);
    background-color: rgba(15, 114, 150, 0.05);
    border-radius: 4px;
}

/* Fun themed buttons */
.btn-adventure {
    background-color: var(--adventure-green);
    border-color: var(--adventure-green);
    color: white;
}

.btn-sunset {
    background-color: var(--sunset-red);
    border-color: var(--sunset-red);
    color: white;
}

.btn-sunny {
    background-color: var(--sunny-yellow);
    border-color: var(--sunny-yellow);
    color: #444;
}

/* Navbar customization - more playful and responsive */
.main-header {
    background-color: var(--white);
    border-bottom: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Stylování pro tlačítko přidat */
.nav-link.bg-secondary-color {
    color: white !important;
    font-weight: bold;
    transition: all 0.2s ease;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-link.bg-secondary-color:hover {
    transform: rotate(90deg);
    background-color: #ff9d4d !important;
}

/* Dropdown pro přidání položek */
.dropdown-menu .dropdown-item {
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
    border-radius: 5px;
    margin: 0.2rem;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 138, 42, 0.1);
    transform: translateX(3px);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover, 
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--white);
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Mobile navbar customization */
@media (max-width: 767.98px) {
    .navbar-collapse {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 20;
        background-color: var(--white);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 20px;
        border-radius: 0 0 15px 15px;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 8px;
    }
    
    .navbar-light .navbar-nav .nav-link {
        padding: 0.5rem;
        margin: 0;
        display: flex;
        align-items: center;
    }
    
    .navbar-light .navbar-nav .nav-link:hover {
        transform: translateY(0);
        background-color: var(--light-gray);
    }
    
    .user-menu .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        right: 0 !important;
        left: 0 !important;
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Hide certain elements on mobile to save space */
    .navbar-brand-text {
        display: none;
    }
    
    /* Streamline dropdown menus on mobile */
    .dropdown-menu {
        box-shadow: none;
        border: none;
        padding: 0.5rem;
    }
    
    .dropdown-item {
        border-radius: 8px;
        padding: 0.75rem 1rem;
    }
    
    /* Make navbar icons more compact */
    .main-header .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Improve contrast for message badge visibility */
    .badge-danger, .badge-warning {
        box-shadow: 0 0 0 2px white;
    }
}

/* Sidebar customization - more vibrant and fun */
.main-sidebar {
    background: linear-gradient(to bottom, var(--primary-color), #075273); /* Gradient background */
    border-right: none;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link {
    border-radius: 8px;
    margin: 0.35rem 0.75rem;
    transition: all 0.3s ease;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover,
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.hover-effect {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active:hover {
    background-color: #FF9D4D; /* Lighter orange */
    transform: translateX(3px);
}

.brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    padding: 0.85rem 0.5rem;
}

.brand-image {
    width: 48px;
    height: 40px;
    margin-top: -5px;
    margin-left: 0.2rem;
    border-radius: 5px;
    background-color: white;
    padding: 5px;
    object-fit: contain;
    display: inline-block;
}

.brand-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--white);
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    margin-left: 0.2rem;
}

/* Card styling - improved interaction */
.card {
    border-radius: 15px; /* More rounded corners for a friendlier look */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card:hover:not(.active)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 1;
}

/* Zajistit, že ikonky v card-title zůstanou viditelné */
.card-title i,
.card:hover:not(.active) .card-title i,
.journey-card:hover:not(.active) .card-title i,
.place-card:hover:not(.active) .card-title i {
    color: inherit;
    margin-right: 5px;
}

.card-header {
    border-bottom: 1px solid var(--light-gray);
    background-color: var(--white);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.card:hover:not(.active) .card-header {
    background-color: rgba(15, 114, 150, 0.05);
    color: var(--dark-gray);
}

.card-title {
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.card:hover:not(.active) .card-title {
    color: var(--dark-gray);
    font-weight: 700;
}

/* Custom colorful cards */
.card-primary {
    border-top: 4px solid var(--primary-color);
}

.card-secondary {
    border-top: 4px solid var(--secondary-color);
}

.card-accent {
    border-top: 4px solid var(--accent-color);
}

.card-adventure {
    border-top: 4px solid var(--adventure-green);
}

.card-sunset {
    border-top: 4px solid var(--sunset-red);
}

.card-sunny {
    border-top: 4px solid var(--sunny-yellow);
}

/* Form elements - more friendly and interactive */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 50px; /* Rounded form controls */
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.25);
    border-color: var(--accent-color);
}

textarea.form-control {
    border-radius: 15px;
}

.input-group-text {
    background-color: var(--light-gray);
    border: none;
    border-radius: 50px;
}

/* Oprava search boxu v navigačni liště */
.navbar-search-block .form-control,
.form-inline .form-control-navbar {
    height: 36px;
    line-height: 36px;
}

.navbar-search-block .btn-navbar {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Oprava search boxu v sidebar */
.sidebar-search .form-control {
    height: 36px;
}

/* Checkbox styling - more playful */
.custom-checkbox .custom-control-label::before {
    border-radius: 50%; /* Make checkboxes circular */
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Progress bars - rounded and colorful */
.progress {
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #eeeeee;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(to right, var(--secondary-color), #ff9d4d);
    border-radius: 10px;
}

/* Badges - more rounded and playful */
.badge {
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

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

.badge-secondary {
    background-color: var(--secondary-color);
}

.badge-accent {
    background-color: var(--accent-color);
    color: var(--dark-gray);
}

.badge-adventure {
    background-color: var(--adventure-green);
    color: white;
}

.badge-sunset {
    background-color: var(--sunset-red);
    color: white;
}

.badge-sunny {
    background-color: var(--sunny-yellow);
    color: #444;
}

/* Avatars - with colorful borders */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

.avatar-md {
    width: 56px;
    height: 56px;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

/* Utility classes */
.text-primary-color {
    color: var(--primary-color) !important;
}

.text-secondary-color {
    color: var(--secondary-color) !important;
}

.text-accent-color {
    color: var(--accent-color) !important;
}

.bg-primary-color {
    background-color: var(--primary-color) !important;
}

.bg-secondary-color {
    background-color: var(--secondary-color) !important;
}

.bg-accent-color {
    background-color: var(--accent-color) !important;
}

.bg-adventure {
    background-color: var(--adventure-green) !important;
}

.bg-sunset {
    background-color: var(--sunset-red) !important;
}

.bg-sunny {
    background-color: var(--sunny-yellow) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

/* Footer customization - more friendly */
.main-footer {
    border-top: none;
    font-size: 0.9rem;
    padding: 1rem;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
}

/* Custom table styles - more rounded and playful */
.table-mcl {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.table-mcl thead th {
    background-color: #f0f8ff;
    color: var(--primary-color);
    border-top: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.table-mcl tbody tr:hover {
    background-color: rgba(92, 225, 230, 0.1);
}

/* Custom journey/place card styles - enhanced header and improved interaction */
.journey-card, .place-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
    position: relative;
}

.journey-card:hover, .place-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.journey-card::before, .place-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 1;
    transition: height 0.3s ease;
}

.journey-card:hover:not(.active)::before, .place-card:hover:not(.active)::before {
    height: 4px;
}

.journey-card .card-header, .place-card .card-header {
    transition: all 0.3s ease;
    background-color: white;
}

.journey-card:hover:not(.active) .card-header, .place-card:hover:not(.active) .card-header {
    background-color: rgba(255, 138, 42, 0.1);
    color: var(--dark-gray);
}

.journey-card:hover:not(.active) .card-title, .place-card:hover:not(.active) .card-title {
    color: var(--dark-gray);
    font-weight: 700;
}

.journey-card .journey-image, .place-card .place-image {
    height: 180px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.journey-card:hover:not(.active) .journey-image, .place-card:hover:not(.active) .place-image {
    filter: brightness(1.05);
}

/* Zvýraznění tlačítek v kartě při hoveru */
.journey-card:hover:not(.active) .btn, .place-card:hover:not(.active) .btn {
    border-color: var(--secondary-color);
}

/* Styl pro aktivní karty (když uživatel pracuje s kartou) */
.journey-card.active, .place-card.active, .card.active {
    box-shadow: 0 0 0 2px var(--secondary-color), 0 10px 20px rgba(0, 0, 0, 0.15);
}

.journey-card.active::before, .place-card.active::before, .card.active::before {
    height: 4px;
}

.journey-card.active .card-header, .place-card.active .card-header, .card.active .card-header {
    background-color: rgba(255, 138, 42, 0.15);
    color: var(--dark-gray);
}

.journey-card.active .card-title, .place-card.active .card-title, .card.active .card-title {
    color: var(--dark-gray);
    font-weight: 700;
}

.place-card .place-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

/* Map container styles - more rounded and prominent */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 4px solid white;
}

.map-container-lg {
    height: 600px;
}

.map-sidebar {
    background-color: var(--white);
    border-left: 1px solid var(--light-gray);
    border-radius: 0 15px 15px 0;
}

/* Responsive helpers */
@media (max-width: 767.98px) {
    .display-xs-none {
        display: none !important;
    }
    
    .map-container, .map-container-lg {
        height: 300px;
    }
    
    /* Banner optimalizace pro mobily */
    .banner {
        min-height: 450px;
        background-position: 30% top;
    }
    
    .banner-content {
        padding: 1.5rem;
        margin-top: 10px;
    }
    
    /* Better padding for mobile content */
    .content-wrapper .container-fluid {
        padding: 15px 10px;
    }
    
    /* Stacked buttons on mobile */
    .btn-group-responsive {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group-responsive .btn {
        margin-bottom: 0.5rem;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Improved card display on mobile */
    .journey-card, .place-card {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile-friendly breadcrumbs */
    .breadcrumb, .scrollable-breadcrumb {
        white-space: nowrap;
        overflow-x: auto;
        padding: 0.5rem 0;
        margin-bottom: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .breadcrumb::-webkit-scrollbar, 
    .scrollable-breadcrumb::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    /* Mobile-friendly modals */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
        overflow-y: auto;
        max-height: calc(100vh - 120px);
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-footer .btn {
        margin: 0.25rem;
    }
}

@media (min-width: 768px) {
    .display-md-up-none {
        display: none !important;
    }
}

/* Banner styles - more vibrant and fun */
.banner {
    background-position: center top;
    background-size: cover;
    padding: 3.5rem 0 2.5rem;
    position: relative;
    color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    align-items: flex-start;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(15, 114, 150, 0.35) 40%, 
        rgba(255, 138, 42, 0.2) 100%);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
}

/* Timeline styles - more colorful and playful */
.timeline {
    position: relative;
    padding-left: 3.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px rgba(255, 138, 42, 0.3);
    z-index: 1;
}

/* Fun features */
.fun-emoji {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.adventure-icon {
    color: var(--adventure-green);
    margin-right: 0.5rem;
}

.sunset-icon {
    color: var(--sunset-red);
    margin-right: 0.5rem;
}

.sunny-icon {
    color: var(--sunny-yellow);
    margin-right: 0.5rem;
}

/* Map marker custom style */
.map-marker {
    width: 30px;
    height: 30px;
    display: block;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    color: white;
    font-size: 14px;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    border: 2px solid white;
}

.map-marker:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 8px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid inherit;
}

.custom-div-icon {
    background: none;
    border: none;
}

.popup-content {
    padding: 8px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
}