/* =============================================
   Solax Style Download Center – Frontend CSS
   All classes prefixed with .sdc- to avoid conflicts
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.sdc-wrap *,
.sdc-wrap *::before,
.sdc-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sdc-wrap {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- TOP BAR ---- */
.sdc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.sdc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sdc-tab {
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    background: #f2f2f2;
    color: #555;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.sdc-tab:hover {
    background: #e8e8e8;
    color: #222;
}

.sdc-tab.active {
    background: #d32f2f;
    color: #fff;
    box-shadow: 0 3px 10px rgba(211,47,47,.3);
}

/* ---- SEARCH BOX ---- */
.sdc-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sdc-search-box input {
    padding: 9px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    width: 220px;
    outline: none;
    transition: border-color 0.2s;
}

.sdc-search-box input:focus {
    border-color: #d32f2f;
}

.sdc-reset-btn {
    padding: 9px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #555;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.sdc-reset-btn:hover {
    background: #fafafa;
    border-color: #aaa;
}

/* ---- BODY LAYOUT ---- */
.sdc-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ---- SIDEBAR ---- */
.sdc-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.sdc-filter-section {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.sdc-filter-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    margin-bottom: 12px;
}

.sdc-cat-list,
.sdc-lang-list,
.sdc-subcat-list {
    list-style: none;
}

.sdc-cat-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.15s;
}

.sdc-cat-label:hover,
.sdc-cat-item.active > .sdc-cat-label {
    background: #fef2f2;
    color: #d32f2f;
}

.sdc-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}

.sdc-cat-item.open > .sdc-cat-label .sdc-arrow {
    transform: rotate(90deg);
}

.sdc-subcat-list {
    display: none;
    padding-left: 12px;
    margin-top: 4px;
}

.sdc-cat-item.open > .sdc-subcat-list {
    display: block;
}

.sdc-subcat-item,
.sdc-lang-item {
    padding: 6px 8px;
    border-radius: 5px;
    cursor: pointer;
    color: #555;
    transition: background 0.15s, color 0.15s;
}

.sdc-subcat-item:hover,
.sdc-lang-item:hover,
.sdc-subcat-item.active,
.sdc-lang-item.active {
    background: #fef2f2;
    color: #d32f2f;
    font-weight: 600;
}

/* ---- RESULTS AREA ---- */
.sdc-results {
    flex: 1;
    min-width: 0;
}

/* ---- TABLE ---- */
.sdc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.sdc-table thead th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #999;
    padding: 4px 14px;
    text-align: left;
}

.sdc-row {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    border-radius: 10px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.sdc-row:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
    transform: translateY(-1px);
}

.sdc-row td {
    padding: 14px;
    vertical-align: middle;
}

.sdc-row td:first-child {
    border-radius: 10px 0 0 10px;
}

.sdc-row td:last-child {
    border-radius: 0 10px 10px 0;
}

.sdc-filename {
    font-weight: 600;
    color: #222;
}

/* ---- BADGE ---- */
.sdc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sdc-badge-pdf  { background: #fdecea; color: #c62828; }
.sdc-badge-zip  { background: #e8f5e9; color: #2e7d32; }
.sdc-badge-docx { background: #e3f2fd; color: #1565c0; }
.sdc-badge-xlsx { background: #e8f5e9; color: #2e7d32; }
.sdc-badge-png,
.sdc-badge-jpg  { background: #fff8e1; color: #f57f17; }

/* ---- DOWNLOAD BUTTON ---- */
.sdc-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #d32f2f;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s, box-shadow 0.2s;
}

.sdc-dl-btn:hover {
    background: #b71c1c;
    box-shadow: 0 3px 10px rgba(211,47,47,.35);
}

.sdc-no-file { color: #bbb; }

/* ---- LOADER ---- */
.sdc-loading {
    text-align: center;
    padding: 40px;
    color: #aaa;
    font-size: 15px;
}

.sdc-no-results {
    text-align: center;
    padding: 50px 20px;
    color: #bbb;
    font-size: 15px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .sdc-body {
        flex-direction: column;
    }
    .sdc-sidebar {
        width: 100%;
    }
    .sdc-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .sdc-search-box {
        width: 100%;
    }
    .sdc-search-box input {
        flex: 1;
        width: auto;
    }
    .sdc-table thead {
        display: none;
    }
    .sdc-row, .sdc-row td {
        display: block;
        border-radius: 0;
    }
    .sdc-row {
        border-radius: 10px;
        margin-bottom: 10px;
    }
    .sdc-row td {
        padding: 8px 14px;
    }
    .sdc-row td:first-child { border-radius: 10px 10px 0 0; }
    .sdc-row td:last-child  { border-radius: 0 0 10px 10px; }
    .sdc-row td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        color: #999;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-bottom: 2px;
    }
}
