/* ==========================================================
   FlyWithThis
   style.css
   Version: 2.0
   Purpose: Modern travel utility interface
========================================================== */


/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================================================
   DESIGN TOKENS
========================================================== */

:root {

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;

    --success: #16a34a;
    --success-dark: #166534;
    --success-soft: #dcfce7;

    --danger: #dc2626;
    --danger-dark: #991b1b;
    --danger-soft: #fee2e2;

    --warning: #d97706;
    --warning-dark: #92400e;
    --warning-soft: #fef3c7;

    --info: #2563eb;
    --info-soft: #dbeafe;

    --text: #172033;
    --text-secondary: #475569;
    --muted: #64748b;

    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --background: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --shadow-sm:
        0 1px 3px rgba(15, 23, 42, 0.06);

    --shadow:
        0 8px 24px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 16px 40px rgba(15, 23, 42, 0.10);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 18px;

    --transition: 0.2s ease;

}


/* ==========================================================
   HTML
========================================================== */

html {

    scroll-behavior: smooth;

    font-size: 16px;

}


/* ==========================================================
   BODY
========================================================== */

body {

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--background);

    line-height: 1.6;

    min-height: 100vh;

    -webkit-font-smoothing: antialiased;

}


/* ==========================================================
   LINKS
========================================================== */

a {

    color: inherit;

    text-decoration: none;

    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition);

}

a:hover {

    color: var(--primary);

}


/* ==========================================================
   IMAGES
========================================================== */

img {

    display: block;

    max-width: 100%;

}


/* ==========================================================
   BUTTONS
========================================================== */

button {

    border: none;

    cursor: pointer;

    font: inherit;

}


/* ==========================================================
   INPUTS
========================================================== */

input {

    font: inherit;

}


/* ==========================================================
   CONTAINER
========================================================== */

.container {

    width: min(1100px, 92%);

    margin-left: auto;

    margin-right: auto;

}


/* ==========================================================
   HEADER
========================================================== */

.site-header {

    position: sticky;

    top: 0;

    z-index: 100;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);

}

.site-header .container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 68px;

}


/* Brand */

.site-title,
.logo {

    font-size: 1.35rem;

    font-weight: 800;

    letter-spacing: -0.025em;

    color: var(--text);

}

.site-title:hover,
.logo:hover {

    color: var(--primary);

}


/* Navigation */

.main-nav {

    display: flex;

    align-items: center;

    gap: 1.5rem;

}

.main-nav a {

    color: var(--muted);

    font-size: 0.95rem;

    font-weight: 600;

}

.main-nav a:hover {

    color: var(--primary);

}


/* ==========================================================
   MAIN CONTENT
========================================================== */

main {

    padding-bottom: 4rem;

}


/* ==========================================================
   HERO
========================================================== */

.hero {

    position: relative;

    text-align: center;

    padding: 5.5rem 0 4.5rem;

}

.hero::before {

    content: "";

    position: absolute;

    top: 0;

    left: 50%;

    width: 100%;

    max-width: 900px;

    height: 280px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle at center,
            rgba(37, 99, 235, 0.08),
            transparent 68%
        );

    pointer-events: none;

    z-index: -1;

}

.hero h1 {

    max-width: 850px;

    margin: 0 auto 1rem;

    font-size: clamp(2.25rem, 5vw, 3.5rem);

    line-height: 1.12;

    letter-spacing: -0.04em;

    font-weight: 800;

}

.hero-text {

    max-width: 700px;

    margin: 0 auto 2.25rem;

    color: var(--muted);

    font-size: 1.1rem;

    line-height: 1.7;

}


/* ==========================================================
   SEARCH
========================================================== */

.search-wrapper {

    position: relative;

    width: 100%;

    max-width: 760px;

    margin: 0 auto;

}

.search-box {

    display: flex;

    width: 100%;

    background: var(--surface);

    border: 1px solid var(--border-strong);

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);

}

.search-box:focus-within {

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10),
        var(--shadow);

}

.search-box input {

    flex: 1;

    min-width: 0;

    border: none;

    outline: none;

    padding: 1rem 1.25rem;

    background: transparent;

    color: var(--text);

    font-size: 1rem;

}

.search-box input::placeholder {

    color: #94a3b8;

}

.search-box button {

    flex-shrink: 0;

    padding: 0 1.6rem;

    background: var(--primary);

    color: white;

    font-weight: 700;

    transition: background-color var(--transition);

}

.search-box button:hover {

    background: var(--primary-hover);

}


/* Alternative search input */

.search-input {

    width: 100%;

    padding: 1rem 1.25rem;

    background: var(--surface);

    color: var(--text);

    border: 1px solid var(--border-strong);

    border-radius: var(--radius);

    outline: none;

    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);

}

.search-input::placeholder {

    color: #94a3b8;

}

.search-input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);

}


/* ==========================================================
   SEARCH SUGGESTIONS
========================================================== */

.search-suggestions {

    position: relative;

    max-width: 760px;

    margin: 0 auto;

    background: var(--surface);

    border: 1px solid var(--border);

    border-top: none;

    border-radius:
        0 0 var(--radius) var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;

    display: none;

    text-align: left;

    z-index: 50;

}

.search-suggestions.active {

    display: block;

}

.search-suggestion {

    padding: 0.85rem 1.1rem;

    cursor: pointer;

    border-bottom: 1px solid var(--border);

    color: var(--text-secondary);

    transition: background-color var(--transition);

}

.search-suggestion:last-child {

    border-bottom: none;

}

.search-suggestion:hover {

    background: var(--primary-soft);

    color: var(--primary);

}


/* ==========================================================
   SEARCH RESULTS
========================================================== */

.search-results {

    margin-top: 2.5rem;

}

.search-count {

    margin-bottom: 1rem;

    color: var(--muted);

    font-size: 0.9rem;

}

.result-list {

    display: grid;

    gap: 0.85rem;

}

.result-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1.25rem;

    padding: 1.2rem 1.3rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    color: var(--text);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);

}

.result-card:hover {

    color: var(--text);

    transform: translateY(-2px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow);

}

.result-title {

    margin-bottom: 0.3rem;

    color: var(--text);

    font-size: 1.05rem;

    font-weight: 700;

}

.result-description {

    color: var(--muted);

    font-size: 0.9rem;

    line-height: 1.55;

}


/* ==========================================================
   STATUS BADGES
========================================================== */

.status {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    padding: 0.4rem 0.75rem;

    border-radius: 999px;

    font-size: 0.78rem;

    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;

}

.status.allowed {

    background: var(--success-soft);

    color: var(--success-dark);

}

.status.not-allowed {

    background: var(--danger-soft);

    color: var(--danger-dark);

}

.status.restricted {

    background: var(--warning-soft);

    color: var(--warning-dark);

}

.status.check {

    background: var(--info-soft);

    color: #1e40af;

}


/* ==========================================================
   BREADCRUMB
========================================================== */

.breadcrumb {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 0.45rem;

    padding-top: 1.5rem;

    margin-bottom: 1.25rem;

    color: var(--muted);

    font-size: 0.88rem;

}

.breadcrumb a {

    color: var(--primary);

    font-weight: 600;

}

.breadcrumb a:hover {

    text-decoration: underline;

}

.breadcrumb span {

    color: var(--muted);

}


/* ==========================================================
   ITEM HEADER
========================================================== */

.item-header {

    padding: 2rem;

    margin-bottom: 2.5rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

}

.item-header h1 {

    margin-bottom: 0.7rem;

    color: var(--text);

    font-size: clamp(1.8rem, 4vw, 2.4rem);

    line-height: 1.2;

    letter-spacing: -0.025em;

    font-weight: 800;

}

.item-summary {

    max-width: 780px;

    color: var(--text-secondary);

    font-size: 1rem;

    line-height: 1.7;

}


/* ==========================================================
   CONTENT SECTIONS
========================================================== */

.content-section {

    margin-bottom: 2.75rem;

}

.content-section h2 {

    margin-bottom: 1.1rem;

    color: var(--text);

    font-size: 1.35rem;

    line-height: 1.3;

    letter-spacing: -0.015em;

    font-weight: 750;

}

.content-section p {

    color: var(--text-secondary);

    line-height: 1.7;

}

.content-section ul {

    padding-left: 1.35rem;

}

.content-section li {

    margin-bottom: 0.65rem;

    color: var(--text-secondary);

    line-height: 1.6;

}


/* ==========================================================
   QUICK ANSWER / RULE SUMMARY
========================================================== */

.rule-summary {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 1rem;

    margin: 0;

}

.rule-box {

    position: relative;

    padding: 1.4rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

}

.rule-box::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 4px;

    background: var(--primary);

}

.rule-box h3 {

    margin-bottom: 0.7rem;

    color: var(--text);

    font-size: 1rem;

    font-weight: 750;

}

.rule-box p {

    margin: 0;

    color: var(--text-secondary);

    line-height: 1.65;

}


/* ==========================================================
   INFO BOXES
========================================================== */

.info-box {

    padding: 1.15rem 1.25rem;

    background: var(--primary-soft);

    border: 1px solid #dbeafe;

    border-left: 4px solid var(--primary);

    border-radius: var(--radius-sm);

    color: var(--text-secondary);

    line-height: 1.65;

}

.warning-box {

    background: var(--warning-soft);

    border-color: #fde68a;

    border-left-color: var(--warning);

}

.danger-box {

    background: var(--danger-soft);

    border-color: #fecaca;

    border-left-color: var(--danger);

}


/* ==========================================================
   RULE TABLE
========================================================== */

.rule-table {

    width: 100%;

    margin: 1.5rem 0;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    border-collapse: separate;

    border-spacing: 0;

    overflow: hidden;

    box-shadow: var(--shadow-sm);

}

.rule-table th {

    padding: 0.95rem 1rem;

    background: var(--surface-soft);

    color: var(--text);

    text-align: left;

    font-size: 0.9rem;

    font-weight: 700;

}

.rule-table td {

    padding: 0.95rem 1rem;

    color: var(--text-secondary);

    border-top: 1px solid var(--border);

}

.rule-table tr:hover td {

    background: #fafcff;

}


/* ==========================================================
   FAQ
========================================================== */

.faq {

    display: grid;

    gap: 0.75rem;

}

.faq-item {

    padding: 1.1rem 1.25rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);

}

.faq-item:hover {

    border-color: var(--border-strong);

    box-shadow: var(--shadow);

}

.faq-question {

    color: var(--text);

    font-weight: 700;

    cursor: pointer;

}

.faq-answer {

    margin-top: 0.7rem;

    color: var(--text-secondary);

    line-height: 1.65;

}


/* ==========================================================
   RELATED ITEMS
========================================================== */

.related-items {

    margin-top: 3.5rem;

}

.related-items h2 {

    margin-bottom: 1.1rem;

    color: var(--text);

    font-size: 1.35rem;

    font-weight: 750;

}

.related-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 0.9rem;

}

.related-card {

    display: block;

    padding: 1.1rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    color: var(--text);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);

}

.related-card:hover {

    color: var(--text);

    transform: translateY(-2px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow);

}


/* ==========================================================
   CATEGORY PAGE
========================================================== */

.category-header {

    padding: 2rem;

    margin-bottom: 2.25rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

}

.category-header h1 {

    margin-bottom: 0.65rem;

    color: var(--text);

    font-size: clamp(1.8rem, 4vw, 2.5rem);

    line-height: 1.2;

    letter-spacing: -0.025em;

    font-weight: 800;

}

.category-header p {

    max-width: 720px;

    color: var(--text-secondary);

}

.category-items {

    margin-bottom: 3rem;

}

.category-items h2 {

    margin-bottom: 1rem;

    color: var(--text);

    font-size: 1.35rem;

}

#categoryItems {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 0.9rem;

}

.category-item {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);

}

.category-item:hover {

    transform: translateY(-2px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow);

}

.category-item a {

    display: block;

    padding: 1.1rem;

    color: var(--text);

    font-weight: 650;

}

.category-item a:hover {

    color: var(--primary);

}


/* ==========================================================
   SEO CONTENT
========================================================== */

.seo-content {

    max-width: 800px;

    margin: 3rem auto;

}

.seo-content h2 {

    margin-top: 2rem;

    margin-bottom: 0.75rem;

}

.seo-content strong {

    font-weight: 750;

}


/* ==========================================================
   EMPTY STATES
========================================================== */

.empty-state {

    padding: 3.5rem 1rem;

    text-align: center;

    color: var(--muted);

}

.empty-state h2 {

    margin-bottom: 0.6rem;

    color: var(--text);

}


/* ==========================================================
   LOADING
========================================================== */

.loading {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 2.5rem;

}

.spinner {

    width: 34px;

    height: 34px;

    border: 4px solid var(--border);

    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;

}

@keyframes spin {

    to {

        transform: rotate(360deg);

    }

}


/* ==========================================================
   BUTTONS
========================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 0.5rem;

    padding: 0.7rem 1.2rem;

    border-radius: 999px;

    border: 1px solid transparent;

    font-weight: 700;

    cursor: pointer;

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);

}

.btn:hover {

    transform: translateY(-1px);

}

.btn-primary {

    background: var(--primary);

    color: white;

}

.btn-primary:hover {

    background: var(--primary-hover);

    color: white;

}

.btn-secondary {

    background: var(--surface);

    color: var(--text);

    border-color: var(--border);

}

.btn-secondary:hover {

    background: var(--surface-soft);

    color: var(--text);

    border-color: var(--border-strong);

}


/* ==========================================================
   INSTALL APP BANNER
========================================================== */

.install-banner {

    position: fixed;

    left: 1rem;

    right: 1rem;

    bottom: 1rem;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    padding: 1rem 1.15rem;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-lg);

}

.install-banner button {

    flex-shrink: 0;

    padding: 0.55rem 1rem;

    background: var(--primary);

    color: white;

    border-radius: 999px;

    font-weight: 700;

}

.install-banner button:hover {

    background: var(--primary-hover);

}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer,
.footer {

    margin-top: 4rem;

    padding: 2.5rem 1rem;

    background: var(--surface);

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 0.9rem;

    text-align: center;

}

.footer-nav {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 1rem;

    margin-top: 0.75rem;

}

.footer-nav a,
.footer a {

    color: var(--text-secondary);

    font-weight: 500;

}

.footer-nav a:hover,
.footer a:hover {

    color: var(--primary);

}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {

    outline: 3px solid rgba(37, 99, 235, 0.28);

    outline-offset: 3px;

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .container {

        width: min(94%, 1100px);

    }

    .site-header .container {

        min-height: 62px;

    }

    .hero {

        padding: 3.5rem 0 3rem;

    }

    .hero h1 {

        font-size: clamp(2rem, 9vw, 2.7rem);

    }

    .hero-text {

        font-size: 1rem;

    }

    .search-box {

        border-radius: var(--radius);

    }

    .search-box input {

        padding: 0.9rem 1rem;

    }

    .search-box button {

        padding: 0 1.1rem;

    }

    .item-header,
    .category-header {

        padding: 1.4rem;

    }

    .item-header h1,
    .category-header h1 {

        font-size: 1.75rem;

    }

    .result-card {

        align-items: flex-start;

        flex-direction: column;

        gap: 0.85rem;

    }

    .status {

        align-self: flex-start;

    }

    .rule-summary {

        grid-template-columns: 1fr;

    }

    .related-grid {

        grid-template-columns: 1fr;

    }

    #categoryItems {

        grid-template-columns: 1fr;

    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 600px) {

    body {

        font-size: 15px;

    }

    .hero {

        padding: 2.75rem 0 2.5rem;

    }

    .hero h1 {

        letter-spacing: -0.03em;

    }

    .search-box {

        flex-direction: column;

    }

    .search-box input {

        width: 100%;

        min-height: 52px;

    }

    .search-box button {

        min-height: 48px;

        width: 100%;

    }

    .breadcrumb {

        padding-top: 1.1rem;

        margin-bottom: 1rem;

    }

    .item-header,
    .category-header {

        margin-bottom: 2rem;

        border-radius: var(--radius);

    }

    .content-section {

        margin-bottom: 2.25rem;

    }

    .content-section h2 {

        font-size: 1.2rem;

    }

    .install-banner {

        flex-direction: column;

        align-items: stretch;

        text-align: center;

    }

    .install-banner button {

        width: 100%;

    }

}


/* ==========================================================
   PRINT
========================================================== */

@media print {

    body {

        background: white;

        color: black;

    }

    .site-header,
    header,
    .site-footer,
    footer,
    .search-wrapper,
    .search-box,
    .install-banner,
    .btn {

        display: none !important;

    }

    .container {

        width: 100%;

        max-width: none;

    }

    .item-header,
    .rule-box,
    .content-section,
    .faq-item,
    .related-card {

        border: none;

        box-shadow: none;

    }

    a {

        color: black;

        text-decoration: none;

    }

}


/* ==========================================================
   UTILITY CLASSES
========================================================== */

.text-center {

    text-align: center;

}

.text-muted {

    color: var(--muted);

}

.hidden {

    display: none !important;

}

.mt-1 {

    margin-top: 1rem;

}

.mt-2 {

    margin-top: 2rem;

}

.mt-3 {

    margin-top: 3rem;

}

.mb-1 {

    margin-bottom: 1rem;

}

.mb-2 {

    margin-bottom: 2rem;

}

.mb-3 {

    margin-bottom: 3rem;

}