/**
 * Common Page Layouts & Components
 * Extracted from inline styles across various blade templates
 */

/* ──────────────────────────────────────────────────────────────────
   Hero Sections
────────────────────────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-lighter) 100%);
    color: white;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.3), transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero p {
    margin-bottom: 0;
    opacity: 0.85;
}

/* ──────────────────────────────────────────────────────────────────
   Period/Category Tabs
────────────────────────────────────────────────────────────────── */
.period-tab,
.category-tab {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border-color);
    transition: all 0.25s ease;
    color: var(--text-secondary);
    background: var(--bg-surface);
}

.period-tab:hover,
.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.period-tab.active,
.category-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ──────────────────────────────────────────────────────────────────
   Sticky Sidebar Container
────────────────────────────────────────────────────────────────── */
.sticky-sidebar {
    position: sticky;
    top: 80px;
}

/* ──────────────────────────────────────────────────────────────────
   Info Widgets
────────────────────────────────────────────────────────────────── */
.info-widget {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid;
}

.info-widget.info-widget-primary {
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.1), rgba(3, 105, 161, 0.05));
    border-color: rgba(3, 105, 161, 0.3);
}

.info-widget.info-widget-secondary {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.05));
    border-color: rgba(212, 165, 116, 0.3);
}

.info-widget.info-widget-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(251, 113, 133, 0.1));
    border-color: rgba(236, 72, 153, 0.3);
}

.info-widget-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.info-widget ol,
.info-widget ul {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
    padding-left: 1.25rem;
}

  /* ──────────────────────────────────────────────────────────────────
   My Rank Banner
────────────────────────────────────────────────────────────────── */
.my-rank-banner {
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    border: 2px solid var(--primary);
    border-radius: 14px;
    padding: 1.25rem;
}

.my-rank-banner .rank-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

/* ──────────────────────────────────────────────────────────────────
   Dark Mode
────────────────────────────────────────────────────────────────── */
[data-theme="dark"] .page-hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0891b2 100%);
}

[data-theme="dark"] .period-tab,
[data-theme="dark"] .category-tab {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .my-rank-banner {
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.2), rgba(3, 105, 161, 0.1));
    border-color: var(--primary);
}
