This commit is contained in:
Tomáš Dvořák
2025-10-16 13:32:05 +02:00
commit 12cba639b9
663 changed files with 168914 additions and 0 deletions
+794
View File
@@ -0,0 +1,794 @@
/**
* Admin Panel Enhancements
* Professional admin interface styling and functionality
*/
/* ============================================
TYPOGRAPHY - ADMIN FONTS
============================================ */
/* Ensure all admin components use selected fonts */
.admin-layout,
.admin-layout *,
.admin-card,
.admin-card *,
.admin-table,
.admin-form,
.admin-btn,
admin-layout [class*="admin-"] {
font-family: var(--font-body, var(--chakra-fonts-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif));
}
/* Admin headings use heading font */
.admin-card h1,
.admin-card h2,
.admin-card h3,
.admin-card h4,
.admin-card h5,
.admin-card h6,
.admin-modal h1,
.admin-modal h2,
.admin-modal h3 {
font-family: var(--font-heading, var(--chakra-fonts-heading, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif)) !important;
}
/* ============================================
ADMIN LAYOUT IMPROVEMENTS
============================================ */
.admin-layout {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.admin-main {
flex: 1;
padding: 24px;
max-width: 1600px;
margin: 0 auto;
width: 100%;
}
/* ============================================
ADMIN CARDS & CONTAINERS
============================================ */
.admin-card {
background: white;
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
padding: 24px;
margin-bottom: 24px;
transition: box-shadow 0.3s ease;
}
.admin-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.chakra-ui-dark .admin-card {
background: #1a1d29;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
color: #e2e8f0;
}
.admin-card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
padding-bottom: 16px;
border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}
.chakra-ui-dark .admin-card-header {
border-bottom-color: rgba(255, 255, 255, 0.12);
}
/* ============================================
ADMIN DATA TABLES
============================================ */
.admin-table-wrapper {
overflow-x: auto;
border-radius: 8px;
border: 1px solid rgba(0, 0, 0, 0.08);
background: white;
}
.chakra-ui-dark .admin-table-wrapper {
border-color: rgba(255, 255, 255, 0.12);
background: #1a1d29;
}
.admin-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
}
.admin-table thead {
position: sticky;
top: 0;
z-index: 10;
background: #f8f9fa;
}
.chakra-ui-dark .admin-table thead {
background: #2d3748;
}
.admin-table th {
padding: 16px;
text-align: left;
font-weight: 600;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #4a5568;
border-bottom: 2px solid rgba(0, 0, 0, 0.08);
white-space: nowrap;
font-family: var(--font-heading, var(--chakra-fonts-heading, sans-serif));
}
.chakra-ui-dark .admin-table th {
color: #a0aec0;
border-bottom-color: rgba(255, 255, 255, 0.12);
}
.admin-table td {
padding: 16px;
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
vertical-align: middle;
}
.chakra-ui-dark .admin-table td {
border-bottom-color: rgba(255, 255, 255, 0.08);
}
.admin-table tbody tr {
transition: background-color 0.2s ease;
}
.admin-table tbody tr:hover {
background-color: rgba(0, 0, 0, 0.02);
}
.chakra-ui-dark .admin-table tbody tr:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.admin-table tbody tr.selected {
background-color: rgba(var(--primary-rgb, 197, 48, 48), 0.08);
}
.admin-table tbody tr:focus-within {
outline: 2px solid var(--primary, #C53030);
outline-offset: -2px;
}
/* ============================================
ADMIN TABLE ACTIONS
============================================ */
.admin-table-actions {
display: flex;
gap: 8px;
align-items: center;
justify-content: flex-end;
}
.admin-table-action-btn {
padding: 6px 12px;
border-radius: 6px;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s ease;
border: 1px solid rgba(0, 0, 0, 0.1);
background: white;
cursor: pointer;
}
.admin-table-action-btn:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.admin-table-action-btn:focus-visible {
outline: 2px solid var(--primary, #C53030);
outline-offset: 2px;
}
/* ============================================
ADMIN FORMS
============================================ */
.admin-form {
display: grid;
gap: 20px;
}
.admin-form-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.admin-form-label {
font-weight: 600;
font-size: 0.875rem;
color: #2d3748;
display: flex;
align-items: center;
gap: 6px;
font-family: var(--font-body, var(--chakra-fonts-body, sans-serif));
}
.chakra-ui-dark .admin-form-label {
color: #e2e8f0;
}
.admin-form-label.required::after {
content: '*';
color: #e53e3e;
font-weight: bold;
}
.admin-form-input {
padding: 10px 14px;
border: 2px solid rgba(0, 0, 0, 0.1);
border-radius: 8px;
font-size: 0.9375rem;
transition: all 0.2s ease;
background: white;
}
.chakra-ui-dark .admin-form-input {
background: #2d3748;
border-color: rgba(255, 255, 255, 0.12);
color: white;
}
.admin-form-input:focus {
border-color: var(--primary, #C53030);
outline: none;
box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 197, 48, 48), 0.1);
}
.admin-form-input.error {
border-color: #e53e3e;
}
.admin-form-error {
color: #e53e3e;
font-size: 0.875rem;
margin-top: 4px;
}
.admin-form-help {
color: #718096;
font-size: 0.875rem;
margin-top: 4px;
}
/* ============================================
ADMIN BUTTONS
============================================ */
.admin-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 20px;
border-radius: 8px;
font-weight: 600;
font-size: 0.9375rem;
transition: all 0.2s ease;
cursor: pointer;
border: none;
text-decoration: none;
}
.admin-btn:focus-visible {
outline: 3px solid var(--primary, #C53030);
outline-offset: 2px;
}
.admin-btn-primary {
background: linear-gradient(135deg, var(--primary, #C53030), #9b2c2c);
color: white;
box-shadow: 0 2px 6px rgba(197, 48, 48, 0.3);
}
.admin-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(197, 48, 48, 0.4);
}
.admin-btn-secondary {
background: #e2e8f0;
color: #2d3748;
}
.admin-btn-secondary:hover {
background: #cbd5e0;
transform: translateY(-1px);
}
.admin-btn-success {
background: #48bb78;
color: white;
}
.admin-btn-success:hover {
background: #38a169;
transform: translateY(-1px);
}
.admin-btn-danger {
background: #e53e3e;
color: white;
}
.admin-btn-danger:hover {
background: #c53030;
transform: translateY(-1px);
}
.admin-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none !important;
}
/* ============================================
ADMIN STATS CARDS
============================================ */
.admin-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 24px;
}
.admin-stat-card {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
border-left: 4px solid var(--primary, #C53030);
}
.chakra-ui-dark .admin-stat-card {
background: #1a1d29;
}
.admin-stat-card:hover {
transform: translateY(-4px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.admin-stat-label {
font-size: 0.875rem;
color: #718096;
font-weight: 500;
margin-bottom: 8px;
}
.admin-stat-value {
font-size: 2rem;
font-weight: 700;
color: #2d3748;
line-height: 1;
font-family: var(--font-heading, var(--chakra-fonts-heading, sans-serif));
}
.chakra-ui-dark .admin-stat-value {
color: #e2e8f0;
}
.admin-stat-trend {
display: flex;
align-items: center;
gap: 6px;
margin-top: 8px;
font-size: 0.875rem;
}
.admin-stat-trend.positive {
color: #48bb78;
}
.admin-stat-trend.negative {
color: #e53e3e;
}
/* ============================================
ADMIN FILTERS & SEARCH
============================================ */
.admin-filters {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
margin-bottom: 20px;
padding: 16px;
background: #f8f9fa;
border-radius: 8px;
}
.chakra-ui-dark .admin-filters {
background: #2d3748;
}
.admin-search-box {
flex: 1;
min-width: 280px;
position: relative;
}
.admin-search-input {
width: 100%;
padding: 10px 14px 10px 40px;
border: 2px solid rgba(0, 0, 0, 0.1);
border-radius: 8px;
font-size: 0.9375rem;
transition: all 0.2s ease;
}
.admin-search-input:focus {
border-color: var(--primary, #C53030);
outline: none;
box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 197, 48, 48), 0.1);
}
.admin-search-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: #718096;
pointer-events: none;
}
/* ============================================
ADMIN BADGES & TAGS
============================================ */
.admin-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
border-radius: 999px;
font-size: 0.8125rem;
font-weight: 600;
line-height: 1;
}
.admin-badge-success {
background: #c6f6d5;
color: #22543d;
}
.admin-badge-warning {
background: #fef3c7;
color: #78350f;
}
.admin-badge-danger {
background: #fed7d7;
color: #742a2a;
}
.admin-badge-info {
background: #bee3f8;
color: #2c5282;
}
.admin-badge-default {
background: #e2e8f0;
color: #2d3748;
}
/* ============================================
ADMIN PAGINATION
============================================ */
.admin-pagination {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 20px;
padding: 16px;
background: #f8f9fa;
border-radius: 8px;
}
.chakra-ui-dark .admin-pagination {
background: #2d3748;
}
.admin-pagination-info {
font-size: 0.875rem;
color: #718096;
}
.admin-pagination-controls {
display: flex;
gap: 8px;
}
.admin-pagination-btn {
padding: 8px 14px;
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.1);
background: white;
cursor: pointer;
transition: all 0.2s ease;
font-size: 0.875rem;
}
.chakra-ui-dark .admin-pagination-btn {
background: #1a1d29;
border-color: rgba(255, 255, 255, 0.12);
}
.admin-pagination-btn:hover:not(:disabled) {
background: var(--primary, #C53030);
color: white;
transform: translateY(-1px);
}
.admin-pagination-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.admin-pagination-btn.active {
background: var(--primary, #C53030);
color: white;
border-color: var(--primary, #C53030);
}
/* ============================================
ADMIN LOADING STATES
============================================ */
.admin-skeleton {
background: linear-gradient(
90deg,
#f0f0f0 0%,
#e8e8e8 50%,
#f0f0f0 100%
);
background-size: 200% 100%;
animation: adminShimmer 1.5s infinite;
border-radius: 6px;
}
.chakra-ui-dark .admin-skeleton {
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.05) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.05) 100%
);
}
@keyframes adminShimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
.admin-spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(0, 0, 0, 0.1);
border-top-color: var(--primary, #C53030);
border-radius: 50%;
animation: adminSpin 0.8s linear infinite;
}
@keyframes adminSpin {
to { transform: rotate(360deg); }
}
/* ============================================
ADMIN ALERTS & NOTIFICATIONS
============================================ */
.admin-alert {
padding: 14px 16px;
border-radius: 8px;
margin-bottom: 16px;
display: flex;
align-items: start;
gap: 12px;
border-left: 4px solid;
}
.admin-alert-success {
background: #c6f6d5;
border-color: #48bb78;
color: #22543d;
}
.admin-alert-warning {
background: #fef3c7;
border-color: #f59e0b;
color: #78350f;
}
.admin-alert-danger {
background: #fed7d7;
border-color: #e53e3e;
color: #742a2a;
}
.admin-alert-info {
background: #bee3f8;
border-color: #3b82f6;
color: #2c5282;
}
/* ============================================
ADMIN MODAL ENHANCEMENTS
============================================ */
.admin-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
z-index: 9999;
animation: adminFadeIn 0.2s ease;
}
@keyframes adminFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.admin-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
max-width: 600px;
width: 90%;
max-height: 90vh;
overflow: auto;
z-index: 10000;
animation: adminSlideUp 0.3s ease;
}
@keyframes adminSlideUp {
from {
opacity: 0;
transform: translate(-50%, -40%);
}
to {
opacity: 1;
transform: translate(-50%, -50%);
}
}
.chakra-ui-dark .admin-modal {
background: #1a1d29;
}
/* ============================================
ADMIN BULK ACTIONS
============================================ */
.admin-bulk-actions {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: #edf2f7;
border-radius: 8px;
margin-bottom: 16px;
animation: adminSlideDown 0.3s ease;
}
@keyframes adminSlideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.chakra-ui-dark .admin-bulk-actions {
background: #2d3748;
}
.admin-bulk-count {
font-weight: 600;
color: var(--primary, #C53030);
}
/* ============================================
ADMIN DRAG & DROP
============================================ */
.admin-dropzone {
border: 2px dashed rgba(0, 0, 0, 0.2);
border-radius: 12px;
padding: 40px;
text-align: center;
transition: all 0.3s ease;
cursor: pointer;
}
.admin-dropzone:hover,
.admin-dropzone.active {
border-color: var(--primary, #C53030);
background: rgba(var(--primary-rgb, 197, 48, 48), 0.05);
}
.admin-dropzone.dragging {
border-color: #48bb78;
background: rgba(72, 187, 120, 0.05);
transform: scale(1.02);
}
/* ============================================
RESPONSIVE ADMIN DESIGN
============================================ */
@media (max-width: 768px) {
.admin-main {
padding: 16px;
}
.admin-card {
padding: 16px;
}
.admin-table-wrapper {
font-size: 0.875rem;
}
.admin-table th,
.admin-table td {
padding: 12px 8px;
}
.admin-stats-grid {
grid-template-columns: 1fr;
}
.admin-filters {
flex-direction: column;
align-items: stretch;
}
.admin-search-box {
width: 100%;
min-width: 0;
}
.admin-pagination {
flex-direction: column;
gap: 12px;
}
}
/* ============================================
ADMIN KEYBOARD SHORTCUTS INDICATOR
============================================ */
.admin-shortcut-hint {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 6px;
background: #e2e8f0;
border-radius: 4px;
font-size: 0.75rem;
font-family: monospace;
color: #4a5568;
border: 1px solid rgba(0, 0, 0, 0.1);
}
.chakra-ui-dark .admin-shortcut-hint {
background: #2d3748;
color: #a0aec0;
}
+553
View File
@@ -0,0 +1,553 @@
/* Custom Rich Editor Enhancements */
/* Quill Toolbar Styling */
.ql-toolbar.ql-snow {
background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
border: none !important;
border-bottom: 1px solid #e2e8f0 !important;
padding: 12px 10px;
border-radius: 6px 6px 0 0;
}
.ql-toolbar.ql-snow .ql-formats {
margin-right: 12px;
}
.ql-toolbar.ql-snow button {
width: 32px;
height: 32px;
padding: 3px;
margin-right: 2px;
border-radius: 4px;
transition: all 0.2s ease;
}
.ql-toolbar.ql-snow button:hover {
background-color: rgba(66, 153, 225, 0.1);
color: #3182ce;
}
.ql-toolbar.ql-snow button.ql-active {
background-color: #3182ce;
color: white;
}
.ql-toolbar.ql-snow button svg {
transition: transform 0.2s ease;
}
.ql-toolbar.ql-snow button:hover svg {
transform: scale(1.1);
}
.ql-toolbar.ql-snow .ql-stroke {
stroke: #4a5568;
}
.ql-toolbar.ql-snow .ql-fill {
fill: #4a5568;
}
.ql-toolbar.ql-snow button:hover .ql-stroke {
stroke: #3182ce;
}
.ql-toolbar.ql-snow button:hover .ql-fill {
fill: #3182ce;
}
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
stroke: white;
}
.ql-toolbar.ql-snow button.ql-active .ql-fill {
fill: white;
}
/* Dropdowns */
.ql-toolbar.ql-snow .ql-picker {
border-radius: 4px;
transition: all 0.2s ease;
}
.ql-toolbar.ql-snow .ql-picker-label {
border: 1px solid #e2e8f0;
border-radius: 4px;
padding: 4px 8px;
transition: all 0.2s ease;
}
.ql-toolbar.ql-snow .ql-picker-label:hover {
border-color: #3182ce;
background-color: rgba(66, 153, 225, 0.05);
}
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
border-color: #3182ce;
background-color: white;
}
.ql-toolbar.ql-snow .ql-picker-options {
border-radius: 4px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
border: 1px solid #e2e8f0;
padding: 4px;
background: white;
max-height: 300px;
overflow-y: auto;
}
.ql-toolbar.ql-snow .ql-picker-options .ql-picker-item {
border-radius: 4px;
padding: 6px 8px;
transition: all 0.15s ease;
}
.ql-toolbar.ql-snow .ql-picker-options .ql-picker-item:hover {
background-color: rgba(66, 153, 225, 0.1);
color: #3182ce;
}
/* Editor Container */
.ql-container.ql-snow {
border: none !important;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 16px;
border-radius: 0 0 6px 6px;
}
/* Editor Content */
.ql-editor {
padding: 16px;
line-height: 1.7;
color: #2d3748;
caret-color: #3182ce;
}
.ql-editor.ql-blank::before {
color: #a0aec0;
font-style: normal;
left: 16px;
right: 16px;
}
/* Typography in Editor */
.ql-editor h1 {
font-size: 2em;
font-weight: 700;
margin: 0.67em 0;
line-height: 1.2;
color: #1a202c;
}
.ql-editor h2 {
font-size: 1.5em;
font-weight: 600;
margin: 0.75em 0;
line-height: 1.3;
color: #1a202c;
}
.ql-editor h3 {
font-size: 1.25em;
font-weight: 600;
margin: 1em 0;
line-height: 1.4;
color: #2d3748;
}
.ql-editor p {
margin: 0.5em 0;
}
.ql-editor ul,
.ql-editor ol {
padding-left: 1.5em;
margin: 0.5em 0;
}
.ql-editor li {
margin: 0.25em 0;
}
.ql-editor blockquote {
border-left: 4px solid #3182ce;
padding-left: 16px;
margin: 1em 0;
color: #4a5568;
font-style: italic;
background-color: #f7fafc;
padding: 12px 16px;
border-radius: 4px;
}
.ql-editor code {
background-color: #f7fafc;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: 0.9em;
color: #e53e3e;
}
.ql-editor pre {
background-color: #2d3748;
color: #f7fafc;
padding: 16px;
border-radius: 6px;
overflow-x: auto;
margin: 1em 0;
line-height: 1.5;
}
.ql-editor pre code {
background: transparent;
color: #f7fafc;
padding: 0;
}
.ql-editor a {
color: #3182ce;
text-decoration: underline;
transition: color 0.2s ease;
}
.ql-editor a:hover {
color: #2c5aa0;
}
/* Images in Editor */
.ql-editor img {
border-radius: 6px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ql-editor img:hover {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Custom Image Resize Handle Styles */
.custom-image-resize-handle {
animation: pulseHandle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulseHandle {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.custom-image-resize-handle:hover {
animation: none;
opacity: 1 !important;
}
/* Video Embeds */
.ql-editor iframe {
max-width: 100%;
border-radius: 6px;
margin: 12px 0;
}
/* Tables */
.ql-editor table {
border-collapse: collapse;
width: 100%;
margin: 1em 0;
}
.ql-editor table td,
.ql-editor table th {
border: 1px solid #e2e8f0;
padding: 8px 12px;
}
.ql-editor table th {
background-color: #f7fafc;
font-weight: 600;
text-align: left;
}
/* Scrollbar Styling */
.ql-editor::-webkit-scrollbar {
width: 10px;
}
.ql-editor::-webkit-scrollbar-track {
background: #f7fafc;
border-radius: 0 0 6px 0;
}
.ql-editor::-webkit-scrollbar-thumb {
background: #cbd5e0;
border-radius: 5px;
transition: background 0.2s ease;
}
.ql-editor::-webkit-scrollbar-thumb:hover {
background: #a0aec0;
}
/* Color Picker */
.ql-snow .ql-color-picker .ql-picker-label {
width: 32px;
height: 32px;
padding: 4px;
}
.ql-snow .ql-color-picker .ql-picker-options {
width: 152px;
padding: 8px;
}
/* Focus States */
.ql-container:focus-within {
outline: 2px solid #3182ce;
outline-offset: 2px;
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
.ql-toolbar.ql-snow {
background: linear-gradient(to bottom, #2d3748 0%, #1a202c 100%);
border-bottom-color: #4a5568 !important;
}
.ql-toolbar.ql-snow .ql-stroke {
stroke: #cbd5e0;
}
.ql-toolbar.ql-snow .ql-fill {
fill: #cbd5e0;
}
.ql-toolbar.ql-snow button:hover {
background-color: rgba(99, 179, 237, 0.2);
}
.ql-toolbar.ql-snow button.ql-active {
background-color: #2c5aa0;
}
.ql-container.ql-snow {
background-color: #1a202c;
}
.ql-editor {
color: #e2e8f0;
}
.ql-editor.ql-blank::before {
color: #4a5568;
}
.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
color: #f7fafc;
}
.ql-editor blockquote {
background-color: #2d3748;
color: #cbd5e0;
}
.ql-editor code {
background-color: #2d3748;
color: #fc8181;
}
.ql-editor pre {
background-color: #1a202c;
}
.ql-editor table th {
background-color: #2d3748;
}
.ql-editor table td,
.ql-editor table th {
border-color: #4a5568;
}
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.ql-toolbar.ql-snow {
padding: 8px 6px;
}
.ql-toolbar.ql-snow button {
width: 28px;
height: 28px;
}
.ql-toolbar.ql-snow .ql-formats {
margin-right: 8px;
}
.ql-editor {
padding: 12px;
font-size: 15px;
}
}
/* Selection Highlight */
.ql-editor ::selection {
background-color: rgba(66, 153, 225, 0.3);
}
.ql-editor ::-moz-selection {
background-color: rgba(66, 153, 225, 0.3);
}
/* Tooltip Styles for Toolbar */
.ql-toolbar.ql-snow button[title]:hover::after,
.ql-toolbar.ql-snow .ql-picker-label[title]:hover::after {
content: attr(title);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
padding: 4px 8px;
background-color: #2d3748;
color: white;
font-size: 12px;
border-radius: 4px;
white-space: nowrap;
margin-bottom: 4px;
z-index: 1000;
pointer-events: none;
}
/* Loading State for Images */
.ql-editor img[src=""] {
opacity: 0.3;
filter: grayscale(100%);
}
/* Enhanced Link Styling */
.ql-editor a[href^="http"]::after {
content: " ↗";
font-size: 0.8em;
opacity: 0.6;
}
.ql-editor a[href^="#"]::after,
.ql-editor a[href^="/"]::after {
content: "";
}
/* Modern Range Slider Styling */
input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 6px;
border-radius: 3px;
background: linear-gradient(to right, #3182ce 0%, #3182ce var(--value), #e2e8f0 var(--value), #e2e8f0 100%);
outline: none;
transition: all 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: white;
border: 3px solid #3182ce;
cursor: pointer;
box-shadow: 0 2px 6px rgba(49, 130, 206, 0.3);
transition: all 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.2);
box-shadow: 0 3px 10px rgba(49, 130, 206, 0.5);
}
input[type="range"]::-webkit-slider-thumb:active {
transform: scale(1.1);
background: #3182ce;
}
input[type="range"]::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: white;
border: 3px solid #3182ce;
cursor: pointer;
box-shadow: 0 2px 6px rgba(49, 130, 206, 0.3);
transition: all 0.2s ease;
}
input[type="range"]::-moz-range-thumb:hover {
transform: scale(1.2);
box-shadow: 0 3px 10px rgba(49, 130, 206, 0.5);
}
input[type="range"]::-moz-range-thumb:active {
transform: scale(1.1);
background: #3182ce;
}
/* Floating Toolbar Animation */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.floating-toolbar {
animation: fadeInUp 0.3s ease-out;
}
/* Enhanced Image Selection */
.ql-editor img[data-selected="true"] {
outline: 3px solid #3182ce !important;
box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1),
0 4px 12px rgba(49, 130, 206, 0.3) !important;
}
/* Image Transform Transitions */
.ql-editor img {
transition: filter 0.3s ease, transform 0.3s ease !important;
}
/* Print Styles */
@media print {
.ql-toolbar {
display: none;
}
.ql-container {
border: none !important;
}
.ql-editor {
padding: 0;
}
.ql-editor img {
max-width: 100%;
page-break-inside: avoid;
}
/* Print without filters/transforms for better compatibility */
.ql-editor img {
filter: none !important;
transform: none !important;
}
}
+90
View File
@@ -0,0 +1,90 @@
/* Custom scrollbars based on club colors */
/* Main scrollbar styling */
::-webkit-scrollbar {
width: 12px;
height: 12px;
}
::-webkit-scrollbar-track {
background: var(--bg-soft, #f2f2f2);
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(
135deg,
var(--primary, #2d74da) 0%,
color-mix(in srgb, var(--primary, #2d74da) 85%, var(--secondary, #1a1a1a)) 100%
);
border-radius: 10px;
border: 2px solid var(--bg-soft, #f2f2f2);
transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(
135deg,
color-mix(in srgb, var(--primary, #2d74da) 110%, white) 0%,
var(--primary, #2d74da) 100%
);
border-color: color-mix(in srgb, var(--primary, #2d74da) 20%, transparent);
box-shadow: 0 0 10px color-mix(in srgb, var(--primary, #2d74da) 30%, transparent);
}
::-webkit-scrollbar-thumb:active {
background: var(--primary, #2d74da);
}
/* Firefox scrollbar styling */
* {
scrollbar-width: thin;
scrollbar-color: var(--primary, #2d74da) var(--bg-soft, #f2f2f2);
}
/* Dark mode adjustments */
.chakra-ui-dark ::-webkit-scrollbar-track {
background: var(--bg-soft, #1a1f29);
}
.chakra-ui-dark ::-webkit-scrollbar-thumb {
border-color: var(--bg-soft, #1a1f29);
}
.chakra-ui-dark * {
scrollbar-color: var(--primary, #2d74da) var(--bg-soft, #1a1f29);
}
/* Thin scrollbars for specific contexts */
.thin-scrollbar::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.thin-scrollbar::-webkit-scrollbar-thumb {
border-width: 1px;
}
/* Hide scrollbar but keep functionality (for carousels, sliders) */
.hide-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
/* Accent scrollbar variant */
.accent-scrollbar::-webkit-scrollbar-thumb {
background: linear-gradient(
135deg,
var(--accent, #ffb703) 0%,
color-mix(in srgb, var(--accent, #ffb703) 85%, var(--primary, #2d74da)) 100%
);
}
.accent-scrollbar::-webkit-scrollbar-thumb:hover {
background: var(--accent, #ffb703);
box-shadow: 0 0 10px color-mix(in srgb, var(--accent, #ffb703) 40%, transparent);
}
+100
View File
@@ -0,0 +1,100 @@
/* Design System for Football Club */
:root {
/* Colors mapped from club theme */
--primary: var(--club-primary, #1a365d);
--primary-light: color-mix(in srgb, var(--primary) 85%, #ffffff);
--secondary: var(--club-secondary, #d69e2e);
--white: #ffffff;
--off-white: #f7fafc;
--light-gray: #e2e8f0;
--dark-gray: #4a5568;
/* Spacing */
--space-xs: 0.5rem;
--space-sm: 1rem;
--space-md: 1.5rem;
--space-lg: 2rem;
--space-xl: 3rem;
/* Typography */
--font-sans: 'Inter', -apple-system, sans-serif;
--font-heading: 'Montserrat', sans-serif;
}
/* Base Styles */
body {
font-family: var(--font-sans);
line-height: 1.6;
color: var(--dark-gray);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
font-weight: 700;
margin: 0 0 var(--space-md) 0;
}
/* Layout */
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 var(--space-md);
}
/* Buttons */
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 4px;
font-weight: 600;
text-align: center;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
border: none;
}
.btn-primary { background: var(--primary); color: var(--club-text-on-primary, #ffffff); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
/* Cards */
.card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease;
}
.card:hover {
transform: translateY(-4px);
}
/* Grid */
.grid {
display: grid;
gap: var(--space-md);
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
/* Sections */
.section {
padding: var(--space-xl) 0;
}
.section-light {
background: var(--off-white);
}
/* Responsive */
@media (max-width: 768px) {
.grid {
grid-template-columns: 1fr;
}
.section {
padding: var(--space-lg) 0;
}
}
+225
View File
@@ -0,0 +1,225 @@
/* Color Palette */
:root {
/* Primary Colors mapped from club theme */
--primary: var(--club-primary, #1a365d);
--primary-light: color-mix(in srgb, var(--primary) 85%, #ffffff);
--primary-dark: color-mix(in srgb, var(--primary) 80%, #000000);
/* Secondary Colors */
--secondary: var(--club-secondary, #d69e2e);
--secondary-light: color-mix(in srgb, var(--secondary) 85%, #ffffff);
--secondary-dark: color-mix(in srgb, var(--secondary) 80%, #000000);
/* Neutrals */
--white: #ffffff;
--off-white: #f7fafc;
--light-gray: #e2e8f0;
--medium-gray: #a0aec0;
--dark-gray: #4a5568;
--black: #1a202c;
/* Utility Colors */
--success: #38a169;
--warning: #dd6b20;
--error: #e53e3e;
--info: #3182ce;
/* Gradients */
--primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
--secondary-gradient: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
/* Shadows */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
/* Border Radius */
--radius-sm: 0.25rem;
--radius: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 1rem;
--radius-full: 9999px;
/* Spacing */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
--space-20: 5rem;
/* Typography */
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
--font-heading: 'Montserrat', var(--font-sans);
--font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
/* Transitions */
--transition-fast: 150ms ease-in-out;
--transition: 250ms ease-in-out;
--transition-slow: 350ms ease-in-out;
}
/* Global Styles */
.container {
width: 100%;
margin: 0 auto;
padding: 0 var(--space-4);
max-width: 1280px;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
font-weight: 700;
line-height: 1.2;
margin: 0 0 var(--space-4) 0;
color: var(--black);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p {
margin: 0 0 var(--space-4) 0;
line-height: 1.6;
color: var(--dark-gray);
}
/* Buttons */
.button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: var(--space-3) var(--space-6);
border-radius: var(--radius);
font-weight: 600;
text-align: center;
text-decoration: none;
cursor: pointer;
transition: all var(--transition);
border: 2px solid transparent;
font-family: var(--font-heading);
text-transform: uppercase;
letter-spacing: 0.05em;
font-size: 0.875rem;
}
.button--primary { background: var(--primary); color: var(--club-text-on-primary, var(--white)); }
.button--primary:hover {
background: var(--primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow);
}
.button--secondary { background: var(--secondary); color: var(--club-text-on-secondary, var(--black)); }
.button--secondary:hover {
background: var(--secondary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow);
}
.button--outline {
background: transparent;
border-color: currentColor;
color: var(--primary);
}
.button--outline:hover {
background: rgba(26, 54, 93, 0.1);
transform: translateY(-1px);
}
/* Cards */
.card {
background: var(--white);
border-radius: var(--radius-md);
box-shadow: var(--shadow);
overflow: hidden;
transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-md);
}
.card__image {
width: 100%;
height: 200px;
object-fit: cover;
}
.card__content {
padding: var(--space-4);
}
.card__title {
font-size: 1.25rem;
margin-bottom: var(--space-2);
color: var(--black);
}
.card__text {
color: var(--dark-gray);
margin-bottom: var(--space-4);
font-size: 0.9375rem;
}
/* Grid */
.grid {
display: grid;
gap: var(--space-6);
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
/* Utilities */
.section {
padding: var(--space-12) 0;
}
.section--light {
background: var(--off-white);
}
.section--dark { background: var(--primary); color: var(--club-text-on-primary, var(--white)); }
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
color: var(--club-text-on-primary, var(--white));
}
.section--dark p { color: color-mix(in srgb, var(--club-text-on-primary, #ffffff) 80%, transparent); }
/* Responsive Helpers */
@media (max-width: 768px) {
:root {
--space-4: 0.75rem;
--space-6: 1rem;
--space-8: 1.5rem;
--space-12: 2rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
.section {
padding: var(--space-8) 0;
}
}
+495
View File
@@ -0,0 +1,495 @@
/**
* Global Enhancements for ALL Pages
* Applied automatically to every page in the application
*/
/* ============================================
GLOBAL TYPOGRAPHY
============================================ */
/* Ensure fonts apply everywhere */
* {
font-family: var(--font-body, var(--chakra-fonts-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif));
}
html, body {
font-family: var(--font-body, var(--chakra-fonts-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif));
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading, var(--chakra-fonts-heading, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif)) !important;
}
button, input, textarea, select {
font-family: var(--font-body, var(--chakra-fonts-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif));
}
/* ============================================
SMOOTH SCROLLING
============================================ */
html {
scroll-behavior: smooth;
scroll-padding-top: 80px; /* Account for fixed headers */
}
/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* ============================================
FOCUS IMPROVEMENTS
============================================ */
:focus-visible {
outline: 3px solid var(--primary, #C53030);
outline-offset: 2px;
border-radius: 4px;
}
/* Remove default outline but keep focus-visible */
:focus:not(:focus-visible) {
outline: none;
}
/* Better focus for links */
a:focus-visible {
outline: 3px solid var(--primary, #C53030);
outline-offset: 3px;
}
/* Better focus for buttons */
button:focus-visible {
outline: 3px solid var(--primary, #C53030);
outline-offset: 2px;
}
/* Better focus for inputs */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
outline: 2px solid var(--primary, #C53030);
outline-offset: 0;
border-color: var(--primary, #C53030);
}
/* ============================================
SELECTION STYLING
============================================ */
::selection {
background: var(--primary, #C53030);
color: white;
text-shadow: none;
}
::-moz-selection {
background: var(--primary, #C53030);
color: white;
text-shadow: none;
}
/* ============================================
SCROLLBAR STYLING
============================================ */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
width: 12px;
height: 12px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 10px;
border: 2px solid transparent;
background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.3);
background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active {
background: rgba(0, 0, 0, 0.4);
background-clip: padding-box;
}
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}
/* Dark mode scrollbar */
.chakra-ui-dark ::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
}
.chakra-ui-dark ::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
}
.chakra-ui-dark ::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}
.chakra-ui-dark * {
scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}
/* ============================================
FADE-IN ANIMATIONS
============================================ */
@keyframes globalFadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes globalFadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes globalSlideInLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes globalSlideInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.fade-in {
animation: globalFadeIn 0.6s ease-out forwards;
}
.fade-in-up {
animation: globalFadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.slide-in-left {
animation: globalSlideInLeft 0.6s ease-out forwards;
}
.slide-in-right {
animation: globalSlideInRight 0.6s ease-out forwards;
}
.fade-in-visible {
animation: globalFadeIn 0.6s ease-out forwards;
}
.fade-in-hidden {
opacity: 0;
}
/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
/* ============================================
LOADING SKELETON
============================================ */
@keyframes shimmer {
0% {
background-position: -1000px 0;
}
100% {
background-position: 1000px 0;
}
}
.skeleton {
background: linear-gradient(
90deg,
#f0f0f0 0%,
#e0e0e0 50%,
#f0f0f0 100%
);
background-size: 1000px 100%;
animation: shimmer 2s infinite linear;
border-radius: 4px;
}
.chakra-ui-dark .skeleton {
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.05) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.05) 100%
);
}
/* ============================================
PULSE ANIMATION
============================================ */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* ============================================
SPIN ANIMATION
============================================ */
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.spin {
animation: spin 1s linear infinite;
}
/* ============================================
BACK TO TOP BUTTON
============================================ */
.back-to-top {
position: fixed;
bottom: 24px;
right: 24px;
width: 48px;
height: 48px;
border-radius: 50%;
background: var(--primary, #C53030);
color: white;
border: none;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
justify-content: center;
}
.back-to-top.visible {
opacity: 1;
visibility: visible;
}
.back-to-top:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.back-to-top:active {
transform: translateY(-2px);
}
.back-to-top:focus-visible {
outline: 3px solid white;
outline-offset: 2px;
}
/* ============================================
SKIP TO CONTENT LINK
============================================ */
.skip-to-content {
position: absolute;
top: -40px;
left: 0;
background: var(--primary, #C53030);
color: white;
padding: 8px 16px;
text-decoration: none;
border-radius: 0 0 4px 0;
z-index: 10000;
transition: top 0.3s;
}
.skip-to-content:focus {
top: 0;
outline: 3px solid white;
outline-offset: -3px;
}
/* ============================================
UTILITY CLASSES
============================================ */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.no-scroll {
overflow: hidden;
}
.pointer-events-none {
pointer-events: none;
}
.pointer-events-auto {
pointer-events: auto;
}
/* ============================================
IMPROVED TOUCH TARGETS
============================================ */
/* Ensure all interactive elements have minimum 44x44px touch target */
@media (pointer: coarse) {
button,
a,
input[type="button"],
input[type="submit"],
input[type="reset"],
select {
min-height: 44px;
min-width: 44px;
}
}
/* ============================================
PRINT STYLES
============================================ */
@media print {
.no-print,
.back-to-top,
.skip-to-content,
nav,
footer,
aside,
button {
display: none !important;
}
a[href]:after {
content: " (" attr(href) ")";
}
* {
background: white !important;
color: black !important;
}
}
/* ============================================
HIGH CONTRAST MODE
============================================ */
@media (prefers-contrast: high) {
* {
border-color: currentColor !important;
}
button,
a {
text-decoration: underline;
}
}
/* ============================================
PERFORMANCE HINTS
============================================ */
.will-change-transform {
will-change: transform;
}
.will-change-opacity {
will-change: opacity;
}
.gpu-accelerated {
transform: translateZ(0);
backface-visibility: hidden;
}
/* ============================================
RESPONSIVE IMAGES
============================================ */
img {
max-width: 100%;
height: auto;
display: block;
}
img.lazy-loading {
filter: blur(5px);
transition: filter 0.3s;
}
img.lazy-loaded {
filter: blur(0);
}
/* ============================================
IMPROVED TEXT RENDERING
============================================ */
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-family: var(--font-body, var(--chakra-fonts-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif));
}
/* ============================================
SAFE AREA INSETS (for mobile notches)
============================================ */
@supports (padding: env(safe-area-inset-top)) {
body {
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
}
+86
View File
@@ -0,0 +1,86 @@
/* Import theme variables and base styles */
@import './theme.css';
/* Global Styles */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
min-height: 100vh;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Dark mode ensures background covers entire page */
.chakra-ui-dark,
.chakra-ui-dark body,
.chakra-ui-dark #root {
background-color: #0f1115;
color: #e8eaf0;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
a {
color: inherit;
text-decoration: none;
}
/* Responsive images */
img {
height: auto;
max-width: 100%;
}
/* Utility Classes */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Layout Utilities */
.flex {
display: flex;
}
.grid {
display: grid;
}
/* Responsive Helpers */
@media (max-width: 768px) {
.container {
padding: 0 1rem;
}
}
+172
View File
@@ -0,0 +1,172 @@
/**
* Logo formatting utilities
* Ensures logos are properly centered and formatted without empty space
*/
.team-logo {
object-fit: contain;
object-position: center;
width: 100%;
height: 100%;
}
.team-logo-wrapper {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
/* Match row logo styles */
.match-logo-small {
width: 24px;
height: 24px;
object-fit: contain;
object-position: center;
}
.match-logo-medium {
width: 32px;
height: 32px;
object-fit: contain;
object-position: center;
}
.match-logo-large {
width: 48px;
height: 48px;
object-fit: contain;
object-position: center;
}
/* Ensure SVGs don't have extra padding and fit properly in circular containers */
.team-logo svg,
.match-logo-small svg,
.match-logo-medium svg,
.match-logo-large svg {
width: 100%;
height: 100%;
display: block;
max-width: 100%;
max-height: 100%;
}
/* SVG logos - proper object-fit to handle optimized viewBox */
.logo svg,
[class*="match-logo"] svg {
object-fit: contain;
object-position: center;
}
/* Specific styles for circular logo containers */
img[style*="border-radius: 50%"],
img[style*="borderRadius: full"],
.borderRadius-full img {
object-fit: contain !important;
}
/* Circular containers - optimized viewBox means minimal padding */
.circular-logo-container img {
padding: 3px;
box-sizing: border-box;
}
/* Match widget specific styles */
.match-widget-logo {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.match-widget-logo img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
/* Upcoming matches hero styles */
.next-match-logo {
width: 64px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 8px;
}
.next-match-logo img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
/* Table logo styles */
.table-logo {
width: 28px;
height: 28px;
object-fit: contain;
object-position: center;
}
/* Ensure proper centering in flex containers */
.logo-container {
display: flex;
align-items: center;
justify-content: center;
min-width: 0; /* Allow flex shrinking */
}
/* Loading placeholder */
.logo-loading {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 200% 100%;
animation: loading 1.5s ease-in-out infinite;
border-radius: 4px;
}
@keyframes loading {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
/* Fix for SVG logos being cut off in circular containers */
.circular-logo-container {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
}
.circular-logo-container img {
object-fit: contain !important;
max-width: 80% !important;
max-height: 80% !important;
width: auto !important;
height: auto !important;
}
/* Chakra UI Image component with borderRadius="full" */
.chakra-image[data-border-radius="full"] {
object-fit: contain !important;
padding: 4px !important;
}
/* Override for specific logo sizes in circular containers */
.match-logo-small[style*="border-radius"],
.match-logo-medium[style*="border-radius"],
.match-logo-large[style*="border-radius"] {
object-fit: contain !important;
padding: 2px !important;
box-sizing: border-box !important;
}
+885
View File
@@ -0,0 +1,885 @@
/*
* Sparta Praha Style System
* Based on AC Sparta Praha design patterns
* Converted from rec directory CSS files
*/
/* ========================================
1. HEADER / NAVBAR STYLES
======================================== */
.sparta-navbar-container {
position: relative;
width: 100%;
}
.sparta-navbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.25rem;
background: var(--colorBgPrimary, #0e0e0e);
border-bottom: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
}
.sparta-navbar-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: transparent;
border: none;
cursor: pointer;
transition: transform 0.4s cubic-bezier(0, 0, 0, 1);
}
.sparta-navbar-toggle:hover {
transform: scale(1.1);
}
.sparta-burger-icon {
position: relative;
width: 40px;
height: 40px;
user-select: none;
}
.sparta-burger-line {
background: currentColor;
height: 2px;
width: 18px;
position: absolute;
left: 11px;
transition: 0.2s cubic-bezier(0, 0, 0, 1);
}
.sparta-burger-line:nth-child(1) {
top: 13px;
}
.sparta-burger-line:nth-child(2) {
top: 19px;
opacity: 1;
}
.sparta-burger-line:nth-child(3) {
top: 25px;
}
.sparta-navbar-brand {
display: flex;
align-items: center;
margin: 0 auto;
}
.sparta-navbar-brand img {
width: 48px;
height: 48px;
object-fit: contain;
}
.sparta-navbar-links {
display: none;
gap: 1rem;
align-items: center;
}
@media screen and (min-width: 768px) {
.sparta-navbar-links {
display: flex;
}
}
.sparta-navbar-separator {
width: 1px;
height: 24px;
background: var(--colorBorder, rgba(255, 255, 255, 0.1));
}
/* ========================================
2. HERO / FEATURED CAROUSEL STYLES
======================================== */
.sparta-hero-container {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
height: 42.375rem;
overflow: hidden;
margin-top: -4.5rem;
}
@media screen and (min-width: 1024px) {
.sparta-hero-container {
height: 50rem;
flex-direction: row;
align-items: flex-end;
}
}
@media screen and (min-width: 1280px) {
.sparta-hero-container {
height: 53rem;
margin-top: -5rem;
max-width: 2520px;
width: 100%;
align-self: center;
}
}
.sparta-hero-container::after {
content: '';
position: absolute;
pointer-events: none;
height: 300px;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(0deg, #0e0e0e, hsla(0, 0%, 5%, 0));
z-index: 1;
}
.sparta-hero-background {
position: absolute;
height: 100%;
width: 100%;
inset: 0;
z-index: 0;
}
.sparta-hero-background img {
position: absolute;
height: 100%;
width: 100%;
object-fit: cover;
}
.sparta-hero-article {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
z-index: 2;
padding: 0 20px;
animation: sparta-fade-slide-up 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@media screen and (min-width: 1024px) {
.sparta-hero-article {
margin-bottom: 11.875rem;
padding: 0 0 0 3.75rem;
width: 42.4375rem;
max-width: calc(100% - 27.75rem);
gap: 16px;
}
}
@media screen and (min-width: 1280px) {
.sparta-hero-article {
margin-bottom: 15rem;
}
}
@keyframes sparta-fade-slide-up {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.sparta-hero-categories {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
font-size: 0.875rem;
text-transform: uppercase;
}
.sparta-hero-category-badge {
padding: 4px 8px;
background: var(--colorBgSemiTransparent8, hsla(0, 0%, 100%, 0.08));
backdrop-filter: blur(60px);
border-radius: 4px;
}
.sparta-hero-separator {
width: 4px;
height: 4px;
background: currentColor;
border-radius: 50%;
opacity: 0.5;
}
.sparta-hero-title {
font-size: 2.25rem;
line-height: 2.375rem;
font-weight: 500;
text-transform: uppercase;
margin: 0;
}
@media screen and (min-width: 1280px) {
.sparta-hero-title {
font-size: 4rem;
line-height: 4.25rem;
}
}
.sparta-hero-description {
font-size: 1.125rem;
font-weight: 400;
margin: 0;
}
@media screen and (min-width: 1280px) {
.sparta-hero-description {
font-size: 1.5rem;
}
}
.sparta-hero-button {
margin-top: 24px;
}
@media screen and (min-width: 1280px) {
.sparta-hero-button {
margin-top: 16px;
}
}
.sparta-hero-nav {
position: relative;
z-index: 2;
width: 100%;
padding: 1rem;
}
/* ========================================
3. HORIZONTAL SLIDER STYLES
======================================== */
.sparta-slider-container {
display: flex;
flex-direction: column;
gap: 2.5rem;
}
@media screen and (min-width: 1024px) {
.sparta-slider-container {
gap: 3rem;
}
}
.sparta-slider-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.sparta-slider-title {
font-size: 1.75rem;
font-weight: 500;
line-height: normal;
text-transform: uppercase;
margin: 0;
}
@media screen and (min-width: 1280px) {
.sparta-slider-title {
font-size: 2rem;
}
}
.sparta-slider-title a {
display: inline-flex;
align-items: center;
gap: 8px;
color: inherit;
text-decoration: none;
transition: color 0.2s;
}
.sparta-slider-title a:hover {
color: var(--colorAccent, #f03232);
}
.sparta-slider-title i {
width: 2rem;
height: 2rem;
transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sparta-slider-title a:hover i {
transform: translateX(4px);
}
.sparta-slider-controls {
display: flex;
gap: 8px;
}
.sparta-slider-button {
min-width: 48px;
min-height: 48px;
display: flex;
align-items: center;
justify-content: center;
background: var(--colorBgSecondary, #1e1e1e);
border: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.sparta-slider-button:hover:not(:disabled) {
background: var(--colorBgTertiary, #2e2e2e);
border-color: var(--colorAccent, #f03232);
}
.sparta-slider-button:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.sparta-slider-viewport {
overflow: hidden;
width: 100%;
}
.sparta-slider-track {
display: flex;
gap: 16px;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.6, 1);
transform: translate3d(0px, 0px, 0px);
}
.sparta-slider-slide {
flex: 0 0 auto;
width: 100%;
max-width: 400px;
}
@media screen and (min-width: 768px) {
.sparta-slider-slide {
width: calc(50% - 8px);
}
}
@media screen and (min-width: 1024px) {
.sparta-slider-slide {
width: calc(33.333% - 11px);
}
}
/* Article Card */
.sparta-article-card {
position: relative;
display: flex;
flex-direction: column;
background: var(--colorBgSecondary, #1e1e1e);
border-radius: 8px;
overflow: hidden;
transition: transform 0.2s, box-shadow 0.2s;
height: 100%;
}
.sparta-article-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.sparta-article-image {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
}
.sparta-article-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.sparta-article-meta {
position: absolute;
top: 12px;
right: 12px;
z-index: 1;
}
.sparta-article-badge {
padding: 6px 12px;
background: var(--colorAccent, #f03232);
color: white;
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
border-radius: 4px;
}
.sparta-article-details {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
}
.sparta-article-categories {
display: flex;
gap: 8px;
font-size: 0.75rem;
color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
text-transform: uppercase;
}
.sparta-article-title {
font-size: 1rem;
font-weight: 500;
line-height: 1.4;
margin: 0;
color: var(--colorTextPrimary, #ffffff);
}
.sparta-article-date {
font-size: 0.875rem;
color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
margin-top: auto;
}
/* ========================================
4. TEAM TABS & STATS STYLES
======================================== */
.sparta-team-container {
display: flex;
flex-direction: column;
gap: 2rem;
}
.sparta-tabs-container {
display: flex;
flex-direction: column;
flex: 1;
}
.sparta-tablist-wrapper {
position: relative;
display: flex;
align-items: center;
gap: 1.5rem;
margin-bottom: 2rem;
}
.sparta-tab-indicator {
position: absolute;
bottom: -2px;
height: 2px;
background: var(--colorAccent, #f03232);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.6, 1), width 0.3s;
z-index: 1;
}
.sparta-tablist {
display: flex;
gap: 1.5rem;
border-bottom: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
width: 100%;
}
.sparta-tab {
padding: 1rem 0;
font-size: 1rem;
font-weight: 500;
text-transform: uppercase;
background: none;
border: none;
color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
cursor: pointer;
transition: color 0.2s;
position: relative;
}
.sparta-tab:hover {
color: var(--colorTextPrimary, #ffffff);
}
.sparta-tab[aria-selected='true'] {
color: var(--colorTextPrimary, #ffffff);
}
.sparta-tab-content {
display: flex;
flex-direction: column;
gap: 2.5rem;
padding: 1.625rem 1.25rem;
background: var(--colorBgSecondary, #1e1e1e);
backdrop-filter: blur(60px);
}
@media screen and (min-width: 1024px) {
.sparta-tab-content {
flex-direction: row;
gap: 12px;
padding: 2.5rem;
}
}
.sparta-team-image {
width: 100%;
max-width: 544px;
height: auto;
border-radius: 8px;
}
@media screen and (min-width: 1024px) {
.sparta-team-image {
margin: -2.5rem 0 0 -2.5rem;
}
}
.sparta-team-actions {
display: flex;
flex-direction: column-reverse;
align-items: center;
gap: 16px;
margin-top: 1.5rem;
}
@media screen and (min-width: 1024px) {
.sparta-team-actions {
flex-direction: row;
justify-content: center;
padding-right: 2.5rem;
}
}
.sparta-team-actions button,
.sparta-team-actions a {
width: 100%;
}
@media screen and (min-width: 1024px) {
.sparta-team-actions button,
.sparta-team-actions a {
width: auto;
}
}
/* ========================================
5. PRODUCT SLIDER STYLES
======================================== */
.sparta-product-card {
display: flex;
flex-direction: column;
background: var(--colorBgSecondary, #1e1e1e);
border-radius: 8px;
overflow: hidden;
transition: transform 0.2s;
}
.sparta-product-card:hover {
transform: translateY(-4px);
}
.sparta-product-image {
width: 100%;
aspect-ratio: 1;
overflow: hidden;
background: var(--colorBgTertiary, #2e2e2e);
}
.sparta-product-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.sparta-product-details {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 12px;
}
.sparta-product-name {
font-size: 1rem;
font-weight: 500;
line-height: 1.4;
color: var(--colorTextPrimary, #ffffff);
}
.sparta-product-footer {
display: flex;
justify-content: space-between;
align-items: center;
}
.sparta-product-price {
font-size: 1.25rem;
font-weight: 500;
color: var(--colorAccent, #f03232);
}
.sparta-product-buy-button {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: transparent;
border: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
color: var(--colorTextPrimary, #ffffff);
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
}
.sparta-product-buy-button:hover {
background: var(--colorAccent, #f03232);
border-color: var(--colorAccent, #f03232);
}
/* ========================================
6. PARTNERS PYRAMID STYLES
======================================== */
.sparta-partners-section {
display: flex;
flex-direction: column;
gap: 3rem;
padding: 3rem 0;
background: var(--colorBgSecondary, #1e1e1e);
}
.sparta-pyramid-tier {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
flex-wrap: wrap;
}
.sparta-pyramid-top {
/* 1 partner - largest */
}
.sparta-pyramid-top .sparta-partner-logo {
width: 192px;
height: 128px;
}
.sparta-pyramid-mid {
/* 4 partners - medium */
}
.sparta-pyramid-mid .sparta-partner-logo {
width: 160px;
height: 128px;
}
.sparta-pyramid-bottom {
/* 8+ partners - smaller */
}
.sparta-pyramid-bottom .sparta-partner-logo {
width: 140px;
height: 100px;
}
.sparta-partner-logo {
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s, opacity 0.2s;
}
.sparta-partner-logo:hover {
transform: scale(1.1);
opacity: 0.8;
}
.sparta-partner-logo img {
width: 100%;
height: 100%;
object-fit: contain;
filter: grayscale(100%) brightness(200%);
transition: filter 0.2s;
}
.sparta-partner-logo:hover img {
filter: grayscale(0%) brightness(100%);
}
/* ========================================
7. FOOTER EXTENDED STYLES
======================================== */
.sparta-footer {
background: var(--colorBgPrimary, #0e0e0e);
border-top: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
}
.sparta-footer-content {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
padding: 3rem 1.25rem;
}
@media screen and (min-width: 768px) {
.sparta-footer-content {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (min-width: 1024px) {
.sparta-footer-content {
grid-template-columns: repeat(4, 1fr);
padding: 4rem 3.75rem;
}
}
.sparta-footer-column {
display: flex;
flex-direction: column;
gap: 1rem;
}
.sparta-footer-title {
font-size: 1rem;
font-weight: 500;
text-transform: uppercase;
color: var(--colorTextPrimary, #ffffff);
margin: 0 0 0.5rem 0;
}
.sparta-footer-links {
display: flex;
flex-direction: column;
gap: 0.5rem;
list-style: none;
padding: 0;
margin: 0;
}
.sparta-footer-link {
color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
text-decoration: none;
transition: color 0.2s;
font-size: 0.875rem;
}
.sparta-footer-link:hover {
color: var(--colorTextPrimary, #ffffff);
}
.sparta-footer-bottom {
padding: 2rem 1.25rem;
text-align: center;
border-top: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
color: var(--colorTextSecondary, rgba(255, 255, 255, 0.6));
font-size: 0.875rem;
}
/* ========================================
8. UTILITY CLASSES
======================================== */
.sparta-container {
width: 100%;
max-width: 1440px;
margin: 0 auto;
padding: 0 1.25rem;
}
@media screen and (min-width: 1024px) {
.sparta-container {
padding: 0 3.75rem;
}
}
.sparta-section {
padding: 2.5rem 0;
}
@media screen and (min-width: 1024px) {
.sparta-section {
padding: 4rem 0;
}
}
.sparta-button-primary {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
background: var(--colorAccent, #f03232);
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
font-weight: 500;
text-transform: uppercase;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
}
.sparta-button-primary:hover {
background: var(--colorAccentHover, #d02828);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(240, 50, 50, 0.4);
}
.sparta-button-secondary {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
background: transparent;
color: var(--colorTextPrimary, #ffffff);
border: 1px solid var(--colorBorder, rgba(255, 255, 255, 0.1));
border-radius: 4px;
font-size: 1rem;
font-weight: 500;
text-transform: uppercase;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
}
.sparta-button-secondary:hover {
background: var(--colorBgSecondary, #1e1e1e);
border-color: var(--colorAccent, #f03232);
}
.sparta-button-tertiary {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: transparent;
color: var(--colorTextPrimary, #ffffff);
border: none;
font-size: 0.875rem;
font-weight: 400;
cursor: pointer;
transition: color 0.2s;
text-decoration: none;
}
.sparta-button-tertiary:hover {
color: var(--colorAccent, #f03232);
}
+143
View File
@@ -0,0 +1,143 @@
/* Theme Variables */
:root {
/* Colors mapped from club theme with fallbacks */
--primary: var(--club-primary, #1e3a8a); /* blue-800 */
--primary-light: color-mix(in srgb, var(--primary) 85%, #ffffff);
--secondary: var(--club-secondary, #0ea5a4); /* teal-500 */
--accent: var(--club-accent, #2563eb); /* blue-600 */
--white: #ffffff;
--off-white: #f7fafc;
--light-gray: #e2e8f0;
--dark-gray: #4a5568;
--card-border: color-mix(in srgb, var(--primary) 12%, var(--light-gray));
--ring: color-mix(in srgb, var(--primary) 30%, transparent);
--bg-soft: color-mix(in srgb, var(--primary) 3%, #ffffff);
/* Dark mode colors */
--dark-bg: #1a1d25;
--dark-bg-elevated: #242831;
--dark-bg-card: #2d323d;
--dark-text: #e8eaf0;
--dark-text-muted: #9ca3af;
--dark-border: rgba(255, 255, 255, 0.12);
/* Spacing */
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 1.5rem;
--space-xl: 2rem;
/* Typography - These are overridden dynamically by useFontLoader */
--font-sans: 'Inter', -apple-system, sans-serif;
--font-heading: 'Inter', -apple-system, sans-serif;
--font-body: 'Inter', -apple-system, sans-serif;
}
/* Dark mode is controlled by Chakra UI (.chakra-ui-dark class) */
/* System preference (prefers-color-scheme) is intentionally not used */
/* Base Styles */
body {
font-family: var(--font-body, var(--font-sans));
line-height: 1.6;
margin: 0;
padding: 0;
}
/* Ensure dark mode applies to body without CSS var conflicts */
.chakra-ui-dark body {
background: #0f1115 !important;
color: #e8eaf0 !important;
}
/* Better text selection styling */
::selection {
background: var(--secondary);
color: var(--club-text-on-secondary, #111);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading) !important;
font-weight: 700;
margin: 0 0 var(--space-md) 0;
}
/* Layout */
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 var(--space-md);
}
/* Buttons */
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 4px;
font-weight: 600;
text-align: center;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
border: none;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-light);
transform: translateY(-2px);
box-shadow: 0 6px 18px var(--ring);
}
/* Cards */
.card {
border-radius: 8px;
overflow: hidden;
transition: transform 0.2s ease;
}
/* Dark mode for all elements - controlled by Chakra UI */
.chakra-ui-dark {
--bg-soft: #1a1f29;
--light-gray: rgba(255, 255, 255, 0.12);
--dark-gray: #a0aec0;
--card-border: rgba(255, 255, 255, 0.12);
--ring: rgba(255, 255, 255, 0.10);
}
.chakra-ui-dark .card {
background: var(--dark-bg-card);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
color: var(--dark-text);
}
.chakra-ui-dark h1,
.chakra-ui-dark h2,
.chakra-ui-dark h3,
.chakra-ui-dark h4,
.chakra-ui-dark h5,
.chakra-ui-dark h6 {
color: var(--dark-text);
}
.chakra-ui-dark .btn-primary {
background: var(--primary);
color: white;
}
.chakra-ui-dark ::selection {
background: var(--secondary);
color: var(--dark-text);
}
/* Responsive */
@media (max-width: 768px) {
.container {
padding: 0 var(--space-sm);
}
}