/* =======================
   IMPORT ORBITRON
======================= */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Share+Tech+Mono&display=swap');

/* =======================
   VARIABLES
======================= */
:root {
    --cyan:        #00f2ff;
    --cyan-dim:    rgba(0, 242, 255, 0.18);
    --cyan-glow:   rgba(0, 242, 255, 0.45);
    --cyan-border: rgba(0, 242, 255, 0.25);
    --teal:        #00cfb4;
    --blue-deep:   #020c18;
    --blue-mid:    #041424;
    --blue-panel:  rgba(4, 20, 40, 0.82);
    --green-dl:    #00ff88;
    --text-body:   #a8dde9;
    --text-dim:    #4a7a8a;
    --font-hud:    'Share Tech Mono', monospace;
    --font-title:  'Orbitron', sans-serif;
}

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

body {
    font-family: var(--font-title);
    background-color: var(--blue-deep);
    color: var(--cyan);
    line-height: 1.5;
}

/* =======================
   CONTENEUR PRINCIPAL
======================= */
#container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px;
    background: var(--blue-panel);
    border: 1px solid var(--cyan-border);
    border-radius: 4px 20px 4px 20px;
    box-shadow:
        0 0 0 1px rgba(0, 242, 255, 0.06),
        0 0 40px rgba(0, 242, 255, 0.07),
        inset 0 0 60px rgba(0, 20, 40, 0.6);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

/* Grille holographique en fond */
#container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Liseré scan animé */
#container::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(0, 242, 255, 0.025),
        rgba(0, 242, 255, 0.06),
        rgba(0, 242, 255, 0.025),
        transparent);
    animation: holo-scan 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes holo-scan {
    0%   { top: -120px; }
    100% { top: 110%; }
}

#container > * { position: relative; z-index: 1; }

/* =======================
   TITRES
======================= */
h2 {
    font-family: var(--font-title);
    font-size: 0.78em;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: linear-gradient(to bottom, var(--cyan), var(--teal));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--cyan-glow);
    flex-shrink: 0;
}

h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan-border), transparent);
    margin-left: 4px;
}

h3 {
    font-family: var(--font-hud);
    font-size: 0.82em;
    color: var(--teal);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 2px solid var(--teal);
}

/* =======================
   BARRE PLATEFORMES
======================= */
.platform-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: rgba(0, 10, 22, 0.7);
    border: 1px solid var(--cyan-border);
    border-radius: 2px 12px 2px 12px;
    position: relative;
}

/* Coins décoratifs */
.platform-bar::before,
.platform-bar::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--cyan);
    border-style: solid;
}
.platform-bar::before {
    top: -1px; left: -1px;
    border-width: 2px 0 0 2px;
}
.platform-bar::after {
    bottom: -1px; right: -1px;
    border-width: 0 2px 2px 0;
}

.platform-btn {
    flex: 0 0 auto;
    padding: 6px 16px;
    background: rgba(0, 15, 30, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 2px 8px 2px 8px;
    color: var(--text-body);
    font-family: var(--font-hud);
    font-size: 0.8em;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.platform-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 242, 255, 0.06));
    opacity: 0;
    transition: opacity 0.2s;
}

.platform-btn:hover {
    border-color: rgba(0, 242, 255, 0.5);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.15), inset 0 0 8px rgba(0, 242, 255, 0.04);
}

.platform-btn:hover::before { opacity: 1; }

.platform-btn.active {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.12), rgba(0, 207, 180, 0.08));
    border-color: var(--cyan);
    color: #fff;
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.3), inset 0 0 12px rgba(0, 242, 255, 0.07);
    text-shadow: 0 0 8px var(--cyan);
}

/* =======================
   BARRE DE FILTRES
======================= */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    padding: 12px 16px;
    background: rgba(0, 8, 18, 0.65);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 6px;
}

.filters-bar label {
    font-family: var(--font-hud);
    font-size: 0.72em;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

select {
    background: rgba(0, 10, 22, 0.9);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 4px 10px 4px 10px;
    padding: 7px 32px 7px 12px;
    color: var(--cyan);
    font-family: var(--font-hud);
    font-size: 0.82em;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2300f2ff' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.25);
}

/* =======================
   LISTE PLUGINS — avec icônes
======================= */
#pluginTable {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plugin-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plugin-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    min-height: 72px;
    background: rgba(2, 14, 28, 0.75);
    border: 1px solid rgba(0, 242, 255, 0.12);
    border-left: 3px solid var(--cyan);
    border-radius: 0 10px 10px 0;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
    animation: item-appear 0.35s ease both;
}

@keyframes item-appear {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Reflet holographique au survol */
.plugin-item::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.04), transparent);
    transition: left 0.4s ease;
    pointer-events: none;
}

.plugin-item:hover {
    border-left-color: var(--teal);
    border-color: rgba(0, 242, 255, 0.28);
    background: rgba(0, 20, 40, 0.85);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.08), inset 0 0 15px rgba(0, 242, 255, 0.03);
    transform: translateX(3px);
}

.plugin-item:hover::after { left: 140%; }

/* Icône */
.plugin-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 255, 0.06);
    border: 1px solid rgba(0, 242, 255, 0.18);
    border-radius: 4px 14px 4px 14px;
    color: var(--cyan);
}

.plugin-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--cyan);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Contenu */
.plugin-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.plugin-name {
    font-family: var(--font-title);
    font-size: 0.85em;
    font-weight: 700;
    color: #e0f8ff;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.plugin-desc {
    font-family: var(--font-hud);
    font-size: 0.76em;
    color: var(--text-body);
    line-height: 1.6;
}

.plugin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.plugin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 242, 255, 0.07);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 999px;
    padding: 4px 12px;
    color: var(--cyan);
    font-family: var(--font-hud);
    font-size: 0.72em;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.plugin-badge.type {
    background: rgba(0, 207, 180, 0.08);
    border-color: rgba(0, 207, 180, 0.25);
    color: var(--teal);
}

/* Lien téléchargement */
.dl-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px 10px 4px 10px;
    color: var(--green-dl);
    font-family: var(--font-hud);
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.dl-link svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.dl-link:hover {
    background: rgba(0, 255, 136, 0.12);
    border-color: var(--green-dl);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
    color: #fff;
}

/* État vide */
.plugin-empty {
    font-family: var(--font-hud);
    font-size: 0.82em;
    color: var(--text-dim);
    text-align: center;
    padding: 40px 0;
    letter-spacing: 0.1em;
}

/* =======================
   TABLEAUX (fallback)
======================= */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
    background: rgba(2, 12, 24, 0.8);
    border: 1px solid var(--cyan-border);
    border-radius: 10px;
    overflow: hidden;
}

thead th {
    background: rgba(0, 242, 255, 0.06);
    color: var(--cyan);
    padding: 10px 14px;
    text-align: left;
    font-family: var(--font-hud);
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--cyan-border);
}

tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.06);
    color: var(--text-body);
    font-family: var(--font-hud);
    font-size: 0.82em;
}

tbody tr:hover { background: rgba(0, 242, 255, 0.03); }

tbody a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

tbody a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--cyan);
}

/* =======================
   BOUTON générique
======================= */
button {
    padding: 7px 16px;
    background: rgba(0, 242, 255, 0.06);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 4px 10px 4px 10px;
    color: var(--cyan);
    font-family: var(--font-hud);
    font-size: 0.78em;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: rgba(0, 242, 255, 0.12);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
    color: #fff;
}

/* =======================
   ACCESSIBILITÉ
======================= */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

a:focus, button:focus, select:focus {
    outline: 2px dashed var(--cyan);
    outline-offset: 3px;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
    #container { padding: 15px; }

    .platform-btn, select, button { width: 100%; }

    .filters-bar { flex-direction: column; align-items: stretch; gap: 8px; }

    .plugin-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }

    .plugin-icon { width: 36px; height: 36px; }

    .plugin-meta { flex-direction: row; flex-wrap: wrap; }
}
