/* JourneyJoiner Custom Styles - Modern & Clean Design */

:root {
    --primary-color: #FF6B35;  /* Bright coral orange */
    --secondary-color: #FFB84D; /* Bright yellow-orange */
    --accent-color: #4ECDC4;   /* Bright teal */
    --success-color: #45B7D1;  /* Bright blue */
    --light-bg: #FAFAFA;       /* Very light gray */
    --white: #FFFFFF;
    --text-dark: #2C3E50;      /* Dark blue-gray */
    --text-muted: #6C757D;     /* Bootstrap muted */
    --border-radius-lg: 1rem;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Override Bootstrap primary colors */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #E55A2E;
    border-color: #E55A2E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

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

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

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

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

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

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

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

/* Navigation styling */
.navbar {
    background-color: var(--white) !important;
    border-bottom: 2px solid var(--light-bg);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero section styling with travel imagery */
.hero-section {
    background-color: var(--primary-color);
    background-image: url('/static/mountain-bg.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    position: relative;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8) 0%, rgba(255, 184, 77, 0.6) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Card styling */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: var(--white);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Section backgrounds */
.bg-light {
    background-color: var(--light-bg) !important;
}

/* Homepage companion cards */
.companion-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.companion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.companion-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.companion-card .card-text {
    flex-grow: 1;
}

.companion-card .card-footer {
    margin-top: auto;
}

/* Fix for companion cards row alignment */
.companion-card-container {
    margin-bottom: 30px;
}

/* Modern Card Enhancements */
.card.border-0 {
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-lg);
}

.card.shadow-sm:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Gradient overlay for modern companion cards */
.bg-gradient {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* Enhanced hover effects for modern cards */
.companion-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Modern typography enhancements */
.display-4, .display-5, .display-6 {
    font-weight: 800;
    line-height: 1.2;
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

/* Enhanced badge styles */
.badge {
    border-radius: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Modern button enhancements */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Object fit utility */
.object-fit-cover {
    object-fit: cover;
}

/* Backdrop blur effect */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Timeline animation */
.timeline .bg-success,
.timeline .bg-danger {
    transition: transform 0.2s ease;
}

.timeline .bg-success:hover,
.timeline .bg-danger:hover {
    transform: scale(1.1);
}

/* Ensure consistent spacing between rows */
.row.g-4 > [class*="col-"] {
    margin-bottom: 1.5rem;
}

.companion-hero-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.companion-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-bg) 0%, #E9ECEF 100%);
}

/* Homepage trip cards */
.trip-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    cursor: pointer;
}

.trip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.trip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.trip-hero-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.destination-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

/* CTA button enhancements */
.btn-lg {
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

/* How It Works section styling */
.how-it-works-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    width: 80px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

.how-it-works-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.how-it-works-icon i {
    transition: transform 0.3s ease;
    color: white;
}

.how-it-works-icon:hover i {
    transform: scale(1.1);
}

/* FAQ styling */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
}

.accordion-button {
    background-color: var(--white);
    border: none;
    font-weight: 600;
    padding: 1.5rem;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--white);
    color: var(--text-dark);
}

/* Clickable companion cards */
.clickable-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.15);
}

/* Companion detail page styling */
.companion-detail-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.companion-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.placeholder-image-large {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #E9ECEF 100%);
}

/* Form styling */
.form-control {
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Alert styling */
.alert-success {
    background-color: rgba(69, 183, 209, 0.1);
    border-color: var(--success-color);
    color: #2C5B72;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #721c24;
}

/* Table styling */
.table {
    background-color: var(--white);
}

.table th {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-weight: 600;
    border-color: #DEE2E6;
}

/* Badge enhancements */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* General text colors */
.text-muted {
    color: var(--text-muted) !important;
}

/* Button variations */
.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #3A9BC1;
    border-color: #3A9BC1;
}

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

.btn-info:hover {
    background-color: #40B5AB;
    border-color: #40B5AB;
}

/* Footer styling */
.bg-primary.text-white {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Trip detail page styling */
.trip-detail-header {
    height: 300px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 0.375rem 0.375rem 0 0;
}

.destination-image-large {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.375rem 0.375rem 0 0;
}

.placeholder-circle {
    width: 120px;
    height: 120px;
    background-color: #f8f9fa;
    border-radius: 50%;
}

.host-photo-large {
    position: relative;
}

.host-photo-large img {
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Enhanced clickable cards for trips */
.trip-card.clickable-card {
    transition: all 0.3s ease;
}

.trip-card.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
    cursor: pointer;
}

/* Host profile page styling */
.host-detail-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.host-detail-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}