/*
Theme Name: ScamWatch Theme
Theme URI: https://example.com/scamwatch
Author: ScamWatch
Author URI: https://example.com
Description: A broker scam watchlist theme inspired by fastbull.com/brokersview design. Features custom post type for scam brokers, filter sidebar, status badges, and responsive layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scamwatch
Tags: custom-menu, custom-logo, featured-images, threaded-comments
*/

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

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #222222;
    background-color: #FFFFFF;
}

a {
    color: #1453F0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ========== LAYOUT ========== */
.sw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sw-main-wrapper {
    display: flex;
    gap: 24px;
    padding: 24px 0;
}

.sw-sidebar {
    width: 25%;
    min-width: 260px;
    flex-shrink: 0;
}

.sw-content {
    flex: 1;
    min-width: 0;
}

/* ========== HEADER ========== */
.sw-header {
    background-color: #1A1B1C;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.sw-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sw-logo a {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}

.sw-logo .logo-scam {
    color: #E8612D;
}

.sw-logo .logo-watch {
    color: #FFFFFF;
}

.sw-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sw-header-btn {
    background: none;
    border: none;
    color: #CCCCCC;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.sw-header-btn:hover {
    color: #FFFFFF;
}

.sw-header-btn svg {
    width: 20px;
    height: 20px;
}

.sw-mobile-menu-toggle {
    display: none;
}

/* ========== HEADER NAV (optional menu) ========== */
.sw-header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sw-header-nav a {
    color: #CCCCCC;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.sw-header-nav a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

/* ========== FILTER SIDEBAR ========== */
.sw-filter-panel {
    background: #F8F9FA;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 80px;
}

.sw-filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 16px;
}

.sw-filter-search {
    position: relative;
    margin-bottom: 20px;
}

.sw-filter-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #FFFFFF;
    color: #222222;
    outline: none;
    transition: border-color 0.2s;
}

.sw-filter-search input:focus {
    border-color: #1453F0;
}

.sw-filter-search input::placeholder {
    color: #999999;
}

.sw-filter-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    pointer-events: none;
}

.sw-filter-search-icon svg {
    width: 16px;
    height: 16px;
}

.sw-filter-group {
    margin-bottom: 20px;
}

.sw-filter-group:last-child {
    margin-bottom: 0;
}

.sw-filter-group-label {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Country dropdown */
.sw-filter-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #FFFFFF;
    color: #222222;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sw-filter-select:focus {
    border-color: #1453F0;
}

/* Checkboxes */
.sw-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #222222;
}

.sw-filter-checkbox:last-child {
    margin-bottom: 0;
}

.sw-filter-checkbox input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #CCCCCC;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.sw-filter-checkbox input[type="checkbox"]:checked {
    background-color: #60C86D;
    border-color: #60C86D;
}

.sw-filter-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Star rating filter */
.sw-filter-stars {
    display: flex;
    gap: 4px;
}

.sw-filter-star {
    cursor: pointer;
    color: #E8E8E8;
    font-size: 20px;
    transition: color 0.2s;
}

.sw-filter-star:hover,
.sw-filter-star.active {
    color: #F5A623;
}

/* ========== TABS ========== */
.sw-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E8E8E8;
    margin-bottom: 20px;
}

.sw-tab {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #888888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.sw-tab:hover {
    color: #222222;
    text-decoration: none;
}

.sw-tab.active {
    color: #60C86D;
    border-bottom-color: #60C86D;
}

/* ========== BROKER CARDS ========== */
.sw-broker-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sw-broker-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #E8E8E8;
}

.sw-broker-card:first-child {
    padding-top: 0;
}

.sw-broker-logo {
    width: 100px;
    height: 60px;
    background: #F5F5F5;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sw-broker-logo img {
    max-width: 80px;
    max-height: 50px;
    object-fit: contain;
}

.sw-broker-logo-placeholder {
    color: #CCCCCC;
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sw-broker-info {
    flex: 1;
    min-width: 0;
}

.sw-broker-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.sw-broker-name {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
}

.sw-broker-name a {
    color: #222222;
}

.sw-broker-name a:hover {
    color: #1453F0;
    text-decoration: none;
}

.sw-broker-url {
    font-size: 13px;
    color: #888888;
    margin-bottom: 6px;
}

.sw-broker-desc {
    font-size: 13px;
    color: #888888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sw-broker-meta {
    text-align: right;
    flex-shrink: 0;
    min-width: 140px;
}

.sw-broker-date {
    font-size: 12px;
    color: #999999;
    white-space: nowrap;
}

/* ========== BADGES ========== */
.sw-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #FFFFFF;
    white-space: nowrap;
    line-height: 1.4;
}

.sw-badge-scam {
    background-color: #E74C3C;
}

.sw-badge-investigation {
    background-color: #F39C12;
}

.sw-badge-warning {
    background-color: #E67E22;
}

.sw-badge-verified {
    background-color: #60C86D;
}

/* ========== SINGLE BROKER PAGE ========== */
.sw-single-broker {
    max-width: 800px;
}

.sw-single-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E8E8E8;
}

.sw-single-logo {
    width: 120px;
    height: 80px;
    background: #F5F5F5;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sw-single-logo img {
    max-width: 100px;
    max-height: 65px;
    object-fit: contain;
}

.sw-single-title-area {
    flex: 1;
}

.sw-single-title {
    font-size: 28px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 4px;
}

.sw-single-url {
    font-size: 14px;
    color: #888888;
    margin-bottom: 8px;
}

.sw-single-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sw-meta-item {
    background: #F8F9FA;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 16px;
}

.sw-meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sw-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
}

.sw-single-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
}

.sw-single-content p {
    margin-bottom: 16px;
}

.sw-single-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    margin: 32px 0 12px;
}

.sw-single-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 24px 0 10px;
}

.sw-single-content ul,
.sw-single-content ol {
    margin: 0 0 16px 20px;
    list-style: disc;
}

.sw-single-content ol {
    list-style: decimal;
}

.sw-single-content li {
    margin-bottom: 6px;
}

/* ========== PAGINATION ========== */
.sw-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E8E8E8;
}

.sw-pagination a,
.sw-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #222222;
    transition: all 0.2s;
}

.sw-pagination a:hover {
    border-color: #1453F0;
    color: #1453F0;
    text-decoration: none;
}

.sw-pagination .current {
    background: #1453F0;
    border-color: #1453F0;
    color: #FFFFFF;
}

/* ========== FOOTER ========== */
.sw-footer {
    background-color: #1A1B1C;
    color: #CCCCCC;
    padding: 48px 0 0;
    margin-top: 48px;
}

.sw-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333333;
}

.sw-footer-col-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.sw-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-footer-links a {
    color: #CCCCCC;
    font-size: 13px;
    transition: color 0.2s;
}

.sw-footer-links a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.sw-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 13px;
    color: #888888;
}

.sw-footer-bottom a {
    color: #888888;
}

.sw-footer-bottom a:hover {
    color: #FFFFFF;
}

/* ========== PAGE TEMPLATE ========== */
.sw-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.sw-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 24px;
}

.sw-page-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
}

.sw-page-body p {
    margin-bottom: 16px;
}

/* ========== ARCHIVE ========== */
.sw-archive-title {
    font-size: 28px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
}

.sw-archive-desc {
    font-size: 14px;
    color: #888888;
    margin-bottom: 24px;
}

/* ========== NO RESULTS ========== */
.sw-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888888;
}

.sw-no-results h2 {
    font-size: 22px;
    color: #222222;
    margin-bottom: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .sw-main-wrapper {
        flex-direction: column;
    }

    .sw-sidebar {
        width: 100%;
        min-width: 0;
    }

    .sw-filter-panel {
        position: static;
    }

    .sw-broker-meta {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .sw-header-nav {
        display: none;
    }

    .sw-mobile-menu-toggle {
        display: flex;
    }

    .sw-broker-card {
        flex-direction: column;
        gap: 12px;
    }

    .sw-broker-logo {
        width: 80px;
        height: 50px;
    }

    .sw-broker-meta {
        text-align: left;
    }

    .sw-broker-name {
        font-size: 17px;
    }

    .sw-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sw-tab {
        padding: 10px 14px;
        font-size: 14px;
        white-space: nowrap;
    }

    .sw-footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sw-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .sw-single-header {
        flex-direction: column;
    }

    .sw-single-meta-grid {
        grid-template-columns: 1fr;
    }

    .sw-page-title {
        font-size: 24px;
    }

    .sw-single-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .sw-container {
        padding: 0 12px;
    }

    .sw-broker-name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
