/* LeapLogs Custom Styles */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* ─── Home Page Sections ─── */
.section-heading {
    font-weight: 700;
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    margin: 8px auto 0;
    border-radius: 2px;
}

.section-subheading {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ─── City Card Refinements ─── */
.city-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.city-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important;
}

.city-card-img {
    height: 140px;
    object-fit: cover;
}

.city-card-placeholder {
    height: 140px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

/* ─── Quick Action Cards ─── */
.action-card {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(108,92,231,0.12) !important;
}

.action-card .card-body {
    padding: 2rem 1.5rem;
}

.action-card .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
}

.action-card .card-title {
    font-weight: 600;
    font-size: 1.15rem;
}

/* ─── Home Page: Transparent Navbar ─── */
.home-page .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent !important;
    box-shadow: none !important;
}

.home-page .navbar .nav-link {
    color: #212529 !important;
}

.home-page .navbar .btn-outline-dark {
    color: #fff;
    border-color: rgba(255,255,255,.6);
}

.home-page .navbar .btn-outline-dark:hover {
    background: rgba(255,255,255,.15);
}

.home-page .navbar .dropdown-toggle {
    color: #212529 !important;
}

.home-page .navbar-tagline {
    color: #495057 !important;
    font-style: italic;
}

/* ─── Hero Section ─── */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0;
    max-width: 720px;
    width: 100%;
}

.hero-title {
    font-family: 'Allura', cursive;
    font-size: 5rem;
    color: #fff;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-search {
    display: flex;
    gap: 8px;
    max-width: 700px;
    margin: 0 auto 0.5rem;
}

.hero-categories {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.hero-country-select {
    width: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    font-size: 0.95rem;
    background: #fff;
    color: #212529;
    cursor: pointer;
}

.hero-country-select:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
    outline: none;
}

.hero-search .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 20px;
    font-size: 1.05rem;
    background: #fff;
    color: #212529;
}

.hero-search .form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.hero-search .form-control::placeholder {
    color: #adb5bd;
    font-weight: 300;
}

/* ─── Global muted placeholder text ─── */
.form-control::placeholder {
    color: #c0c0c0;
    font-weight: 300;
    font-style: italic;
}

.hero-search .btn {
    border-radius: 8px;
    padding: 12px 24px;
}

.hero-links {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.hero-links span {
    margin-right: 6px;
}

.hero-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin: 0 4px;
    font-weight: 500;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.hero-links a:hover {
    background: rgba(255,255,255,0.2);
}

/* ─── Hero Category Pills ─── */
.hero-cat-btn {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hero-cat-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.hero-cat-btn.active {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* ─── Navbar Category Pills ─── */
.nav-cat-btn {
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 0.85rem;
    background: #f1f3f5;
    transition: all 0.15s;
    white-space: nowrap;
}
.nav-cat-btn:hover {
    background: #dee2e6;
    color: #212529;
}

/* ─── Home page: transparent navbar pills ─── */
.home-page .nav-cat-btn {
    color: #495057;
    background: #f1f3f5;
}
.home-page .nav-cat-btn:hover {
    background: #e9ecef;
    color: #212529;
}
.home-page .navbar-brand span {
    color: #212529;
}
.home-page .navbar .btn-outline-dark {
    color: #212529;
    border-color: #dee2e6;
}

/* ─── Navbar Brand ─── */
.navbar-brand {
    font-weight: 800;
    font-style: italic;
    font-size: 1.5rem;
    color: #1b4332;
    letter-spacing: -0.3px;
}

.navbar .dropdown-toggle {
    color: #212529 !important;
}

.home-page .navbar-brand {
    color: #212529 !important;
}

/* ─── City Detail Tabs ─── */
.city-tab.active {
    background: #e74c3c !important;
    color: #fff !important;
}
.city-tab.active .badge {
    background: rgba(255,255,255,0.3) !important;
}

/* Card hover effects */
.card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

/* Badge styling for contributor status */
.badge-contributor {
    background-color: #f0ad4e;
    color: #212529;
}

/* Story content styling */
article p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

/* ─── Image Gallery ─── */
.gallery-section {
    position: relative;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 500px;
}

.gallery-main {
    height: 100%;
    width: 100%;
}

.gallery-slide {
    display: none;
    height: 100%;
    width: 100%;
}

.gallery-slide.active {
    display: block;
}

.gallery-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-hero-single {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-dot.active {
    background: #fff;
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* ─── Place Header ─── */
.place-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stars {
    --star-size: 1.2rem;
    --rating: 0;
    display: inline-block;
    font-size: var(--star-size);
    font-family: Times;
    line-height: 1;
    letter-spacing: 2px;
}

.stars::before {
    content: "★★★★★";
    background: linear-gradient(90deg, #f0ad4e calc(var(--rating) / 5 * 100%), #e0e0e0 calc(var(--rating) / 5 * 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Review Card ─── */
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6c5ce7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.review-rating-badge {
    background: #fff3cd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.review-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ─── Lightbox ─── */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* ─── Q&A Icon ─── */
.qa-icon { display:inline-block; width:22px; height:22px; border-radius:50%; background:#ffc107; color:#212529; font-size:10px; font-weight:700; text-align:center; line-height:22px; }

/* ─── Forum Table ─── */
.forum-table tbody tr:nth-of-type(even), .forum-table tbody tr:nth-of-type(even) td { background-color:#f8f9fa !important; }
.forum-table tbody tr:nth-of-type(even) { background:#fff !important; }

