/* ================================
   PROFESSIONAL GHOST THEME STYLES
   ================================ */

/* ================================
   CSS VARIABLES - COLOR SYSTEM
   ================================ */
:root {
    /* Layout */
    --nav-width: 260px;
    --container-width: 1200px;

    /* Core Colors */
    --color-white: #ffffff;
    --color-black: #0a0a0b;

    /* Primary — Indigo */
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-light: rgba(79, 70, 229, 0.08);
    --color-primary-rgb: 79, 70, 229;

    /* Accent — Emerald */
    --color-accent: #059669;
    --color-accent-hover: #047857;

    /* Text — Cool neutrals */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    /* Backgrounds — Pure & clean */
    --bg-body: #ffffff;
    --bg-light: #f9fafb;
    --bg-card: #ffffff;

    /* Sidebar — Light & clean */
    --sidebar-bg: #ffffff;
    --sidebar-text: #374151;
    --sidebar-text-muted: #9ca3af;
    --sidebar-border: #f3f4f6;
    --sidebar-hover-bg: #f9fafb;
    --sidebar-active-bg: var(--color-primary);

    /* Borders */
    --border-light: #f3f4f6;
    --border-medium: #e5e7eb;

    /* Shadows — Refined & subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 14px rgba(79, 70, 229, 0.25);
    --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 0 0 1px rgba(79, 70, 229, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ================================
   GLOBAL STYLES
   ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ================================
   GHOST ANNOUNCEMENT BAR
   ================================ */
.gh-announcement-bar {
    margin-left: var(--nav-width);
    z-index: 1000;
    position: relative;
    background: linear-gradient(135deg, #4f46e5, #6366f1, #818cf8, #6366f1, #4f46e5) !important;
    background-size: 300% 300% !important;
    animation: announcementGradient 6s ease infinite;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.2);
    border: none !important;
}

.gh-announcement-bar-wrapper {
    padding: 14px 24px !important;
    min-height: auto !important;
}

.gh-announcement-bar-content {
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    font-size: 15px !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Pulsing dot before announcement text */
.gh-announcement-bar-content::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: announcementPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Link inside announcement */
.gh-announcement-bar-content a {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px !important;
    font-weight: 800 !important;
    transition: all 0.2s ease;
}

.gh-announcement-bar-content a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.6) !important;
}

/* Close/dismiss button */
.gh-announcement-bar-close {
    color: #ffffff !important;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.gh-announcement-bar-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Animated gradient */
@keyframes announcementGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulsing dot animation */
@keyframes announcementPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

@media (max-width: 1024px) {
    .gh-announcement-bar {
        margin-left: 0;
    }

    .gh-announcement-bar-content {
        font-size: 13px !important;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Prevent images from causing overflow */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* ================================
   MOBILE MENU TOGGLE BUTTON
   ================================ */
.mobile-menu-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: var(--color-white);
    border: 1px solid var(--border-medium);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.mobile-menu-toggle:hover svg {
    stroke: var(--color-primary);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

body.menu-open .mobile-menu-toggle {
    display: none !important;
}

/* ================================
   MENU OVERLAY
   ================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ================================
   SIDE NAVIGATION
   ================================ */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-medium);
    display: flex;
    flex-direction: column;
    z-index: 999;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .side-nav {
        transform: translateX(-100%);
        box-shadow: var(--shadow-2xl);
        width: 300px;
        max-width: 85vw;
    }

    .side-nav.menu-open {
        transform: translateX(0);
    }

    .close-menu {
        display: flex !important;
    }
}

.side-nav::-webkit-scrollbar {
    width: 8px;
}

.side-nav::-webkit-scrollbar-track {
    background: transparent;
}

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

.side-nav::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-hover);
}

/* ================================
   SIDE BRAND (LOGO AREA)
   ================================ */
.side-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.close-menu {
    background: var(--bg-light);
    border: 1px solid var(--border-medium);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.close-menu:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    transform: rotate(90deg);
}

.close-menu svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-muted);
    transition: var(--transition);
}

.close-menu:hover svg {
    stroke: var(--color-primary);
}

@media (max-width: 1024px) {
    .close-menu {
        display: flex;
    }
}

.gh-head-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    transition: var(--transition);
    flex: 1;
    letter-spacing: -0.03em;
}

.gh-head-logo:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.gh-head-logo img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.gh-head-logo span {
    color: var(--color-primary);
    transition: var(--transition);
}

.gh-head-logo:hover span {
    color: var(--color-primary-hover);
}

/* ================================
   NAVIGATION MENU
   ================================ */
.side-nav .nav {
    flex: 1;
    padding: 16px 0;
    list-style: none;
    margin: 0;
}

.side-nav .nav li {
    margin: 0;
}

.side-nav .nav li.nav-home,
.side-nav .nav li:first-child {
    display: none !important;
}

.side-nav .nav a {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    margin: 1px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    gap: 10px;
    letter-spacing: 0;
}

.side-nav .nav a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    opacity: 0.7;
    transition: var(--transition);
    flex-shrink: 0;
}

.side-nav .nav a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--radius-md);
    z-index: -1;
}

.side-nav .nav a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
    transform: none;
}

.side-nav .nav a:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.side-nav .nav a:hover::after {
    opacity: 0.08;
}

.side-nav .nav a.nav-current,
.side-nav .nav a.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-weight: 600;
}

.side-nav .nav a.nav-current svg,
.side-nav .nav a.active svg {
    opacity: 1;
    stroke: var(--color-primary);
}

.side-nav .nav a.nav-current::after,
.side-nav .nav a.active::after {
    opacity: 0;
}

.side-nav .nav a.nav-current::before,
.side-nav .nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--color-primary);
    border-radius: 0 3px 3px 0;
}

/* ================================
   SOCIAL LINKS
   ================================ */
.social-links {
    padding: 16px;
    margin-top: auto;
    border-top: 1px solid var(--border-medium);
}

.social-links h3 {
    font-size: 11px;
    font-weight: 600;
    color: var(--sidebar-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links h3 svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
}

.social-links .social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    opacity: 0;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
    transform: translateY(-1px);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    position: relative;
    z-index: 1;
}

/* ================================
   SEARCH BUTTON
   ================================ */
.gh-search {
    margin: 10px 10px 16px;
    padding: 9px 12px;
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    transition: var(--transition);
    letter-spacing: 0;
    text-transform: none;
    position: relative;
    width: calc(100% - 20px);
}

.gh-search:hover {
    background: var(--color-white);
    border-color: var(--color-primary);
    color: var(--text-secondary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.gh-search:active {
    transform: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.gh-search svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
    opacity: 0.6;
}

/* ================================
   MAIN CONTENT
   ================================ */
.site-main.with-side-nav {
    margin-left: var(--nav-width);
    min-height: 100vh;
    padding: 48px;
    background: var(--bg-body);
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .site-main.with-side-nav {
        margin-left: 0;
        padding: 120px 24px 48px;
    }
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
    margin-left: var(--nav-width);
    background: #0f172a;
    border-top: none;
    padding: 0;
    transition: var(--transition);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 48px 32px;
}

/* Footer Top — 3 Column Grid */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

.footer-logo:hover {
    opacity: 0.85;
}

.footer-logo img {
    max-height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}

/* Footer Headings */
.footer-heading {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px 0;
}

/* Navigation Column */
.footer-nav .nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav .nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition-fast);
}

.footer-nav .nav a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Subscribe Column */
.footer-subscribe-text {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.footer-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.footer-subscribe-btn:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.footer-subscribe-btn svg {
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
}

.footer-powered a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: var(--transition-fast);
}

.footer-powered a:hover {
    color: #94a3b8;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .site-footer {
        margin-left: 0;
    }

    .footer-inner {
        padding: 40px 24px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-nav .nav {
        align-items: center;
    }

    .footer-subscribe-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ================================
   ACCESSIBILITY
   ================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--bg-body);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    z-index: 9999;
    transition: var(--transition);
}

.skip-link:focus {
    top: 20px;
    left: 20px;
}