/* undumped_platforms.css
   Standalone stylesheet for undumped_platforms.php.
   Ported directly from platforms.css + shared-table-toolbar.css so the
   page matches the site's real .clean-table look rather than a
   reimplementation of it. */

/* =================================
    CSS VARIABLES (Light & Dark Mode)
    ================================= */
:root {
    --body-background: #f8f8f8;
    --main-text-color: #333;
    --table-container-bg: #f8f8f8;
    --game-count-color: #666;
    --filter-tag-bg: #e9ecef;
    --filter-tag-color: #495057;
    --table-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --table-bg: #fff;
    --table-border: #ddd;
    --table-header-bg: #f2f2f2;
    --table-row-odd-bg: #fdfdfd;
    --table-row-even-bg: #fafafa;
    --table-row-hover-bg: #0000FF;
    --table-row-hover-text: #FFFFFF;
    --table-link-color: #0066cc;
    --sort-indicator-color: #888;
    --sort-indicator-active-color: #007bff;
}

@media (prefers-color-scheme: dark) {
    body:not([data-theme='light']) {
        --body-background: #1a1a1a;
        --main-text-color: #e0e0e0;
        --filter-tag-bg: #333;
        --filter-tag-color: #ccc;
        --table-bg: #2a2a2a;
        --table-border: #444;
        --table-header-bg: #333;
        --table-row-odd-bg: #4d4d4d;
        --table-row-even-bg: #3c3c3c;
        --table-row-hover-bg: #008000;
        --table-row-hover-text: #FFFFFF;
        --table-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        --sort-indicator-color: #999;
        --sort-indicator-active-color: #79a1d1;
    }
}

body[data-theme='dark'] {
    --body-background: #1a1a1a;
    --main-text-color: #e0e0e0;
    --table-container-bg: #1a1a1a;
    --game-count-color: #999;
    --filter-tag-bg: #333;
    --filter-tag-color: #ccc;
    --table-shadow: 0 2px 4px rgba(0,0,0,0.2);
    --table-bg: #2a2a2a;
    --table-border: #444;
    --table-header-bg: #333;
    --table-row-odd-bg: #4d4d4d;
    --table-row-even-bg: #3c3c3c;
    --table-row-hover-bg: #008000;
    --table-row-hover-text: #FFFFFF;
    --sort-indicator-color: #999;
    --sort-indicator-active-color: #79a1d1;
}

/* =================================
    GENERAL / BODY (from platforms.css)
    - this is the rule that actually applies --body-background,
      --main-text-color, and the site font to the page. Without it
      the CSS variables above are defined but never used.
    ================================= */
html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--body-background);
    color: var(--main-text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =================================
    LAYOUT (from platforms.css)
    ================================= */
.game-content-wrapper {
    height: 100%;
    overflow: hidden;
    padding: 0 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.game-page {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 15px;
    box-sizing: border-box;
    padding: 0 10px;
    margin-top: 8px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 900px) {
    .game-page { flex-direction: column; }
}

.main-content-area {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-heading-container {
    border-bottom: 2px solid var(--table-border);
    padding-bottom: 10px;
    margin-bottom: 10px;
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-heading-container .page-title {
    font-size: 2em;
    margin: 0;
}

.description-container {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--main-text-color);
    padding-bottom: 15px;
}

.hidden {
    display: none;
}

/* =================================
    TOOLBAR (from platforms.css)
    ================================= */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 8px 0;
    width: 100%;
}
.toolbar-metrics { display: flex; align-items: center; }

#total-platforms-count {
    background-color: #0F9ED5;
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    font-size: 14px;
}

/* .filter-reset-btn is styled globally in header.css - not redefined here. */

#active-filters-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-tag {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 10px;
    margin-bottom: 0;
    background-color: #FFEB3B;
    color: #000000;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 4px;
    font-weight: bold;
}

/* .main-buttons layout comes from shared-table-toolbar.css - not
   redefined here. */

/* =================================
    PER-COLUMN FILTER ROW (from platforms.css)
    ================================= */
.column-filter-row th {
    padding: 6px 8px !important;
    border-bottom: 2px solid var(--table-border);
    vertical-align: middle;
}

.col-filter-select,
.col-filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 6px;
    font-size: 0.85em;
    border: 1px solid var(--table-border);
    border-radius: 3px;
    background-color: var(--body-background);
    color: var(--main-text-color);
}

.col-filter-input:focus,
.col-filter-select:focus {
    outline: none;
    border-color: #3498db;
}

/* =================================
    DATA TABLE
    .table-scroll-container / .table-wrapper / .clean-table / sort
    indicators come from shared-table-toolbar.css (linked in header.php
    alongside this file) - not redefined here, so this page stays in
    sync with platforms.php and the other pages using that component.
    ================================= */

.numeric-column {
    text-align: right !important;
}

/* =================================
    MOBILE SCROLL SHADOW (from platforms.css)
    ================================= */
.mobile-scroll-shadow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.2));
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.3s ease;
    display: block;
    opacity: 1;
}

.table-wrapper.has-scrollbar + .mobile-scroll-shadow {
    right: 0;
}

body[data-theme='dark'] .mobile-scroll-shadow {
    background: linear-gradient(to right, rgba(42, 42, 42, 0), var(--table-bg));
}

.mobile-scroll-shadow.hidden {
    opacity: 0;
    pointer-events: none;
}