/* =============================================
   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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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;
}
@media only screen and (max-width: 767px) {
    .sdc-results {
        min-width: 100% !important;
    }
}

/* ---- TABLE ---- */
.sdc-table,
.sdc-table * {
    box-sizing: border-box;
}

.sdc-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 16px !important;
    border: none !important;
    background: transparent !important;
}

.sdc-table thead tr {
    background: #f0eeee !important;
}

.sdc-table thead th {
    padding: 16px 28px !important;
    border: none !important;
    color: #5f5f68 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.sdc-table thead th:first-child {
    border-radius: 6px 0 0 6px !important;
}

.sdc-table thead th:last-child {
    border-radius: 0 6px 6px 0 !important;
    text-align: center !important;
}

.sdc-row {
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(20, 40, 80, 0.08) !important;
    border-radius: 18px !important;
    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: 24px 28px !important;
    border: none !important;
    color: #444856 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
}

.sdc-row td:first-child {
    border-radius: 18px 0 0 18px !important;
}

.sdc-row td:last-child {
    border-radius: 0 18px 18px 0 !important;
    text-align: center !important;
}

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

/* ---- BADGE ---- */
.sdc-badge {
    display: inline-block;
    background: transparent !important;
    color: #444856 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none;
    letter-spacing: 0;
}

.sdc-badge-pdf,
.sdc-badge-zip,
.sdc-badge-docx,
.sdc-badge-xlsx,
.sdc-badge-png,
.sdc-badge-jpg {
    background: transparent !important;
    color: #444856 !important;
}

/* ---- DOWNLOAD BUTTON ---- */
.sdc-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 !important;
    background: transparent !important;
    color: #ff3347 !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 0 !important;
    transition: color 0.2s ease;
}

.sdc-dl-btn:hover {
    background: transparent !important;
    color: #e12036 !important;
    box-shadow: none !important;
}

.sdc-dl-btn svg {
    width: 18px !important;
    height: 18px !important;
    color: currentColor !important;
    stroke: currentColor !important;
}

.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-wrap {
        padding: 0 12px;
    }

    .sdc-body {
        flex-direction: column;
        gap: 16px;
    }

    .sdc-sidebar {
        width: 100%;
    }

    .sdc-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .sdc-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .sdc-tab {
        width: 100%;
        min-width: 0;
        padding: 10px 8px;
        text-align: center;
    }

    .sdc-search-box {
        width: 100%;
    }

    .sdc-search-box input {
        flex: 1;
        width: auto;
    }

    .sdc-table thead {
        display: none !important;
    }

    .sdc-table,
    .sdc-table tbody,
    .sdc-table tr,
    .sdc-table td {
        display: block !important;
        width: 100% !important;
    }

    .sdc-table {
        border-spacing: 0 14px !important;
    }

    .sdc-row {
        padding: 16px 18px !important;
        border-radius: 16px !important;
        margin-bottom: 0;
    }

    .sdc-row td {
        padding: 8px 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        gap: 20px !important;
        font-size: 13px !important;
    }

    .sdc-row td:first-child,
    .sdc-row td:last-child {
        border-radius: 0 !important;
    }

    .sdc-row td::before {
        content: attr(data-label);
        color: #777b85;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .sdc-row td:last-child {
        text-align: right !important;
    }

    .sdc-row td:last-child .sdc-dl-btn {
        margin-left: auto;
    }
}
