/* ========================================================================== */
/* PixoMaze SEO Filter Styles - v1.5 Sidebar Layout */
/* ========================================================================== */

.pmseo-filter-container {
    display: flex;
    gap: 2rem;
    max-width: 100%;
}

/* ========================================================================== */
/* Sidebar */
/* ========================================================================== */

.pmseo-filter-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.pmseo-filter-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #9333ea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.pmseo-filter-sidebar-content {
    background: #f9f7f2;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
}

.pmseo-filter-form {
    margin: 0;
}

/* ========================================================================== */
/* Filter Sections */
/* ========================================================================== */

.pmseo-filter-section {
    margin-bottom: 1.5rem;
}

.pmseo-filter-section:last-child {
    margin-bottom: 0;
}

.pmseo-filter-section-title {
    margin: 0 0 0.75rem 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================================================== */
/* Checkboxes */
/* ========================================================================== */

.pmseo-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    color: #444;
}

.pmseo-filter-checkbox:hover {
    color: #0073aa;
}

.pmseo-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    accent-color: #9333ea;
}

.pmseo-filter-checkbox span {
    display: inline;
}

/* ========================================================================== */
/* Reset Button */
/* ========================================================================== */

.pmseo-filter-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.pmseo-filter-reset {
    display: inline-block;
    padding: 0.65rem 1rem;
    background: transparent;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #0073aa;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pmseo-filter-reset:hover {
    background: #0073aa;
    color: white;
}

/* ========================================================================== */
/* Main Content Grid */
/* ========================================================================== */

.pmseo-filter-main {
    flex: 1;
    min-width: 0;
}

.pmseo-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pmseo-card-list-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.pmseo-card-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pmseo-card-list-item h3 {
    margin: 0 0 0.75rem 0;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.pmseo-card-list-item h3 a {
    color: #0073aa;
    text-decoration: none;
}

.pmseo-card-list-item h3 a:hover {
    text-decoration: underline;
}

.pmseo-card-list-excerpt {
    margin: 0.75rem 0;
    padding: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.pmseo-card-list-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

.pmseo-card-list-link:hover {
    text-decoration: underline;
}

/* ========================================================================== */
/* Mobile Responsive */
/* ========================================================================== */

@media (max-width: 768px) {
    .pmseo-filter-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .pmseo-filter-sidebar {
        width: 100%;
        position: relative;
        top: auto;
    }

    .pmseo-filter-toggle {
        display: block;
    }

    .pmseo-filter-sidebar-content {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .pmseo-filter-sidebar-content.pmseo-sidebar-open {
        display: block;
        max-height: 1000px;
    }

    .pmseo-card-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .pmseo-filter-sidebar {
        width: 100%;
    }

    .pmseo-card-list {
        grid-template-columns: 1fr;
    }

    .pmseo-filter-sidebar-content {
        padding: 1rem;
    }

    .pmseo-filter-section {
        margin-bottom: 1rem;
    }
}

/* ========================================================================== */
/* Dark Mode Support */
/* ========================================================================== */

@media (prefers-color-scheme: dark) {
    .pmseo-filter-sidebar-content {
        background: #2a2a2a;
        border-color: #444;
    }

    .pmseo-filter-section-title {
        color: #e5e5e5;
    }

    .pmseo-filter-checkbox {
        color: #c5c5c5;
    }

    .pmseo-card-list-item {
        background: #1a1a1a;
        border-color: #444;
    }

    .pmseo-card-list-excerpt {
        color: #a0a0a0;
    }
}
