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

/* ============================================
   CSS Variables - Sober Dark Slate Palette
   ============================================ */
:root {
    /* Plugin Master brand palette — sober, navy-tinted slate */
    --primary-bg: #0b1622;     /* deep slate — page background      */
    --secondary-bg: #101f2e;   /* raised surface / navbar           */
    --tertiary-bg: #16293a;    /* cards, inputs, quiet panels       */
    --primary-text: #e6edf3;   /* high-contrast body text           */
    --secondary-text: #8ba0b2; /* muted text                        */
    --accent-blue: #eb662e;    /* brand orange — single accent      */
    --accent-green: #4aa9c4;   /* desaturated teal — quiet highlight */
    --accent-orange: #f08040;  /* warm highlight for labels         */
    --border-color: #22384b;   /* subtle hairline borders           */
    --hover-color: #d2551f;    /* darker orange for hover           */
    --surface-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --surface-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --navbar-top-height: 74px;
    --navbar-bottom-height: 0px;
    --navbar-height: var(--navbar-top-height);
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--hover-color);
}

/* ============================================
   Navigation Bar
   ============================================ */

/* Wrapper */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--secondary-bg);
    backdrop-filter: saturate(140%) blur(8px);
}

/* ---- Top row ---- */
.navbar-top {
    height: var(--navbar-top-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.navbar-top-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.navbar-logo:hover {
    opacity: 0.85;
    color: #ffffff;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-mark {
    width: 22px;
    height: 22px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    height: var(--navbar-top-height);
    gap: 0;
    margin: 0;
    padding: 25px 0 0 0;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent-blue);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link--active::after {
    transform: scaleX(1);
}

.nav-link--active {
    color: #ffffff;
}

/* ---- Hamburger button (hidden on desktop) ---- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }
}

/* ============================================
   Mobile Drawer
   ============================================ */
.mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.mobile-drawer.is-open {
    display: block;
}

.mobile-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.25s ease;
}

.mobile-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--secondary-bg);
    border-right: 1px solid rgba(235, 102, 46, 0.2);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    animation: slideInLeft 0.25s ease;
}

.mobile-drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 20px 16px;
    line-height: 1;
    transition: color 0.2s;
}

.mobile-drawer-close:hover {
    color: #ffffff;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 14px 24px;
    color: var(--primary-text);
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.mobile-nav-link:hover {
    color: #ffffff;
    background-color: rgba(235, 102, 46, 0.08);
    border-left-color: var(--accent-blue);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background-color: #ffffff;
    padding: 96px 24px;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    color: #0b1622;
    margin-bottom: 24px;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 56px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--surface-shadow-lg);
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-description {
    font-size: 17px;
    color: #4a5b69;
    text-align: center;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto 48px;
    padding: 0 20px;
}

/* ============================================
   Quick Links Bar
   ============================================ */
.quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 10px 18px;
    background-color: var(--secondary-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.quick-link {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.quick-link:hover {
    background-color: #ffffff;
    color: #EB662E;
}

.link-separator {
    color: var(--accent-blue);
    font-weight: 300;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    margin-top: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-note {
    font-size: 13.5px;
    color: #4a5b69;
    background-color: #f0f4f8;
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    line-height: 1.7;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 15px;
    color: #0b1622;
    background-color: #f7f9fb;
    border: 1px solid #c8d6e0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0b4c2;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(235, 102, 46, 0.12);
    background-color: #ffffff;
}

.contact-submit {
    align-self: flex-start;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--accent-blue);
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 28px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.contact-submit:hover {
    background-color: var(--hover-color);
    transform: translateY(-1px);
}

.contact-submit:active {
    transform: translateY(0);
}

/* ============================================
   Changelog Section
   ============================================ */
.changelog-section {
    background-color: var(--primary-bg);
    padding: 96px 24px;
}

.changelog-container {
    max-width: 1000px;
    margin: 0 auto;
}

.changelog-section h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
    text-align: center;
    color: var(--primary-text);
}

.changelog-entry {
    background-color: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--surface-shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.changelog-entry:hover {
    box-shadow: var(--surface-shadow-lg);
    border-color: var(--secondary-text);
    transform: translateY(-2px);
}

.version-title {
    font-size: 20px;
    color: var(--primary-text);
    margin-bottom: 24px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.changelog-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category {
    padding: 18px;
    background-color: var(--secondary-bg);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius-sm);
}

.category-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.category-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    margin-right: 10px;
}

.change-list {
    list-style: none;
    padding: 0;
}

.change-list li {
    padding: 8px 0;
    color: var(--primary-text);
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.change-list li:hover {
    color: var(--accent-blue);
}

.change-list li strong {
    color: var(--accent-orange);
    font-weight: 700;
    margin-right: 8px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 48px 24px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container p {
    color: var(--secondary-text);
    font-size: 14px;
    margin: 6px 0;
}

.footer-container p:first-child {
    color: var(--primary-text);
    font-weight: 600;
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 64px 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .changelog-section {
        padding: 64px 20px;
    }

    .changelog-section h2 {
        font-size: 24px;
    }

    .changelog-entry {
        padding: 20px;
    }

    .version-title {
        font-size: 18px;
    }

    .changelog-categories {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Responsive Design - Mobile
   ============================================ */
@media (max-width: 480px) {
    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero-section {
        padding: 30px 15px;
    }

    .video-container {
        margin-bottom: 30px;
    }

    .hero-description {
        font-size: 13px;
        padding: 0 10px;
    }

    .quick-links {
        padding: 20px;
        gap: 10px;
    }

    .quick-link {
        font-size: 12px;
        padding: 6px 10px;
    }

    .changelog-entry {
        padding: 15px;
        margin-bottom: 20px;
    }

    .version-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .category {
        padding: 12px;
    }

    .category-title {
        font-size: 12px;
    }

    .change-list li {
        font-size: 12px;
        padding: 6px 0;
    }

    .footer-container p {
        font-size: 12px;
    }
}

/* ============================================
   Animations & Transitions
   ============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.changelog-entry {
    animation: slideInUp 0.6s ease-out forwards;
}

/* ============================================
   Changelog — version date & category colors
   ============================================ */
.version-date {
    font-size: 13px;
    font-weight: 400;
    color: var(--secondary-text);
    margin-left: 10px;
    letter-spacing: 0;
}

.changelog-loading {
    text-align: center;
    color: var(--secondary-text);
    padding: 40px 0;
}

/* Features — quiet teal */
.category--features {
    background-color: var(--secondary-bg);
    border-left-color: var(--accent-green);
}
.category--features .category-title { color: var(--accent-green); }
.category--features .category-title::before { background-color: var(--accent-green); }

/* Changes — muted slate-violet */
.category--changes {
    background-color: var(--secondary-bg);
    border-left-color: #8b85b5;
}
.category--changes .category-title { color: #a39ec7; }
.category--changes .category-title::before { background-color: #8b85b5; }

/* Fixes — brand orange (default accent) */
.category--fixes {
    background-color: var(--secondary-bg);
    border-left-color: var(--accent-blue);
}
.category--fixes .category-title { color: var(--accent-blue); }
.category--fixes .category-title::before { background-color: var(--accent-blue); }

.changelog-entry:nth-child(1) {
    animation-delay: 0.1s;
}

.changelog-entry:nth-child(2) {
    animation-delay: 0.2s;
}

.changelog-entry:nth-child(3) {
    animation-delay: 0.3s;
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 5px;
}

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