/* =========================================================
   GLOBAL RESET & BASE
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f5f7ff;
    font-family: Arial, sans-serif;
    transition: background .25s, color .25s;
    color: #222;
}

.dark-mode {
    background: #111;
    color: #ddd;
}

/* =========================================================
   UNIVERSAL CONTAINER
========================================================= */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* =========================================================
   UNIVERSAL HEADER
========================================================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e3eaff;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dark-mode .site-header {
    background: #1a1a1a;
    border-color: #333;
}

.header-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* REQUIRED FOR MOBILE MENU */
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #2b4cff;
    text-decoration: none;
}

/* NAVIGATION */
.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a {
    text-decoration: none;
    font-size: 15px;
    color: #444;
}

.dark-mode .nav a {
    color: #ccc;
}

/* THEME BUTTON */
.theme-btn,
#themeToggle {
    padding: 7px 18px;
    border-radius: 18px;
    border: 1px solid #bcd0ff;
    background: #e6ecff;
    cursor: pointer;
    font-size: 16px;
}

.dark-mode .theme-btn,
.dark-mode #themeToggle {
    background: #333;
    border-color: #666;
    color: white;
}

/* MOBILE MENU */
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    display: none;
}

@media (max-width: 700px) {
    .nav {
        position: absolute;
        top: 60px;
        right: 10px;
        background: #fff;
        flex-direction: column;
        width: 220px;
        padding: 18px;
        border-radius: 12px;
        border: 1px solid #ddd;
        gap: 14px;
        box-shadow: 0px 4px 14px rgba(0,0,0,0.12);
        display: none;
    }

    .nav.show {
        display: flex;
    }

    .dark-mode .nav {
        background: #222;
        border-color: #444;
    }

    .menu-toggle {
        display: block;
    }
}

/* =========================================================
   UNIVERSAL CARDS & BUTTONS
========================================================= */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #dce3f5;
    margin-top: 25px;
}

.dark-mode .card {
    background: #1c1c1c;
    border-color: #333;
}

.btn,
.btn-main {
    padding: 10px 20px;
    background: #1f6fff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
}

.btn:hover,
.btn-main:hover {
    background: #0047cc;
}

.btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* =========================================================
   DROPZONE
========================================================= */
.dropzone {
    border: 2px dashed #bbb;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
}

.dark-mode .dropzone {
    background: #2c2c2c;
    border-color: #777;
}

/* File list */
.file-list {
    margin-top: 10px;
    color: #444;
    font-size: 14px;
}

.dark-mode .file-list {
    color: #ccc;
}

/* =========================================================
   SEO ARTICLE STYLES
========================================================= */
.seo-article,
.seo-box {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: left !important;
    line-height: 1.6;
}

.seo-box ul,
.seo-article ul {
    margin-left: 20px;
}

/* =========================================================
   UNIVERSAL FOOTER
========================================================= */
.site-footer {
    background: #000 !important;
    color: #fff !important;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.site-footer a {
    color: #cbd5ff !important;
    text-decoration: none;
    font-size: 15px;
}

.site-footer a:hover {
    color: #4facff !important;
}

.dark-mode .site-footer {
    background: #000 !important;
}

/* =========================================================
   UTILITY CLASSES
========================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }
