/* ==================================================================
 * Homepage Styles — Mobile-app feel, no animations.
 * Loaded only on front page.
 * ==================================================================*/

/* App shell */
/*.fd-app-shell {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 20px;
}*/


/* ==================================================================
 * SEARCH BAR
 * ==================================================================*/
.fd-search-section { padding: 16px 20px 4px; }

.fd-search-bar {
    display: flex; align-items: center; gap: 10px;
    background: var(--fd-card);
    border: 1.5px solid var(--fd-border-solid);
    border-radius: var(--fd-radius-sm);
    padding: 10px 16px;
}
.fd-search-bar:focus-within {
    border-color: var(--fd-accent);
    box-shadow: 0 0 0 3px rgba(27,110,245,0.08);
}
.fd-search-bar svg { flex-shrink: 0; color: var(--fd-text-light); }
.fd-search-bar input {
    flex: 1; border: none; outline: none; background: none;
    font-family: var(--fd-font); font-size: 14px; color: var(--fd-text);
}
.fd-search-bar input::placeholder { color: var(--fd-text-light); }


/* ==================================================================
 * HERO CARD
 * ==================================================================*/
.fd-hero-section { padding: 16px 20px; }

.fd-hero-card {
    background: linear-gradient(145deg, #1b6ef5 0%, #0f4ab5 60%, #0a3280 100%);
    border-radius: var(--fd-radius);
    padding: 24px 22px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(27,110,245,0.25);
}
/* Decorative circles */
.fd-hero-card::before {
    content: ''; position: absolute; top: -30px; right: -20px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
}
.fd-hero-card::after {
    content: ''; position: absolute; bottom: -50px; right: 30px;
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.fd-hero-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.14);
    border-radius: 20px; padding: 3px 11px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.3px; text-transform: uppercase;
    margin-bottom: 12px;
}
.fd-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4ade80;
}

.fd-hero-title {
    font-family: var(--fd-font-display);
    font-size: 21px; font-weight: 800; line-height: 1.2;
    margin-bottom: 8px; position: relative; z-index: 1;
}
.fd-hero-sub {
    font-size: 14px; opacity: 0.85; line-height: 1.45;
    margin-bottom: 18px; position: relative; z-index: 1;
}
.fd-hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--fd-accent-dark) !important;
    font-weight: 700; font-size: 14px;
    padding: 11px 20px; border-radius: var(--fd-radius-sm);
    text-decoration: none !important;
    position: relative; z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.fd-hero-cta:hover { color: var(--fd-accent) !important; }


/* ==================================================================
 * SECTION HEADERS
 * ==================================================================*/
.fd-section { margin-bottom: 8px; }

.fd-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 20px 12px;
}
.fd-section-title {
    font-family: var(--fd-font-display);
    font-size: 18px; font-weight: 800;
    color: var(--fd-text); letter-spacing: -0.02em;
    margin: 0;
}
.fd-see-all {
    font-size: 13px; font-weight: 700; color: var(--fd-accent);
    text-decoration: none; display: flex; align-items: center; gap: 2px;
}


/* ==================================================================
 * 2-COLUMN CALCULATOR GRID (Jio style)
 * ==================================================================*/
.fd-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px;
}

.fd-card-large {
    background: var(--fd-card);
    border-radius: var(--fd-radius);
    padding: 16px;
    min-height: 110px;
    text-decoration: none !important;
    color: var(--fd-text);
    box-shadow: var(--fd-shadow);
    display: flex;
    position: relative;
    overflow: hidden;
}
.fd-card-large:hover { box-shadow: var(--fd-shadow-md); color: var(--fd-text); }

.fd-card-content { flex: 1; position: relative; z-index: 1; }

.fd-card-name {
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.8px; text-transform: uppercase;
    color: var(--fd-text); margin-bottom: 3px;
    display: block;
}
.fd-card-desc {
    font-size: 12px; color: var(--fd-text-light);
    line-height: 1.35; display: block;
}
.fd-card-tag {
    display: inline-block; padding: 2px 7px;
    font-size: 10px; font-weight: 800; border-radius: 4px;
    margin-top: 8px;
}

.fd-card-icon {
    position: absolute; bottom: -2px; right: -2px;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.12;
}
.fd-card-icon svg { width: 48px; height: 48px; }

/* Country accents */
.fd-card-large[data-country="us"] { border-top: 3px solid #1b6ef5; }
.fd-card-large[data-country="us"] .fd-card-tag { background: #e8f0fe; color: #1b6ef5; }
.fd-card-large[data-country="us"] .fd-card-icon { color: #1b6ef5; }

.fd-card-large[data-country="uk"] { border-top: 3px solid #6d28d9; }
.fd-card-large[data-country="uk"] .fd-card-tag { background: #ede9fe; color: #6d28d9; }
.fd-card-large[data-country="uk"] .fd-card-icon { color: #6d28d9; }

.fd-card-large[data-country="ca"] { border-top: 3px solid #dc2626; }
.fd-card-large[data-country="ca"] .fd-card-tag { background: #fee2e2; color: #dc2626; }
.fd-card-large[data-country="ca"] .fd-card-icon { color: #dc2626; }

.fd-card-large[data-country="au"] { border-top: 3px solid #0d9488; }
.fd-card-large[data-country="au"] .fd-card-tag { background: #ccfbf1; color: #0d9488; }
.fd-card-large[data-country="au"] .fd-card-icon { color: #0d9488; }


/* ==================================================================
 * 4-COLUMN ICON GRID (MakeMyTrip style)
 * ==================================================================*/
.fd-tools-panel {
    margin: 0 20px;
    background: var(--fd-card);
    border-radius: var(--fd-radius);
    padding: 18px 10px 10px;
    box-shadow: var(--fd-shadow);
}

.fd-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.fd-icon-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; text-decoration: none !important;
    padding: 8px 4px 10px; border-radius: var(--fd-radius-xs);
    color: var(--fd-text);
}
.fd-icon-card:active { background: var(--fd-accent-soft); }

.fd-icon-circle {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 6px; position: relative;
}
.fd-icon-circle svg { width: 22px; height: 22px; }

.fd-icon-label {
    font-size: 11px; font-weight: 600; line-height: 1.3;
    color: var(--fd-text-mid); max-width: 76px;
}

/* Icon backgrounds */
.bg-blue   { background: linear-gradient(135deg, #e8f0fe, #d4e4fd); color: #1b6ef5; }
.bg-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.bg-red    { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.bg-teal   { background: linear-gradient(135deg, #ccfbf1, #a7f3d0); color: #0d9488; }
.bg-amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.bg-slate  { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569; }

.fd-new-badge {
    position: absolute; top: -3px; right: -3px;
    background: #ef4444; color: #fff;
    font-size: 8px; font-weight: 800;
    padding: 1px 5px; border-radius: 5px;
    letter-spacing: 0.3px;
}

/* Expand / Collapse */
.fd-expandable {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.fd-expandable.expanded { max-height: 400px; }

.fd-expand-btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    width: 100%; padding: 10px; border: none; background: transparent;
    font-family: var(--fd-font); font-size: 13px; font-weight: 700;
    color: var(--fd-text-light); cursor: pointer;
}
.fd-expand-btn:hover { color: var(--fd-accent); }
.fd-expand-btn svg { transition: transform 0.25s ease; }
.fd-expand-btn.rotated svg { transform: rotate(180deg); }


/* ==================================================================
 * COUNTRY HORIZONTAL SCROLL
 * ==================================================================*/
.fd-country-scroll {
    display: flex; gap: 10px; padding: 0 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fd-country-scroll::-webkit-scrollbar { display: none; }

.fd-country-pill {
    display: flex; align-items: center; gap: 10px;
    background: var(--fd-card); border-radius: var(--fd-radius-sm);
    padding: 12px 16px; min-width: 175px; flex-shrink: 0;
    scroll-snap-align: start; text-decoration: none !important;
    color: var(--fd-text); box-shadow: var(--fd-shadow);
}
.fd-country-pill:hover { box-shadow: var(--fd-shadow-md); }

.fd-country-flag { font-size: 26px; line-height: 1; }
.fd-country-name { font-weight: 700; font-size: 14px; display: block; color: var(--fd-text); }
.fd-country-count { font-size: 11px; color: var(--fd-text-light); display: block; }


/* ==================================================================
 * TRUST BAR (Homepage)
 * ==================================================================*/
.fd-trust-bar-home {
    margin: 16px 20px;
    padding: 14px 16px;
    background: var(--fd-card);
    border-radius: var(--fd-radius-sm);
    box-shadow: var(--fd-shadow);
    display: flex; align-items: flex-start; gap: 12px;
}
.fd-trust-shield {
    width: 36px; height: 36px; border-radius: 50%;
    background: #ecfdf5; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--fd-success);
}
.fd-trust-text {
    font-size: 12px; color: var(--fd-text-mid); line-height: 1.5;
}
.fd-trust-text strong { color: var(--fd-text); font-weight: 700; display: block; margin-bottom: 1px; }


/* ==================================================================
 * HOW IT WORKS
 * ==================================================================*/
.fd-how-cards {
    padding: 0 20px;
    display: flex; flex-direction: column; gap: 10px;
}

.fd-how-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--fd-card);
    border-radius: var(--fd-radius-sm);
    padding: 16px; box-shadow: var(--fd-shadow);
}

.fd-how-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--fd-accent-soft); color: var(--fd-accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; flex-shrink: 0;
    font-family: var(--fd-font-display);
}

.fd-how-card strong {
    font-size: 14px; font-weight: 700; display: block;
    margin-bottom: 2px; color: var(--fd-text);
}
.fd-how-card p {
    font-size: 13px; color: var(--fd-text-mid); line-height: 1.5;
    margin: 0;
}


/* ==================================================================
 * LATEST GUIDES LIST
 * ==================================================================*/
.fd-guides-list {
    padding: 0 20px;
    display: flex; flex-direction: column; gap: 8px;
}

.fd-guide-card {
    display: block;
    background: var(--fd-card);
    border-radius: var(--fd-radius-sm);
    padding: 14px 16px;
    text-decoration: none !important;
    color: var(--fd-text);
    box-shadow: var(--fd-shadow);
    border-left: 3px solid var(--fd-accent);
}
.fd-guide-card:hover { box-shadow: var(--fd-shadow-md); }

.fd-guide-meta-tag {
    display: inline-block;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--fd-accent); background: var(--fd-accent-soft);
    padding: 2px 7px; border-radius: 3px;
    margin-bottom: 6px;
}

.fd-guide-title {
    font-weight: 700; font-size: 14px; line-height: 1.35;
    margin-bottom: 4px; color: var(--fd-text);
}

.fd-guide-meta {
    font-size: 12px; color: var(--fd-text-light);
}


/* ==================================================================
 * HOME FAQ
 * ==================================================================*/
.fd-home-faq { padding: 0 20px; }


/* ==================================================================
 * RESPONSIVE — Larger mobile / tablet
 * ==================================================================*/
@media (min-width: 480px) {
    .fd-hero-title { font-size: 24px; }
    .fd-card-name { font-size: 13px; }
    .fd-card-desc { font-size: 13px; }
    .fd-icon-circle { width: 52px; height: 52px; }
}

@media (min-width: 680px) {
    .fd-grid-2col { grid-template-columns: repeat(4, 1fr); }
    .fd-card-large { min-height: 130px; padding: 18px; }
    .fd-guides-list { flex-direction: row; flex-wrap: wrap; }
    .fd-guide-card { flex: 1; min-width: 200px; }
}
