/*
 * jjSketchDrawBootstrap5Styles.css
 * ─────────────────────────────────────────────────────────────────
 * COMPARE & CONTRAST:
 *   • Original (style.css)      ── ~560 lines, fully hand-crafted
 *   • This file                 ── ~110 lines, Bootstrap does the rest
 *
 * What Bootstrap 5 handles (no custom CSS needed):
 *   Flexbox layout, spacing/gap, responsive grid, buttons, badges,
 *   modal scaffold, nav-tabs, form controls, cards, utility classes.
 *
 * What still needs custom CSS here:
 *   Brand gradient, glass button, canvas look, eraser cursor,
 *   sticky footer, a handful of tweaks Bootstrap can't express.
 * ─────────────────────────────────────────────────────────────────
 */

/* ── Page background ─────────────────────────────────────────── */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 20px 80px; /* bottom room for fixed footer */
}

/* ── App wrapper card ────────────────────────────────────────── */
/* Compare: original .container block is 8 lines; Bootstrap
   handles max-width/margin via .container — we just add the
   white card, radius, and shadow here. */
.app-container {
    max-width: 1400px;
    margin: 0 auto 50px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* ── Header gradient ─────────────────────────────────────────── */
/* Bootstrap bg-primary is a flat blue; we override with the
   same purple gradient used in the original. */
.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* decorative circle — identical to original header::before */
.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* ── Glass-style header button ───────────────────────────────── */
/* Original: .settings-btn with manual rgba border/bg
   Bootstrap has no built-in glass variant, so we keep this. */
.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-2px);
}

/* ── Modal header gradient ───────────────────────────────────── */
/* Bootstrap .modal-header is plain white; override for brand. */
.app-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: calc(0.5rem - 1px) calc(0.5rem - 1px) 0 0;
}

/* ── Canvas ──────────────────────────────────────────────────── */
.canvas-section {
    min-height: 700px;
}

.drawing-canvas {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    cursor: crosshair;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    max-width: 100%;
    transition: box-shadow 0.3s ease;
}
.drawing-canvas:hover {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
}

/* ── Eraser cursor overlay ───────────────────────────────────── */
/* Identical to original — Bootstrap has no cursor-preview utility. */
#eraserCursor {
    position: fixed;
    border: 2px solid rgba(160, 160, 160, 0.85);
    pointer-events: none;
    display: none;
    box-sizing: border-box;
    background: rgba(200, 200, 200, 0.12);
    z-index: 9999;
}

/* ── Modal tab-pane subheadings (h4 after h3) ────────────────── */
/* Bootstrap h4 = 1.5rem which is too large next to h3 = 1.75rem.
   We scale it down to match what h5 (1.25rem) looked like before,
   while keeping correct heading-level semantics for validation. */
.tab-pane h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ── Drawing card thumbnail height ──────────────────────────── */
/* Bootstrap .card-img-top is responsive but has no fixed height;
   we set one so cards look uniform in the grid. */
.drawing-card-img {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* ── Sticky footer ───────────────────────────────────────────── */
/* Bootstrap .fixed-bottom exists but adds no styling;
   we keep the same look as the original. */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.18);
    letter-spacing: 0.03em;
    z-index: 50;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}
.site-footer a:hover {
    color: rgba(255, 255, 255, 1);
}
