/* ============================================
   FORTISAN - Style guide page (/StyleGuide)
   Page-specific styles plus the demo frames for portal components.
   ============================================ */

.sg-hero {
    background: linear-gradient(135deg, #39b0a0 0%, #1a1a1a 100%);
    color: #fff;
    padding: 4rem 0;
    margin-top: -20px;
}
.sg-hero-logo {
    max-height: 80px;
}
.sg-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}
.sg-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e9ecef;
}
.sg-section:last-child {
    border-bottom: none;
}
.sg-section-title {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sg-section-title i {
    color: #39b0a0;
}
.sg-section-desc {
    color: #6c757d;
    margin-bottom: 2rem;
}
.sg-swatch {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.sg-swatch:hover {
    transform: translateY(-4px);
}
.sg-swatch-color {
    height: 100px;
}
.sg-swatch-info {
    padding: 1rem;
    background: #fff;
}
.sg-swatch-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.sg-swatch-hex {
    font-family: monospace;
    font-size: 0.85rem;
    color: #6c757d;
}
.sg-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.sg-showcase {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1rem;
}
.sg-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.sg-nav {
    position: sticky;
    top: 80px;
}
.sg-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: #495057;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.sg-nav a:hover, .sg-nav a.active {
    color: #39b0a0;
    border-left-color: #39b0a0;
    background: rgba(57, 176, 160, 0.05);
}

/* === Portal demo frames (static copies of the portal shell pieces) === */
.sg-portal-demo {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--border-thin);
}

.sg-portal-demo .portal-sidebar {
    position: static;
    width: 100%;
    transform: none;
    padding-bottom: 0.5rem;
}

.sg-portal-demo .portal-nav {
    padding: 0.5rem 0;
}

.sg-portal-canvas {
    padding: 1.5rem;
    background: var(--color-background);
}

.sg-swatch-strong { background: var(--color-primary-strong); }
.sg-swatch-deep { background: var(--color-primary-deep); }
.sg-swatch-gold-deep { background: var(--color-gold-deep); }
.sg-swatch-rose { background: var(--color-rose); }
.sg-swatch-rose-deep { background: var(--color-rose-deep); }

.sg-touch-target {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    height: var(--touch-target);
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}
