﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * G25 Explorer Index - Modern Calculator Browser
 * Two-column layout with collapsible filter sidebar, card/list views.
 */

:root {
    --g25-sidebar-width: 320px;
    --g25-toolbar-height: 56px;
    --g25-header-offset: 72px;
    --g25-bg: #f8f7f5;
    --g25-surface: #ffffff;
    --g25-border: rgba(139, 90, 43, 0.12);
    --g25-border-strong: rgba(139, 90, 43, 0.25);
    --g25-accent: #c9a962;
    --g25-accent-dark: #b8860b;
    --g25-accent-light: #d4b974;
    --g25-accent-subtle: rgba(201, 169, 98, 0.12);
    --g25-text-primary: #1a1815;
    --g25-text-secondary: #4a473f;
    --g25-text-muted: #706c64;
    --g25-text-light: #ffffff;
    --g25-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --g25-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --g25-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --g25-shadow-accent: 0 4px 16px rgba(201, 169, 98, 0.25);
    --g25-transition-fast: 0.15s ease;
    --g25-transition: 0.3s ease;
    --g25-radius-sm: 6px;
    --g25-radius-md: 10px;
    --g25-radius-lg: 16px;
    --g25-font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --g25-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.g25-page {
    min-height: 100vh;
    background: var(--g25-bg);
    font-family: var(--g25-font-sans);
    color: var(--g25-text-secondary);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--g25-header-offset);
}

.g25-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.g25-sidebar {
    width: var(--g25-sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--g25-header-offset) + 24px);
    height: fit-content;
    max-height: calc(100vh - var(--g25-header-offset) - 48px);
    overflow-y: auto;
    background: var(--g25-surface);
    border: 1px solid var(--g25-border);
    border-radius: var(--g25-radius-lg);
    margin: 24px 24px 24px 0;
    box-shadow: var(--g25-shadow-sm);
    transition: transform var(--g25-transition), opacity var(--g25-transition);
}

.g25-sidebar::-webkit-scrollbar {
    width: 6px;
}

.g25-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.g25-sidebar::-webkit-scrollbar-thumb {
    background: var(--g25-border-strong);
    border-radius: 3px;
}

.g25-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--g25-border);
    position: sticky;
    top: 0;
    background: var(--g25-surface);
    z-index: 1;
}

.g25-sidebar-title {
    font-family: var(--g25-font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--g25-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.g25-sidebar-title i {
    color: var(--g25-accent);
    font-size: 1rem;
}

.g25-sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--g25-accent-subtle);
    color: var(--g25-accent-dark);
    border-radius: var(--g25-radius-sm);
    cursor: pointer;
    transition: all var(--g25-transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.g25-sidebar-close:hover {
    background: var(--g25-accent);
    color: var(--g25-text-light);
}

.g25-sidebar-form {
    padding: 20px;
}

.g25-filter-group {
    margin-bottom: 20px;
}

.g25-filter-group:last-of-type {
    margin-bottom: 24px;
}

.g25-filter-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--g25-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.g25-filter-group-label i {
    color: var(--g25-accent);
    font-size: 0.875rem;
}

.g25-filter-input-wrap {
    position: relative;
}

.g25-filter-input,
.g25-filter-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    color: var(--g25-text-primary);
    background: var(--g25-surface);
    border: 1px solid var(--g25-border);
    border-radius: var(--g25-radius-sm);
    transition: all var(--g25-transition-fast);
    font-family: var(--g25-font-sans);
}

.g25-filter-input:focus,
.g25-filter-select:focus {
    outline: none;
    border-color: var(--g25-accent);
    box-shadow: 0 0 0 3px var(--g25-accent-subtle);
}

.g25-filter-input::placeholder {
    color: var(--g25-text-muted);
}

.g25-filter-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--g25-text-muted);
    cursor: pointer;
    transition: color var(--g25-transition-fast);
}

.g25-filter-clear-btn:hover {
    color: var(--g25-accent-dark);
}

.g25-filter-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--g25-text-muted);
    line-height: 1.4;
}

.g25-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--g25-border);
}

.g25-filter-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1051;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--g25-accent) 0%, var(--g25-accent-dark) 100%);
    color: var(--g25-text-light);
    border: none;
    border-radius: var(--g25-radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--g25-shadow-accent);
    transition: all var(--g25-transition);
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.g25-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.35);
}

.g25-filter-toggle:active {
    transform: translateY(0);
}

.g25-filter-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--g25-surface);
    color: var(--g25-accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
}

.g25-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    transition: opacity var(--g25-transition);
    pointer-events: none;
}

.g25-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.g25-main {
    flex: 1;
    min-width: 0;
    padding: 24px 0;
}

.g25-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--g25-surface);
    border: 1px solid var(--g25-border);
    border-radius: var(--g25-radius-md);
    margin-bottom: 20px;
}

.g25-toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.g25-toolbar-count {
    font-size: 0.9375rem;
    color: var(--g25-text-secondary);
}

.g25-toolbar-count strong {
    color: var(--g25-text-primary);
    font-weight: 600;
}

.g25-toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.g25-toolbar-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.g25-toolbar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--g25-text-muted);
    white-space: nowrap;
}

.g25-toolbar-label i {
    color: var(--g25-accent);
}

.g25-toolbar-select {
    padding: 8px 32px 8px 12px;
    font-size: 0.875rem;
    color: var(--g25-text-primary);
    background: var(--g25-surface);
    border: 1px solid var(--g25-border);
    border-radius: var(--g25-radius-sm);
    cursor: pointer;
    transition: all var(--g25-transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.g25-toolbar-select:focus {
    outline: none;
    border-color: var(--g25-accent);
    box-shadow: 0 0 0 3px var(--g25-accent-subtle);
}

.g25-toolbar-view {
    display: flex;
    background: var(--g25-bg);
    border-radius: var(--g25-radius-sm);
    padding: 4px;
}

.g25-view-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--g25-radius-sm);
    color: var(--g25-text-muted);
    cursor: pointer;
    transition: all var(--g25-transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    pointer-events: auto;
}

.g25-view-btn:hover {
    color: var(--g25-text-primary);
    background: var(--g25-surface);
}

.g25-view-btn:active {
    transform: scale(0.95);
}

.g25-view-btn.active {
    background: var(--g25-surface);
    color: var(--g25-accent-dark);
    box-shadow: var(--g25-shadow-sm);
}

.g25-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--g25-accent-subtle);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--g25-radius-md);
    margin-bottom: 20px;
}

.g25-active-filters-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--g25-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.g25-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--g25-accent) 0%, var(--g25-accent-dark) 100%);
    color: var(--g25-text-light);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--g25-transition-fast);
}

.g25-filter-tag:hover {
    transform: scale(1.02);
    box-shadow: var(--g25-shadow-sm);
    text-decoration: none;
    color: var(--g25-text-light);
}

.g25-filter-tag i:first-child {
    font-size: 0.75rem;
    opacity: 0.85;
}

.g25-filter-tag-remove {
    font-size: 0.6875rem;
    opacity: 0.75;
    margin-left: 2px;
}

.g25-filter-tag:hover .g25-filter-tag-remove {
    opacity: 1;
}

.g25-clear-all-link {
    font-size: 0.8125rem;
    color: var(--g25-accent-dark);
    text-decoration: underline;
    margin-left: auto;
    transition: color var(--g25-transition-fast);
}

.g25-clear-all-link:hover {
    color: var(--g25-text-primary);
}

.g25-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.g25-grid--hidden {
    display: none;
}

.g25-card {
    display: flex;
    flex-direction: column;
    background: var(--g25-surface);
    border: 1px solid var(--g25-border);
    border-radius: var(--g25-radius-lg);
    overflow: hidden;
    transition: all var(--g25-transition);
    position: relative;
}

.g25-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--g25-accent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--g25-transition);
}

.g25-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--g25-shadow-lg);
    border-color: var(--g25-accent);
}

.g25-card:hover::before {
    opacity: 1;
}

.g25-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
}

.g25-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--g25-accent) 0%, var(--g25-accent-dark) 100%);
    color: var(--g25-text-light);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.g25-card-badge--very-popular {
    background: linear-gradient(135deg, var(--g25-accent) 0%, var(--g25-accent-dark) 100%);
}

.g25-card-badge--popular {
    background: rgba(201, 169, 98, 0.2);
    color: var(--g25-accent-dark);
    border: 1px solid rgba(201, 169, 98, 0.3);
}

.g25-card-badge--moderate {
    background: rgba(139, 90, 43, 0.12);
    color: var(--g25-text-primary);
    border: 1px solid rgba(139, 90, 43, 0.25);
}

.g25-card-badge--new {
    background: rgba(125, 154, 120, 0.15);
    color: #7d9a78;
    border: 1px solid rgba(125, 154, 120, 0.3);
}

.g25-card-badge i {
    font-size: 0.625rem;
}

.g25-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--g25-text-muted);
}

.g25-card-date i {
    color: var(--g25-accent);
    font-size: 0.75rem;
}

.g25-card-title {
    font-family: var(--g25-font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 0 20px;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.g25-card-title a {
    color: var(--g25-text-primary);
    text-decoration: none;
    transition: color var(--g25-transition-fast);
}

.g25-card-title a:hover {
    color: var(--g25-accent-dark);
}

.g25-card-body {
    flex: 1;
    padding: 0 20px 16px;
}

.g25-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.g25-era-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--g25-radius-sm);
    background: var(--g25-bg);
    color: var(--g25-text-secondary);
    border: 1px solid var(--g25-border);
}

.g25-era-badge--modern {
    background: rgba(201, 169, 98, 0.15);
    color: var(--g25-accent-dark);
    border-color: rgba(201, 169, 98, 0.3);
}

.g25-era-badge--ancient {
    background: rgba(139, 90, 43, 0.2);
    color: #8b5a2b;
    border-color: rgba(139, 90, 43, 0.3);
}

.g25-era-badge--modern-and-ancient {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(139, 90, 43, 0.2));
    color: var(--g25-text-primary);
    border-color: rgba(201, 169, 98, 0.3);
}

.g25-scaled-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--g25-radius-sm);
}

.g25-scaled-badge--yes {
    background: rgba(125, 154, 120, 0.15);
    color: #7d9a78;
    border: 1px solid rgba(125, 154, 120, 0.3);
}

.g25-scaled-badge--no {
    background: rgba(196, 114, 93, 0.15);
    color: #c4725d;
    border: 1px solid rgba(196, 114, 93, 0.3);
}

.g25-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--g25-text-muted);
    margin: 0 0 8px;
}

.g25-card-meta:last-child {
    margin-bottom: 0;
}

.g25-card-meta i {
    color: var(--g25-accent);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.g25-card-meta a {
    color: var(--g25-accent-dark);
    text-decoration: none;
    font-weight: 500;
}

.g25-card-meta a:hover {
    text-decoration: underline;
}

.g25-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(139, 90, 43, 0.04);
    border-radius: 8px;
}

.g25-card-stat {
    text-align: center;
}

.g25-card-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--g25-accent);
    margin-bottom: 0.25rem;
}

.g25-card-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--g25-text-muted);
}

.g25-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(139, 90, 43, 0.03);
    border-top: 1px solid var(--g25-border);
}

.g25-card-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.g25-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--g25-radius-sm);
    transition: all var(--g25-transition-fast);
    cursor: pointer;
    border: none;
}

.g25-card-btn--outline {
    color: var(--g25-text-secondary);
    background: transparent;
    border: 1px solid var(--g25-border-strong);
}

.g25-card-btn--outline:hover {
    color: var(--g25-accent-dark);
    border-color: var(--g25-accent);
    background: var(--g25-accent-subtle);
    text-decoration: none;
}

.g25-card-btn--primary {
    color: var(--g25-text-light);
    background: linear-gradient(135deg, var(--g25-accent) 0%, var(--g25-accent-dark) 100%);
    border: 1px solid transparent;
}

.g25-card-btn--primary:hover {
    color: var(--g25-text-light);
    background: linear-gradient(135deg, #d4b974 0%, #c9a962 100%);
    box-shadow: var(--g25-shadow-accent);
    text-decoration: none;
}

.g25-list {
    background: var(--g25-surface);
    border: 1px solid var(--g25-border);
    border-radius: var(--g25-radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.g25-list--hidden {
    display: none;
}

.g25-list-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.2fr 0.8fr 0.6fr;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(139, 90, 43, 0.04);
    border-bottom: 1px solid var(--g25-border);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--g25-text-muted);
}

.g25-list-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.2fr 0.8fr 0.6fr;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--g25-border);
    align-items: center;
    transition: background var(--g25-transition-fast);
}

.g25-list-row:last-child {
    border-bottom: none;
}

.g25-list-row:hover {
    background: rgba(201, 169, 98, 0.04);
}

.g25-list-col {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--g25-text-secondary);
}

.g25-list-col--title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.g25-list-col--actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.g25-list-title-link {
    color: var(--g25-text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--g25-transition-fast);
    display: block;
    margin-bottom: 4px;
}

.g25-list-title-link:hover {
    color: var(--g25-accent-dark);
    text-decoration: underline;
}

.g25-popularity-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 4px;
}

.g25-popularity-badge--very-popular {
    background: linear-gradient(135deg, var(--g25-accent) 0%, var(--g25-accent-dark) 100%);
    color: var(--g25-text-light);
}

.g25-popularity-badge--popular {
    background: rgba(201, 169, 98, 0.2);
    color: var(--g25-accent-dark);
}

.g25-popularity-badge--moderate {
    background: rgba(139, 90, 43, 0.12);
    color: var(--g25-text-primary);
}

.g25-popularity-badge--new {
    background: rgba(125, 154, 120, 0.15);
    color: #7d9a78;
}

.g25-list-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g25-text-muted);
    background: transparent;
    border: 1px solid var(--g25-border);
    border-radius: var(--g25-radius-sm);
    text-decoration: none;
    transition: all var(--g25-transition-fast);
}

.g25-list-action:hover {
    color: var(--g25-accent-dark);
    border-color: var(--g25-accent);
    background: var(--g25-accent-subtle);
}

.g25-pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.g25-pagination-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.g25-pagination-item {
    list-style: none;
}

.g25-pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--g25-text-secondary);
    background: var(--g25-surface);
    border: 1px solid var(--g25-border);
    border-radius: var(--g25-radius-sm);
    text-decoration: none;
    transition: all var(--g25-transition-fast);
}

.g25-pagination-link:hover {
    color: var(--g25-accent-dark);
    border-color: var(--g25-accent);
    background: var(--g25-accent-subtle);
    text-decoration: none;
}

.g25-pagination-item--active .g25-pagination-link {
    color: var(--g25-text-light);
    background: linear-gradient(135deg, var(--g25-accent) 0%, var(--g25-accent-dark) 100%);
    border-color: transparent;
    box-shadow: var(--g25-shadow-accent);
}

.g25-pagination-item--active .g25-pagination-link:hover {
    color: var(--g25-text-light);
}

.g25-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: var(--g25-surface);
    border: 1px solid var(--g25-border);
    border-radius: var(--g25-radius-lg);
    margin-bottom: 32px;
}

.g25-empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--g25-accent-subtle);
    border-radius: 50%;
}

.g25-empty-icon i {
    font-size: 2rem;
    color: var(--g25-accent);
}

.g25-empty-state h3 {
    font-family: var(--g25-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g25-text-primary);
    margin: 0 0 12px;
}

.g25-empty-state p {
    font-size: 1rem;
    color: var(--g25-text-muted);
    margin: 0 0 24px;
    max-width: 360px;
}

.g25-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--g25-border);
}

.g25-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--g25-radius-md);
    cursor: pointer;
    transition: all var(--g25-transition);
    border: none;
}

.g25-btn--primary {
    color: var(--g25-text-light);
    background: linear-gradient(135deg, var(--g25-accent) 0%, var(--g25-accent-dark) 100%);
    box-shadow: var(--g25-shadow-accent);
}

.g25-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.35);
    text-decoration: none;
    color: var(--g25-text-light);
}

.g25-btn--secondary {
    color: var(--g25-text-secondary);
    background: var(--g25-bg);
    border: 1px solid var(--g25-border);
}

.g25-btn--secondary:hover {
    background: var(--g25-surface);
    border-color: var(--g25-accent);
    color: var(--g25-text-primary);
    text-decoration: none;
}

.g25-btn--outline {
    color: var(--g25-text-secondary);
    background: transparent;
    border: 1px solid var(--g25-border-strong);
}

.g25-btn--outline:hover {
    color: var(--g25-accent-dark);
    border-color: var(--g25-accent);
    background: var(--g25-accent-subtle);
    text-decoration: none;
}

.g25-btn--block {
    width: 100%;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1200px) {
    .g25-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .g25-list-header,
    .g25-list-row {
        grid-template-columns: 2fr 1.2fr 1fr 0.8fr 0.6fr;
    }
    
    .g25-list-col--stats {
        display: none;
    }
}

@media (max-width: 1024px) {
    :root {
        --g25-sidebar-width: 300px;
    }
    
    .g25-sidebar {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        z-index: 1050;
        margin: 0;
        border-radius: var(--g25-radius-lg) var(--g25-radius-lg) 0 0;
        max-height: 85vh;
        transform: translateY(100%);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .g25-sidebar.active {
        transform: translateY(0);
    }
    
    .g25-sidebar-close {
        display: flex;
    }
    
    .g25-sidebar-overlay {
        display: block;
        transition: opacity 0.3s ease;
    }
    
    .g25-filter-toggle {
        display: flex;
    }
    
    .g25-main {
        padding-left: 0;
    }
    
    body.g25-sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .g25-page {
        padding-top: var(--g25-header-offset);
    }
    
    .g25-layout {
        padding: 0 16px;
    }
    
    .g25-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
    }
    
    .g25-toolbar-left,
    .g25-toolbar-right {
        justify-content: space-between;
        width: 100%;
    }
    
    .g25-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .g25-card-header {
        padding: 14px 16px 10px;
    }
    
    .g25-card-title {
        padding: 0 16px;
        font-size: 1rem;
    }
    
    .g25-card-body {
        padding: 0 16px 14px;
    }
    
    .g25-card-footer {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .g25-card-actions {
        width: 100%;
    }
    
    .g25-list-header {
        display: none;
    }
    
    .g25-list-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }
    
    .g25-list-col {
        white-space: normal;
        width: 100%;
    }
    
    .g25-list-col--title {
        order: 1;
        font-size: 0.9375rem;
    }
    
    .g25-list-col--author {
        order: 2;
        font-size: 0.8125rem;
        color: var(--g25-text-muted);
    }
    
    .g25-list-col--era,
    .g25-list-col--stats {
        display: none;
    }
    
    .g25-list-col--uses {
        order: 3;
        font-size: 0.75rem;
    }
    
    .g25-list-col--actions {
        order: 4;
        justify-content: flex-start;
        margin-top: 8px;
    }
    
    .g25-active-filters {
        padding: 12px;
    }
    
    .g25-pagination-link {
        min-width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .g25-empty-state {
        padding: 48px 24px;
    }
    
    .g25-empty-icon {
        width: 64px;
        height: 64px;
    }
    
    .g25-empty-icon i {
        font-size: 1.5rem;
    }
    
    .g25-empty-state h3 {
        font-size: 1.25rem;
    }
    
    .g25-footer-actions {
        flex-direction: column;
    }
    
    .g25-footer-actions .g25-btn {
        width: 100%;
    }
    
    .g25-sidebar {
        max-height: 90vh;
        border-radius: var(--g25-radius-lg) var(--g25-radius-lg) 0 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .g25-sidebar-header {
        padding-top: 24px;
        position: relative;
    }
    
    .g25-sidebar-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--g25-border-strong);
        border-radius: 2px;
        opacity: 0.5;
    }
    
    .g25-filter-toggle {
        bottom: 20px;
        left: 16px;
        padding: 12px 18px;
        z-index: 1051;
    }
}

@media (max-width: 480px) {
    .g25-toolbar-sort {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }
    
    .g25-toolbar-select {
        width: 100%;
    }
    
    .g25-toolbar-view {
        margin-left: auto;
    }
}

@media print {
    .g25-sidebar,
    .g25-filter-toggle,
    .g25-sidebar-overlay,
    .g25-toolbar-view,
    .g25-footer-actions,
    .g25-card-footer,
    .g25-pagination {
        display: none !important;
    }
    
    .g25-page {
        background: white;
    }
    
    .g25-main {
        padding: 0;
    }
    
    .g25-grid {
        display: block;
    }
    
    .g25-card {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 16px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .g25-list-row {
        page-break-inside: avoid;
    }
}
