/* ==========================================================================
   Playbook / Manual Stylesheet - Kamui BI
   ========================================================================== */

:root {
    --bg-primary: #080c14;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: rgba(15, 23, 42, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(239, 68, 68, 0.45);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent: #f59e0b;
    --accent-red: #ef4444;
    --accent-blue: #38bdf8;
    --accent-purple: #c084fc;
    --accent-green: #34d399;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 6px 10px;
    border-radius: var(--radius-md);
}

.logo-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero */
.playbook-hero {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    margin-bottom: 32px;
}

.hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #facc15;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.playbook-hero h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.playbook-hero p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 900px;
}

/* Sections */
.manual-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 28px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step-badge {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.section-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Prompt Box */
.prompt-box {
    background: #090d16;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 16px;
}

.prompt-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
    color: #facc15;
}

.btn-copy {
    background: #f59e0b;
    color: #000;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-copy:hover {
    background: #fbbf24;
}

.code-block {
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Explanation Cards */
.explanation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.exp-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
}

.exp-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.exp-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    color: #fff;
    margin-bottom: 6px;
}

.exp-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Case Study */
.case-study-box {
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-top: 16px;
}

.case-study-box h4 {
    color: #38bdf8;
    font-size: 15px;
    margin-bottom: 10px;
}

.case-study-box ul {
    list-style: none;
}

.case-study-box li {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.gallery-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #000;
}

.gallery-info {
    padding: 14px;
}

.gallery-info h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.gallery-info p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.file-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #facc15;
    word-break: break-all;
}

/* Checklist Items */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
}

.item-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.check-num {
    background: #38bdf8;
    color: #000;
    font-size: 12px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.item-title h4 {
    font-size: 15px;
    color: #fff;
}

.item-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.item-content code {
    background: rgba(0, 0, 0, 0.4);
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.copy-box {
    position: relative;
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-top: 6px;
}

.copy-box pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
    white-space: pre-wrap;
    padding-right: 70px;
}

.btn-copy-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #facc15;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-copy-small:hover {
    background: #334155;
    color: #fff;
}

/* Playlists Grid */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.playlist-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.playlist-card h4 {
    font-size: 14px;
    color: #facc15;
    margin-bottom: 6px;
}

.playlist-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
