/*
Theme Name: MindsSpark
Theme URI: https://mindsspark.com
Author: MindsSpark Team
Author URI: https://mindsspark.com
Description: A professional multi-tool website theme inspired by ilovepdf — featuring PDF, Image, Text, Convert, Video, and SEO tools. Clean, fast, and fully customizable.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mindsspark
Tags: tools, utility, clean, modern, responsive
*/

/* ============================
   RESET & BASE
============================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ms-primary: #534AB7;
    --ms-primary-light: #7F77DD;
    --ms-primary-bg: #EEEDFE;
    --ms-text: #1a1a1a;
    --ms-text-muted: #6b6b6b;
    --ms-bg: #ffffff;
    --ms-bg-secondary: #f7f7f5;
    --ms-border: rgba(0,0,0,0.12);
    --ms-radius: 10px;
    --ms-radius-lg: 14px;
    --ms-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ms-font);
    color: var(--ms-text);
    background: var(--ms-bg);
    font-size: 16px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input { font-family: var(--ms-font); }

/* ============================
   NAVIGATION
============================ */
.ms-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 62px;
    border-bottom: 0.5px solid var(--ms-border);
    background: var(--ms-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ms-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.ms-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--ms-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-logo-icon svg { width: 18px; height: 18px; }

.ms-logo-text {
    font-size: 19px;
    font-weight: 500;
    color: var(--ms-text);
}

.ms-logo-text span { color: var(--ms-primary); }

.ms-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.ms-nav-links a {
    font-size: 14px;
    color: var(--ms-text-muted);
    transition: color 0.15s;
}

.ms-nav-links a:hover { color: var(--ms-text); }

.ms-nav-cta {
    background: var(--ms-primary) !important;
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
}

.ms-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.ms-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ms-text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================
   HERO
============================ */
.ms-hero {
    text-align: center;
    padding: 5rem 2rem 3.5rem;
    background: var(--ms-bg-secondary);
}

.ms-hero h1 {
    font-size: 42px;
    font-weight: 500;
    color: var(--ms-text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ms-hero h1 span { color: var(--ms-primary); }

.ms-hero p {
    font-size: 17px;
    color: var(--ms-text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.ms-search-bar {
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto 2rem;
    border: 0.5px solid var(--ms-border);
    border-radius: 10px;
    background: var(--ms-bg);
    padding: 0 1rem;
    height: 50px;
    gap: 10px;
    box-shadow: 0 2px 12px rgba(83,74,183,0.08);
}

.ms-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: var(--ms-text);
}

.ms-search-bar input::placeholder { color: var(--ms-text-muted); }

.ms-search-bar button {
    background: var(--ms-primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.ms-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.ms-stat-num {
    font-size: 24px;
    font-weight: 500;
    color: var(--ms-primary);
}

.ms-stat-label {
    font-size: 12px;
    color: var(--ms-text-muted);
    margin-top: 2px;
}

/* ============================
   TOOLS SECTION
============================ */
.ms-tools-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ms-section-header { margin-bottom: 1.5rem; }

.ms-section-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
}

.ms-section-sub {
    font-size: 14px;
    color: var(--ms-text-muted);
}

.ms-cat-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.ms-cat-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: 0.5px solid var(--ms-border);
    background: var(--ms-bg);
    color: var(--ms-text-muted);
    transition: all 0.15s;
}

.ms-cat-tab:hover,
.ms-cat-tab.active {
    background: var(--ms-primary);
    color: #fff;
    border-color: var(--ms-primary);
}

.ms-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.ms-tool-card {
    background: var(--ms-bg);
    border: 0.5px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.ms-tool-card:hover {
    border-color: var(--ms-primary);
    transform: translateY(-2px);
}

.ms-tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
}

.ms-tool-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.ms-tool-desc {
    font-size: 12px;
    color: var(--ms-text-muted);
    line-height: 1.4;
}

.ms-tool-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 8px;
    background: var(--ms-primary-bg);
    color: var(--ms-primary);
    font-weight: 500;
}

/* ============================
   PRO BANNER
============================ */
.ms-pro-banner {
    margin: 0 2rem 3rem;
    background: linear-gradient(135deg, var(--ms-primary) 0%, var(--ms-primary-light) 100%);
    border-radius: var(--ms-radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.ms-pro-banner h2 {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
}

.ms-pro-banner p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

.ms-pro-btn {
    background: #fff;
    color: var(--ms-primary);
    border: none;
    border-radius: 9px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

/* ============================
   FEATURES SECTION
============================ */
.ms-features {
    background: var(--ms-bg-secondary);
    padding: 3rem 2rem;
    text-align: center;
}

.ms-features h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.ms-features-sub {
    font-size: 15px;
    color: var(--ms-text-muted);
    margin-bottom: 2.5rem;
}

.ms-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.ms-feature-card {
    background: var(--ms-bg);
    border: 0.5px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: left;
}

.ms-feature-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.ms-feature-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.ms-feature-desc {
    font-size: 13px;
    color: var(--ms-text-muted);
    line-height: 1.5;
}

/* ============================
   FOOTER
============================ */
.ms-footer {
    border-top: 0.5px solid var(--ms-border);
    padding: 2.5rem 2rem;
    background: var(--ms-bg);
}

.ms-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ms-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

.ms-footer-links a {
    font-size: 13px;
    color: var(--ms-text-muted);
    transition: color 0.15s;
}

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

.ms-footer-copy {
    font-size: 12px;
    color: var(--ms-text-muted);
}

/* ============================
   TOOL SINGLE PAGE
============================ */
.ms-tool-page { max-width: 860px; margin: 0 auto; padding: 3rem 2rem; }

.ms-tool-page-header { margin-bottom: 2rem; }

.ms-tool-page-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 1rem;
}

.ms-tool-page h1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 6px;
}

.ms-tool-page-desc {
    font-size: 15px;
    color: var(--ms-text-muted);
}

.ms-upload-area {
    border: 2px dashed var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 1.5rem;
}

.ms-upload-area:hover {
    border-color: var(--ms-primary);
    background: var(--ms-primary-bg);
}

.ms-upload-icon { font-size: 36px; margin-bottom: 1rem; }

.ms-upload-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.ms-upload-sub {
    font-size: 13px;
    color: var(--ms-text-muted);
}

.ms-upload-btn {
    background: var(--ms-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-block;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .ms-nav-links { display: none; }
    .ms-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--ms-bg);
        padding: 1rem 2rem;
        border-bottom: 0.5px solid var(--ms-border);
        gap: 1rem;
    }
    .ms-hamburger { display: flex; }
    .ms-hero h1 { font-size: 28px; }
    .ms-stats { gap: 1.5rem; }
    .ms-tools-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .ms-pro-banner { flex-direction: column; text-align: center; }
}
