/* 
 * Pothik Premium UI Styles
 * Inspired by modern travel apps (e.g., Voyage Elite)
 */

:root {
    --primary-blue: #2563eb; /* Vibrant blue */
    --secondary-blue: #4f46e5; /* Indigo */
    --accent-blue: #3b82f6; /* Lighter blue */
    --surface-light: #f8fafc;
    --text-dark: #1e293b; /* Softer slate instead of solid black */
    --text-muted: #64748b;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(37, 99, 235, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(79, 70, 229, 0.15);
    
    /* Border Radius */
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--surface-light);
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glass);
}

.glass-dark {
    background: rgba(11, 25, 44, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography Enhancements */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Custom Buttons */
.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 50, 115, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    cursor: pointer;
}

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

/* Custom Inputs */
.input-premium {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    background: var(--white);
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.input-premium:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(11, 50, 115, 0.1);
}

/* Cards */
.card-premium {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-wrapper {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    color: var(--white);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    letter-spacing: -0.03em;
}

/* Search Bar (Glass) */
.search-bar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 800px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 20px;
}

.search-input-group input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 10px;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.search-input-group input:focus {
    outline: none;
}

.search-input-group input::placeholder {
    color: #888;
}

.popular-tags {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.tag-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Navbar Enhancements */
.nav-transparent {
    background: transparent !important;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 50;
}

.nav-transparent .nav-link {
    color: var(--white) !important;
    font-weight: 500;
}

.nav-solid {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

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

.nav-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-transparent .nav-brand {
    color: var(--white);
}

/* Photo Grid (Hotels) */
.photo-grid-premium {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 16px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 30px;
}

.photo-main {
    grid-row: span 2;
    position: relative;
}

.photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
}

/* Flight Cards */
.flight-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flight-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-soft);
}

.timeline-dots {
    display: flex;
    align-items: center;
    width: 200px;
    margin: 0 20px;
    position: relative;
}

.timeline-line {
    height: 2px;
    background: #e2e8f0;
    flex: 1;
    position: relative;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-blue);
    background: white;
    padding: 0 10px;
}

.badge-emission {
    background: #e6f8f3;
    color: #0d9488;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Checkout Form */
.checkout-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid #edf2f7;
    padding: 30px;
    margin-bottom: 24px;
}

.payment-method-selector input:checked + div {
    border-color: var(--primary-blue);
    background: #f0f5fa;
}

.payment-method-selector div {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Custom Utils to override Tailwind */
.text-pothik-primary { color: var(--primary-blue); }
.bg-pothik-primary { background-color: var(--primary-blue); }
.text-pothik-accent { color: var(--accent-blue); }
