/* xBoardCore Mini-Site - Microsoft Style with Dark Mode Support */

:root {
    /* xBoard.AI Brand Colors - These stay constant */
    --xboard-blue: #1e3a8a;
    --xboard-cyan: #06b6d4;
    --xboard-teal: #14b8a6;
    --xboard-purple: #7c3aed;
    --xboard-orange: #f97316;

    /* Light Mode Colors (Default) */
    --primary-blue: var(--xboard-blue);
    --primary-blue-hover: var(--xboard-cyan);
    --primary-blue-dark: #1e40af;
    --text-primary: #323130;
    --text-secondary: #605e5c;
    --border-color: #edebe9;
    --bg-light: #faf9f8;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.14);

    /* Feature card accent colors */
    --accent-1: var(--xboard-cyan);
    --accent-2: var(--xboard-teal);
    --accent-3: var(--xboard-purple);
    --accent-4: var(--xboard-orange);
}

/* Dark Mode */
[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary-blue: #60a5fa;
    --primary-blue-hover: #22d3ee;
    --primary-blue-dark: #3b82f6;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --bg-card: #1e293b;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);

    /* Brighter accent colors for dark mode */
    --xboard-cyan: #22d3ee;
    --xboard-teal: #2dd4bf;
    --xboard-purple: #a78bfa;
    --xboard-orange: #fb923c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    overflow: visible;
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.15rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.navbar nav {
    overflow: visible;
}

.navbar .logo {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.navbar .logo img {
    height: 60px;
    width: auto;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.navbar nav a:hover {
    color: var(--primary-blue);
}

.navbar nav a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Dropdown Menu - Click to Toggle (Syncfusion Style) */
.navbar nav .nav-dropdown {
    position: relative;
}

.navbar nav .nav-dropdown-toggle {
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    /* Reset button default styles */
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    outline: none;
}

.navbar nav .nav-dropdown-toggle:hover {
    color: var(--primary-blue);
}

.navbar nav .nav-dropdown.active .nav-dropdown-toggle {
    color: var(--primary-blue);
}

.navbar nav .nav-dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.navbar nav .nav-dropdown.active .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.navbar nav .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 800px;
    max-width: 860px;
    max-height: calc(100vh - 120px);
    padding: 1.25rem;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s 0.25s, transform 0.25s ease;
    transform: translateX(-50%) translateY(-10px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.navbar nav .nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0s 0s, transform 0.25s ease;
    transform: translateX(-50%) translateY(0);
}

/* Product Category */
.navbar nav .nav-dropdown-menu .nav-product-category {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.navbar nav .nav-dropdown-menu .nav-category-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 0 0 0.4rem 0;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.navbar nav .nav-dropdown-menu .nav-category-products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.navbar nav .nav-dropdown-menu .nav-category-products li {
    margin: 0;
    padding: 0;
}

.navbar nav .nav-dropdown-menu .nav-category-products a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
    border-left: 2px solid var(--border-color);
    background: transparent;
}

.navbar nav .nav-dropdown-menu .nav-category-products a:hover {
    background: var(--bg-light);
    border-left-color: var(--primary-blue);
    border-left-width: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar nav .nav-dropdown-menu .nav-category-products a img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    object-fit: contain !important;
    border-radius: 6px;
    background: var(--bg-white);
    padding: 6px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    flex-shrink: 0;
    display: block;
    transition: all 0.2s ease;
}

.navbar nav .nav-dropdown-menu .nav-category-products a:hover img {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.15);
}

/* Product Info Container */
.navbar nav .nav-dropdown-menu .nav-category-products .product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.navbar nav .nav-dropdown-menu .nav-category-products .product-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    transition: color 0.2s ease;
}

.navbar nav .nav-dropdown-menu .nav-category-products .product-description {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.2;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar nav .nav-dropdown-menu .nav-category-products a:hover .product-name {
    color: var(--primary-blue);
}

.navbar nav .nav-dropdown-menu .nav-category-products a:hover .product-description {
    color: var(--text-primary);
}

/* Footer - All Products Link */
.navbar nav .nav-dropdown-menu .nav-dropdown-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.navbar nav .nav-dropdown-menu .nav-all-products {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.navbar nav .nav-dropdown-menu .nav-all-products:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

.navbar nav .nav-dropdown-menu .nav-all-products i:first-child {
    font-size: 1rem;
}

.navbar nav .nav-dropdown-menu .nav-all-products i:last-child {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.navbar nav .nav-dropdown-menu .nav-all-products:hover i:last-child {
    transform: translateX(3px);
}

/* Custom scrollbar for dropdown menu */
.navbar nav .nav-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.navbar nav .nav-dropdown-menu::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.navbar nav .nav-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

.navbar nav .nav-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-dark);
}

/* Secondary Navigation */
#secondary-nav a.active,
#features-nav a.active {
    color: #fbbf24 !important;
    font-weight: 600 !important;
    background: rgba(251, 191, 36, 0.15) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-blue);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero .buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-alt {
    background: var(--bg-light);
}

/* Section Overlays for background images */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Light overlays in light mode */
.section-overlay.light {
    background: rgba(255, 255, 255, 0.75);
}

.section-overlay.lighter {
    background: rgba(250, 249, 248, 0.75);
}

/* Dark overlays in dark mode */
[data-theme="dark"] .section-overlay.light,
[data-theme="dark"] .section-overlay.lighter {
    background: rgba(15, 23, 42, 0.85);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Feature card color accents */
.feature-card:nth-child(4n+1) .feature-icon {
    color: var(--accent-1);
}

.feature-card:nth-child(4n+2) .feature-icon {
    color: var(--accent-2);
}

.feature-card:nth-child(4n+3) .feature-icon {
    color: var(--accent-3);
}

.feature-card:nth-child(4n+4) .feature-icon {
    color: var(--accent-4);
}

.feature-card:nth-child(4n+1):hover {
    border-top: 3px solid var(--accent-1);
}

.feature-card:nth-child(4n+2):hover {
    border-top: 3px solid var(--accent-2);
}

.feature-card:nth-child(4n+3):hover {
    border-top: 3px solid var(--accent-3);
}

.feature-card:nth-child(4n+4):hover {
    border-top: 3px solid var(--accent-4);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Module Cards */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.module-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
}

.module-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.module-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.module-card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.module-card ul {
    list-style: none;
    padding: 0;
}

.module-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.module-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.screenshot-item:hover {
    box-shadow: var(--shadow-lg);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.screenshot-caption p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Plugin List */
.plugin-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.plugin-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.plugin-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.plugin-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plugin-icon {
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.plugin-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.plugin-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Hub Integration */
.hub-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hub-step {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hub-step-number {
    background: var(--primary-blue);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hub-step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hub-step-content p {
    color: var(--text-secondary);
}

/* Technology Badges */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.tech-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.tech-icon {
    font-size: 2rem;
    color: var(--primary-blue);
}

.tech-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .navbar .container {
        padding: 0.75rem 1rem;
    }

    .navbar nav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .navbar nav.active {
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .navbar nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    .navbar nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar nav ul li:last-child {
        border-bottom: none;
    }

    .navbar nav ul li a,
    .navbar nav ul li button {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
    }

    .navbar .logo {
        font-size: 1.3rem;
    }

    .navbar .logo img {
        height: 45px;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .description {
        font-size: 1rem;
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Section */
    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Feature Grid */
    .feature-grid,
    .module-grid,
    .screenshot-gallery,
    .plugin-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card,
    .module-card {
        padding: 1.5rem;
    }

    /* Hub Steps */
    .hub-step {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    /* Tech Grid */
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    /* Secondary Navigation */
    #secondary-nav {
        top: 75px !important;
    }

    #secondary-nav ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 0.5rem 0.5rem !important;
        overflow-x: visible !important;
    }

    #secondary-nav ul li {
        flex-shrink: 0;
    }

    #secondary-nav ul li a {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        white-space: normal !important;
    }

    /* Value Proposition Section Responsive */
    .value-proposition {
        padding: 3rem 0 !important;
    }

    .value-proposition .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .value-proposition h2 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .value-proposition p {
        font-size: 0.95rem !important;
    }

    .value-proposition div[style*="font-size: 0.875rem"] {
        font-size: 0.75rem !important;
    }

    .value-proposition div[style*="display: flex"] {
        flex-direction: column !important;
    }

    .value-proposition div[style*="display: flex"] a {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem;
    }

    .footer .container {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .footer > div > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer > div > div:first-child > div {
        border-left: none !important;
        border-top: 2px solid rgba(255,255,255,0.3) !important;
        padding-left: 0 !important;
        padding-top: 1rem !important;
    }

    .footer > div > div:last-child {
        text-align: center !important;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar .container {
        padding: 0.5rem 2rem;
    }

    .navbar nav ul {
        gap: 1.25rem;
        font-size: 0.9rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-proposition h2 {
        font-size: 2.25rem !important;
    }
}

/* Modal for images */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #ccc;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-blue);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle i {
    font-size: 1.1rem;
}

/* Dark mode specific styles for cards */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .module-card,
[data-theme="dark"] .plugin-item,
[data-theme="dark"] .hub-step {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Dark mode for dropdown menu */
[data-theme="dark"] .navbar nav .nav-dropdown-menu {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .navbar nav .nav-dropdown-menu .nav-category-products a {
    border-left-color: #334155;
}

[data-theme="dark"] .navbar nav .nav-dropdown-menu .nav-category-products a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-blue);
}

[data-theme="dark"] .navbar nav .nav-dropdown-menu .nav-category-products a img {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .navbar nav .nav-dropdown-menu .nav-all-products {
    background: rgba(255, 255, 255, 0.05);
    border-color: #334155;
}

[data-theme="dark"] .navbar nav .nav-dropdown-menu .nav-all-products:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

/* Dark mode for footer */
[data-theme="dark"] .footer a {
    color: #cbd5e1;
}

[data-theme="dark"] .footer a:hover {
    color: white;
}

/* Smooth transition for theme changes */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar,
.feature-card,
.module-card,
.plugin-item,
.hub-step {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
