/* GlobalDeals shared theme — matches tools.globalonlinedeals.shop dashboard */

:root {
    --gd-bg: #0b0e1a;
    --gd-panel: #12162a;
    --gd-border: #232840;
    --gd-text: #e5e7eb;
    --gd-text-dim: #8b93a8;
    --gd-purple: #7c5cfc;
    --gd-purple-light: #a78bfa;
    --gd-blue: #4f8cff;
    --gd-green: #34d399;
    --gd-orange: #f5a623;
}

/* Full-bleed elements (100vw trick) can introduce a horizontal
   scrollbar because 100vw includes the scrollbar's own width.
   This keeps the page locked to no horizontal scroll. */
html, body {
    overflow-x: hidden;
}

/* ---------- Header ---------- */
/* Full-bleed: breaks out of Elementor's boxed content container
   regardless of theme content width. */
.gd-header {
    background: var(--gd-bg);
    border-bottom: 1px solid var(--gd-border);
    padding: 0 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.gd-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.gd-logo {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.gd-logo span {
    color: var(--gd-purple-light);
}

.gd-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gd-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--gd-text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.gd-nav-link:hover {
    background: var(--gd-panel);
    color: var(--gd-text);
}

.gd-nav-link.gd-active {
    background: rgba(124, 92, 252, 0.12);
    color: var(--gd-purple-light);
}

.gd-nav-icon {
    font-size: 14px;
}

.gd-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gd-text);
    font-size: 22px;
    cursor: pointer;
}

/* ---------- Footer ---------- */
.gd-footer {
    background: var(--gd-bg);
    border-top: 1px solid var(--gd-border);
    padding: 40px 24px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gd-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gd-footer-brand {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.gd-footer-brand span {
    color: var(--gd-purple-light);
}

.gd-footer-brand p {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--gd-text-dim);
}

.gd-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gd-footer-links a {
    color: var(--gd-text-dim);
    text-decoration: none;
    font-size: 13px;
}

.gd-footer-links a:hover {
    color: var(--gd-purple-light);
}

.gd-footer-copy {
    color: var(--gd-text-dim);
    font-size: 12px;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gd-border);
    margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .gd-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--gd-bg);
        border-bottom: 1px solid var(--gd-border);
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        display: none;
    }
    .gd-nav.gd-nav-open {
        display: flex;
    }
    .gd-header-inner {
        position: relative;
    }
    .gd-nav-toggle {
        display: block;
    }
    .gd-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}
