/* Custom Styles for Port Blair Airport Guide */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    background-color: #fbf7f0;
}

/* Typography Improvements */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Improved Spacing */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.card {
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

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

/* Softer CTA Buttons */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
}

/* Accessible Color Contrast Improvements */
.text-muted {
    color: #5c636a !important; /* Improved contrast */
}

.card-text.text-muted {
    color: #5c636a !important;
}

small, .small {
    color: #6c757d;
}

/* Better Visual Hierarchy */
.card-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

/* Improved Card Styling */
.card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.125) !important;
    transform: translateY(-2px);
}

.home-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid rgba(13, 110, 253, 0.12);
    box-shadow: 0 0.5rem 1.25rem rgba(13, 110, 253, 0.08) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.9), rgba(32, 201, 151, 0.9));
    z-index: 1;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.75rem rgba(13, 110, 253, 0.15) !important;
    border-color: rgba(13, 110, 253, 0.25);
}

.home-card .card-body {
    position: relative;
    z-index: 2;
}

.home-card .card-img-top {
    border-bottom: 1px solid rgba(13, 110, 253, 0.12);
}

.home-card .btn {
    border-radius: 999px;
}

.home-card .card-title {
    letter-spacing: -0.2px;
}

/* Vendor Card Specific Styling */
.card-body .bg-light {
    background-color: #f8f9fa !important;
    border-radius: 0.375rem;
}

/* Better Badge Styling */
.badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
    font-size: 0.875em;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* Improved Link Contrast */
a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    color: #0b5ed7;
    text-decoration: none;
}

/* Better Form Elements */
.form-control {
    border-color: #ced4da;
    padding: 0.625rem 0.875rem;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Improved Alert Styling */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border-width: 1px;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Better Table Styling */
.table {
    color: #212529;
}

.table thead th {
    background-color: #f8f9fa;
}

/* Modern Overlay Card */
.modern-card {
    position: relative;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #000;
    cursor: pointer;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2) !important;
}

.modern-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.modern-card:hover .modern-card-img {
    transform: scale(1.05);
}

.modern-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 110, 253, 0.85); /* Default Primary */
    z-index: 2;
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

/* Overlay Colors matching Bootstrap Contexts */
.overlay-primary { background-color: rgba(13, 110, 253, 0.85); }
.overlay-info { background-color: rgba(13, 202, 240, 0.85); }
.overlay-success { background-color: rgba(25, 135, 84, 0.85); }
.overlay-warning { background-color: rgba(255, 193, 7, 0.85); }
.overlay-danger { background-color: rgba(220, 53, 69, 0.85); }
.overlay-secondary { background-color: rgba(108, 117, 125, 0.85); }

.modern-card:hover .modern-card-overlay {
    opacity: 0.2;
}

.modern-card-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    pointer-events: none; /* Allows click to pass through to link */
}

.modern-card-title {
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modern-card-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1.5;
}

.modern-card-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    text-shadow: none;
}

.modern-card:hover .modern-card-btn {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.modern-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

/* Restoring likely lost styles */

/* Navbar */
.app-navbar {
    background-color: #0d6efd; /* Primary blue */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    height: auto;
    min-height: 520px;
    background-color: #000; /* Fallback */
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

#heroCarousel {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.z-index-2 {
    z-index: 2;
}

/* Update text shadow for better readability over images */
.hero-section h1, .hero-section p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-section h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
}

.hero-section .lead {
    font-size: 1rem;
}

.hero-section .container.position-absolute {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    padding-top: 6rem;
    padding-bottom: 2.5rem;
}

.cta-primary {
    background-color: #0d6efd;
    border: 2px solid #0d6efd;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

.cta-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

.cta-transport {
    background-color: #ffc107;
    color: #1c1c1c;
    border: 2px solid #ffc107;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-transport:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #1c1c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

@media (min-width: 992px) {
    .hero-section {
        height: 100vh;
        min-height: 600px;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section .lead {
        font-size: 1.125rem;
    }

    .hero-section .container.position-absolute {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        padding-top: 0;
        padding-bottom: 0;
    }

    .cta-primary, .cta-secondary {
        width: auto;
        display: inline-block;
        margin-bottom: 0;
    }
}

/* Trending Bar */
.trending-bar {
    background: rgba(17, 24, 39, 0.85); /* Semi-transparent dark */
    backdrop-filter: blur(12px); /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(12px);
    border: none;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2); /* Shadow going up */
    position: static;
}

.trending-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.updates-column {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.weather-column {
    flex: 1 1 auto;
    max-width: none;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.weather-slot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    width: auto;
    max-width: 100%;
}

.weather-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.weather-info {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-label .badge {
    padding: 0.6em 1em;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.3);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.ticker-items {
    font-size: 0.95rem;
    color: #fff; /* White text */
}

.ticker-wrapper {
    min-width: 0;
}

#news-ticker {
    min-width: 0;
}

.ticker-items {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .hero-section .container.position-absolute {
        padding-top: 5rem;
    }

    .weather-slot {
        gap: 0.5rem;
        padding: 0.35rem 0.55rem;
    }

    .weather-label {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .weather-info {
        font-size: 0.85rem;
        max-width: 60vw;
    }

    .trending-label .badge {
        padding: 0.45em 0.75em;
        font-size: 0.75rem;
    }

    .ticker-items {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .trending-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
    }

    .trending-row {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .updates-column {
        width: auto;
    }

    .weather-column {
        flex: 0 0 auto;
        max-width: 320px;
        justify-content: flex-end;
        width: auto;
        margin-left: auto;
    }

    .weather-info {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ticker-items {
        font-size: 1.05rem;
    }
}

/* Footer */
.app-footer {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #cbd5f5;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-top {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
}

.app-footer h5 {
    color: #f8fafc;
}

.footer-tagline {
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.9rem;
}

.footer-text {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.95rem;
}

.footer-title {
    color: #e2e8f0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(226, 232, 240, 0.75);
    display: inline-flex;
    padding: 0.15rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
    text-decoration: none;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.8rem;
}

.footer-bottom {
    color: rgba(226, 232, 240, 0.7);
}

.footer-note {
    font-size: 0.9rem;
}

.footer-copy {
    font-size: 0.85rem;
}
