/* ============================================
   GLOBAL CSS — Explore Jordan Website
   Foundation styles, nav, footer, shared components
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary:       #B8844D;
    --primary-dark:  #8B6F47;
    --primary-light: #D4A574;
    --primary-pale:  #F5EDE3;
    --primary-accent:#BF6430;
    --bg-light:      #F8FAFC;
    --text-dark:     #1f1713;
    --text-muted:    #6b7280;
    --glass-bg:      rgba(255, 255, 255, 0.75);
    --glass-border:  rgba(255, 255, 255, 0.5);
    --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md:     0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-lg:     0 16px 48px rgba(0, 0, 0, 0.1);
    --radius-sm:     12px;
    --radius-md:     20px;
    --radius-lg:     28px;
    --radius-full:   50px;
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESET
   ============================================ */
*,
*::before,
*::after {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    animation: pageEnter 0.6s var(--ease-smooth) forwards;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.exiting {
    animation: pageExit 0.3s ease forwards;
    pointer-events: none;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes pageExit {
    from {
        opacity: 1;
        filter: blur(0);
    }
    to {
        opacity: 0;
        filter: blur(3px);
    }
}

/* ============================================
   GLASS PANEL
   ============================================ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .glass-panel {
        border-radius: 32px;
    }
}

/* ============================================
   FLOATING LOGO — TOP LEFT (all screens)
   ============================================ */
.floating-logo {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(184, 132, 77, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: all 0.35s var(--ease-spring);
    cursor: pointer;
}

.floating-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184, 132, 77, 0.18);
    background: rgba(255, 255, 255, 0.95);
}

.floating-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.floating-logo-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.2px;
}

@media (max-width: 380px) {
    .floating-logo {
        padding: 8px 12px;
    }
    .floating-logo-text {
        display: none;
    }
}

@media (min-width: 768px) {
    .floating-logo {
        top: 24px;
        left: 24px;
        padding: 10px 20px;
        gap: 10px;
    }
    .floating-logo img {
        width: 30px;
        height: 30px;
    }
    .floating-logo-text {
        font-size: 14px;
    }
}

/* ============================================
   FLOATING NAV — BOTTOM RIGHT (all screens)
   About & Contact buttons
   ============================================ */
.floating-nav {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(184, 132, 77, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

@media (min-width: 768px) {
    .floating-nav {
        bottom: 28px;
        right: 28px;
        gap: 8px;
        padding: 9px 14px;
    }
}

/* Individual nav button */
.fn-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    color: var(--primary);
    transition: all 0.35s var(--ease-spring);
    white-space: nowrap;
    border: none;
    background: transparent;
    cursor: pointer;
}

.fn-btn .material-icons {
    font-size: 17px;
    flex-shrink: 0;
}

.fn-btn:hover {
    background: rgba(184, 132, 77, 0.1);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Active / current page state */
.fn-btn.fn-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    box-shadow: 0 6px 20px rgba(184, 132, 77, 0.35);
}

.fn-btn.fn-active .material-icons,
.fn-btn.fn-active span {
    color: white;
}

/* Divider */
.fn-divider {
    width: 1px;
    height: 20px;
    background: rgba(184, 132, 77, 0.2);
    flex-shrink: 0;
}

/* Mobile: hide labels on tiny screens */
@media (max-width: 380px) {
    .fn-btn {
        padding: 8px 10px;
    }
    .fn-btn-label {
        display: none;
    }
}

@media (min-width: 481px) {
    .fn-btn {
        font-size: 13px;
        gap: 7px;
    }
    .fn-btn .material-icons {
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .fn-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}

/* ============================================
   BADGE
   ============================================ */
.badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(184, 132, 77, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(184, 132, 77, 0.15);
}

/* ============================================
   DOWNLOAD BUTTONS (shared)
   ============================================ */
.download-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-button {
    background: #111;
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 50px;
    flex: 1;
    min-width: 148px;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.store-button:hover {
    background: #222;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.store-button img {
    object-fit: contain;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-label {
    font-size: 9px;
    opacity: 0.75;
    text-transform: uppercase;
    line-height: 1;
}

.btn-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .download-buttons {
        gap: 16px;
    }
    .store-button {
        padding: 11px 22px;
        min-width: 166px;
        flex: none;
        border-radius: 14px;
    }
    .btn-label {
        font-size: 10px;
    }
    .btn-name {
        font-size: 15px;
    }
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.main-content-wrapper {
    background-color: var(--bg-light);
    min-height: 100vh;
    padding-bottom: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 28px 16px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-top: 48px;
    color: #999;
    font-size: 13px;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 4px;
}

.footer-links a {
    color: #bbb;
    font-size: 12px;
    text-decoration: none;
    padding: 2px 8px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a + a::before {
    content: '\2022';
    margin-right: 12px;
    color: #ddd;
    pointer-events: none;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px;
        margin-top: 64px;
        font-size: 14px;
    }
    .footer-links a {
        font-size: 13px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary-desert {
    color: var(--primary);
}

.bg-primary-desert {
    background-color: var(--primary);
}

/* Accessibility */
:focus-visible {
    outline: 2.5px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

a,
button {
    transition: all 0.25s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #f0ede8;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
