/* =========================================================
   GLPI Agent Deployment Portal - Shared Styles
   Used by: index.html, guides/windows.html, guides/macos.html, etc.
   Fonts: Inter (body) + JetBrains Mono (code)
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Body - dark theme */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: white;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

/* Container */
.container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Guide Header with Logo */
.guide-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: white;
}
.guide-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.guide-logo svg { width: 100%; height: 100%; }
.guide-title-group { flex: 1; min-width: 0; }
.guide-title-group h1 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.guide-title-group .meta { font-size: 0.85rem; opacity: 0.8; }

/* Section Titles */
.section-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin-left: 0.75rem;
}

/* Sections */
.section { margin-bottom: 2.5rem; color: white; }
.section p { opacity: 0.9; }
.section h3 {
    font-size: 1.1rem;
    color: white;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

/* Command Row */
.command-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    margin: 0.75rem 0;
}
.command-text {
    flex: 1;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.92rem;
    color: #10b981;
    word-break: break-all;
    user-select: all;
}

/* Copy Button */
.copy-btn {
    flex-shrink: 0;
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.copy-btn:hover { background: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.copy-btn:active { transform: translateY(0); }
.copy-btn.copied { background: var(--success); }

/* Output blocks (no copy button) */
.output-block {
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    margin: 0.75rem 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #cbd5e1;
    white-space: pre;
    overflow-x: auto;
}

/* Notes */
.note {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    margin: 1rem 0;
    font-size: 0.92rem;
    color: white;
}
.note strong { color: white; }

/* Inline code */
code, .code {
    background: rgba(0,0,0,0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
}

/* Lists */
.steps {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
}
.steps li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Tables - dark theme */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.92rem;
    color: white;
}
th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
th {
    background: rgba(255,255,255,0.12);
    font-weight: 600;
    color: white;
}
tr:hover { background: rgba(255,255,255,0.05); }
td { opacity: 0.9; }
td a { color: var(--primary-light); }

/* Links */
a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons - shared style */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1rem; border-radius: 8px; font-weight: 600;
    font-size: 0.85rem; text-decoration: none; cursor: pointer;
    transition: all 0.2s; border: none; font-family: 'Inter', sans-serif;
}
.btn-light { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.25); }
.btn-light:hover { background: rgba(255,255,255,0.25); text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }

/* Page nav - aligns nav buttons to the right (like dashboard) */
.page-nav { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }

/* Footer */
.footer, .guide-footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* Platform Cards */
.platform-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}
.platform-card {
    flex: 1;
    min-width: 0;
    background: white;
    border-radius: 14px;
    padding: 1.6rem 0.8rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 4px solid var(--gray-200);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,0.2); }
.platform-card.windows { border-top-color: var(--win-color); }
.platform-card.macos { border-top-color: var(--mac-color); }
.platform-card.linux { border-top-color: var(--lin-color); }
.platform-card.android { border-top-color: var(--and-color); }
.platform-card.ios { border-top-color: var(--ios-color); }
.platform-icon { font-size: 2.4rem; line-height: 1; }
.platform-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900);
}
.platform-card .subtitle {
    font-size: 0.78rem;
    color: var(--gray-700);
    line-height: 1.3;
}

/* Platform colors */
:root {
    --win-color: #0078d4;
    --mac-color: #a3a3a3;
    --lin-color: #f5a623;
    --and-color: #3ddc84;
    --ios-color: #007aff;
}

/* Responsive */
@media (max-width: 700px) {
    .container { padding: 1rem; }
    .command-row { flex-direction: column; }
    .copy-btn { width: 100%; justify-content: center; }
    .platform-grid { gap: 0.5rem; flex-wrap: wrap; }
    .platform-card { min-width: 45%; padding: 1.1rem 0.5rem; }
    .platform-icon { font-size: 2rem; }
    .platform-card h3 { font-size: 0.88rem; }
    .platform-card .subtitle { font-size: 0.68rem; }
}
