/* ===== CSS Variables - UFC-Inspired Dark Theme ===== */
:root {
    /* Dark theme - UFC inspired */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-surface: #1e1e1e;

    /* Text colors */
    --text-white: #ffffff;
    --text-light: #e5e5e5;
    --text-muted: #888888;
    --text-dark: #0a0a0a;

    /* Accent colors - Bold red/gold like UFC */
    --accent-red: #d20a0a;
    --accent-red-hover: #ff1a1a;
    --accent-red-dark: #8b0000;
    --accent-gold: #c9a227;
    --accent-gold-light: #e6c84a;

    /* Submission type colors */
    --choke-color: #d20a0a;
    --joint-lock-color: #2563eb;
    --leg-lock-color: #7c3aed;
    --compression-color: #ea580c;

    /* Borders */
    --border-dark: #2a2a2a;
    --border-light: #3a3a3a;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.6);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 20px rgba(210, 10, 10, 0.3);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Oswald', sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header - Bold UFC Style ===== */
header {
    background: var(--bg-darker);
    border-bottom: 3px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    background: var(--accent-red);
    color: white;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    letter-spacing: 2px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 0;
}

nav a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

nav a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.05);
}

nav a.active {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}

nav svg {
    width: 18px;
    height: 18px;
}

/* ===== Hero - Dramatic and Bold ===== */
.hero {
    background: linear-gradient(135deg, var(--bg-darker) 0%, #1a0a0a 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(210, 10, 10, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    min-width: 100px;
}

.hero-stat:hover {
    border-color: var(--accent-gold);
    background: rgba(201, 162, 39, 0.1);
}

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Hero variants */
.hero-fighters {
    background: linear-gradient(135deg, var(--bg-darker) 0%, #0a0a1a 100%);
}

.hero-fighters::before {
    background: radial-gradient(ellipse at center top, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.hero-competitions {
    background: linear-gradient(135deg, var(--bg-darker) 0%, #1a1a0a 100%);
}

.hero-competitions::before {
    background: radial-gradient(ellipse at center top, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
}

/* ===== Main Content ===== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.detail-main {
    max-width: 900px;
}

/* ===== Filters Section ===== */
.filters-section {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-dark);
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filters-title svg {
    width: 18px;
    height: 18px;
    color: var(--accent-red);
}

.clear-btn {
    font-size: 0.8rem;
    color: var(--accent-red);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    color: var(--accent-red-hover);
    background: rgba(210, 10, 10, 0.1);
}

.filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    flex: 1 1 150px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group.search-group {
    flex: 2 1 280px;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group input,
.filter-group select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg-darker);
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.filter-group input::placeholder {
    color: var(--text-muted);
}

.filter-group input:hover,
.filter-group select:hover {
    border-color: var(--border-light);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(210, 10, 10, 0.2);
}

.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ===== Type Legend ===== */
.type-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Type Badges ===== */
.type-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.type-badge.choke {
    background: rgba(210, 10, 10, 0.2);
    color: #ff4444;
    border: 1px solid rgba(210, 10, 10, 0.4);
}

.type-badge.joint_lock {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.type-badge.leg_lock {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.4);
}

.type-badge.compression {
    background: rgba(234, 88, 12, 0.2);
    color: #fb923c;
    border: 1px solid rgba(234, 88, 12, 0.4);
}

/* ===== Results Header ===== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.results-count strong {
    color: var(--text-white);
    font-weight: 700;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.control-group select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--bg-darker);
    color: var(--text-light);
    cursor: pointer;
}

/* ===== Submissions Grid ===== */
.submissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.submission-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-dark);
}

.submission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-red);
}

.card-header {
    padding: 1.25rem 1.5rem;
    position: relative;
    border-bottom: 3px solid transparent;
}

.card-header.choke {
    background: linear-gradient(135deg, rgba(210, 10, 10, 0.15) 0%, rgba(139, 0, 0, 0.1) 100%);
    border-bottom-color: var(--choke-color);
}

.card-header.joint_lock {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-bottom-color: var(--joint-lock-color);
}

.card-header.leg_lock {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(91, 33, 182, 0.1) 100%);
    border-bottom-color: var(--leg-lock-color);
}

.card-header.compression {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.15) 0%, rgba(194, 65, 12, 0.1) 100%);
    border-bottom-color: var(--compression-color);
}

.card-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-darker);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.submission-card:hover .card-rank {
    background: var(--accent-gold);
    color: var(--bg-darker);
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
    padding-right: 3.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-aliases {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.position-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-surface);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.position-tag:hover {
    background: var(--accent-red);
    color: var(--text-white);
    border-color: var(--accent-red);
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Gi/No-Gi Badges ===== */
.gi-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gi-badge.no-gi {
    background: var(--accent-red);
    color: white;
}

.gi-badge.gi {
    background: var(--joint-lock-color);
    color: white;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
}

.pagination button {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-dark);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.pagination button.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    font-weight: 700;
}

.pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-muted);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent-red);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.breadcrumb a:hover {
    background: rgba(210, 10, 10, 0.1);
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-muted);
}

/* ===== Detail Pages ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.back-link:hover {
    color: var(--accent-red-hover);
}

.submission-detail,
.fighter-detail {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-dark);
}

.submission-header,
.fighter-profile-header {
    padding: 2.5rem;
    position: relative;
}

.submission-header.choke {
    background: linear-gradient(135deg, rgba(210, 10, 10, 0.2) 0%, var(--bg-card) 100%);
    border-bottom: 4px solid var(--choke-color);
}

.submission-header.joint_lock {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, var(--bg-card) 100%);
    border-bottom: 4px solid var(--joint-lock-color);
}

.submission-header.leg_lock {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, var(--bg-card) 100%);
    border-bottom: 4px solid var(--leg-lock-color);
}

.submission-header.compression {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.2) 0%, var(--bg-card) 100%);
    border-bottom: 4px solid var(--compression-color);
}

.rank-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--bg-darker);
    border: 2px solid var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-gold);
}

.header-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-white);
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.aliases {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.header-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.header-stats .stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submission-body,
.fighter-body {
    padding: 2.5rem;
}

.position-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.position-tags .position-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-dark);
    transition: all var(--transition-fast);
}

.position-tags .position-tag:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.section {
    margin-bottom: 2.5rem;
}

.section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== Videos Grid ===== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.video-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.video-card:hover {
    border-color: var(--accent-red);
    background: var(--bg-card-hover);
}

.video-thumbnail {
    width: 120px;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform var(--transition-base);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.08);
}

.video-thumbnail .play-overlay {
    width: 32px;
    height: 32px;
    color: white;
    background: rgba(210, 10, 10, 0.8);
    border-radius: 50%;
    padding: 8px;
    position: relative;
    z-index: 1;
}

.video-info h4 {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* ===== Fighters List ===== */
.fighters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fighter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.fighter-chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-red);
}

.fighter-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
}

.fighter-nickname {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fighter-wins {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    background: rgba(201, 162, 39, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* ===== Related Submissions ===== */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.related-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-red);
}

.related-name {
    font-weight: 600;
    color: var(--text-white);
}

/* ===== View Toggle ===== */
.view-toggle {
    display: flex;
    gap: 0.25rem;
}

.view-toggle button {
    padding: 0.5rem;
    border: 1px solid var(--border-dark);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--text-muted);
}

.view-toggle button:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.view-toggle button.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* ===== Fighters Grid ===== */
.fighters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ===== Fighters List View ===== */
.fighters-list-view {
    width: 100%;
}

.fighters-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.table-header {
    display: grid;
    grid-template-columns: 60px 1fr 180px 70px 70px 80px 90px;
    padding: 1rem 1.5rem;
    background: var(--bg-darker);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-red);
}

.table-row {
    display: grid;
    grid-template-columns: 60px 1fr 180px 70px 70px 80px 90px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    align-items: center;
    transition: background var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.table-row:hover {
    background: var(--bg-surface);
}

.table-row:last-child {
    border-bottom: none;
}

.col-rank {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1rem;
}

.col-name {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.col-name strong {
    font-size: 0.95rem;
    color: var(--text-white);
}

.col-name em {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.col-team {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.col-wins,
.col-subs {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-light);
}

.col-rate {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-red);
    text-align: center;
}

.col-status {
    text-align: center;
}

/* ===== Fighter Card ===== */
.fighter-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-dark);
    min-height: 220px;
}

.fighter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-red);
}

.fighter-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.fighter-avatar,
.fighter-avatar-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.fighter-avatar-large {
    width: 100px;
    height: 100px;
    font-size: 2rem;
}

.fighter-image,
.fighter-image-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 2px solid var(--border-dark);
}

.fighter-image img,
.fighter-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fighter-image-large {
    width: 100px;
    height: 100px;
    border: 3px solid var(--accent-red);
}

.fighter-info {
    flex: 1;
}

.fighter-info h3 {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.fighter-info .nickname {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.fighter-info .team {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

.status-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-badge.retired {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.fighter-stats {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: 1rem;
}

.fighter-stats .stat {
    flex: 1;
    text-align: center;
}

.fighter-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.fighter-stats .stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signature-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.sub-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-surface);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
}

/* ===== Fighter Detail Page ===== */
.fighter-profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(210, 10, 10, 0.1) 0%, var(--bg-card) 100%);
    border-bottom: 4px solid var(--accent-red);
}

.profile-info h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: 2px;
}

.profile-info .nickname {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-red);
}

.record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.record-item {
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-dark);
}

.record-item.wins {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.record-item.losses {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.record-item.submissions {
    border-color: var(--accent-gold);
    background: rgba(201, 162, 39, 0.1);
}

.record-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-white);
}

.record-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Notable Wins/Losses */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.result-item:hover {
    background: var(--bg-card-hover);
}

.result-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.result-indicator.win {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.result-indicator.loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.result-details {
    flex: 1;
    min-width: 0;
}

.result-opponent {
    font-weight: 600;
    color: var(--text-white);
    display: block;
}

.result-event {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-method {
    text-align: right;
}

.method-text {
    font-weight: 500;
    color: var(--text-light);
    display: block;
}

.method-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.result-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 45px;
    text-align: right;
}

/* Championships */
.championships-list {
    list-style: none;
}

.championships-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-light);
}

.championships-list li:last-child {
    border-bottom: none;
}

.championships-list svg {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.signature-card {
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.signature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-red);
}

.signature-card h4 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1rem;
    color: var(--text-white);
}

.signature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Competitions Page ===== */
.competitions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.competition-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-dark);
    transition: all var(--transition-base);
}

.competition-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
}

.competition-header {
    margin-bottom: 1.5rem;
}

.comp-type-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comp-type-badge.no-gi {
    background: var(--accent-red);
    color: white;
}

.comp-type-badge.gi {
    background: var(--accent-gold);
    color: var(--bg-darker);
}

.competition-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comp-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.comp-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comp-meta svg {
    width: 16px;
    height: 16px;
    color: var(--accent-red);
}

.comp-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Competition Champions Grid */
.champions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.champion-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.champion-card:hover {
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
}

.champion-weight {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.champion-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-white);
    text-transform: uppercase;
}

.matches-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-dark);
}

.matches-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    align-items: center;
    font-size: 0.9rem;
}

.match-weight {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.match-fighters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.match-fighters .winner {
    font-weight: 700;
    color: var(--accent-gold);
}

.match-fighters .vs {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.match-result {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.match-result a {
    color: var(--accent-red);
    font-weight: 500;
}

.match-result a:hover {
    text-decoration: underline;
}

/* ===== Empty & Loading States ===== */
.empty-state,
.loading,
.error {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    grid-column: 1 / -1;
}

.empty-state h3,
.error h2 {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.empty-state p,
.error p,
.loading {
    color: var(--text-muted);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-darker);
    border-top: 3px solid var(--accent-red);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
        height: 60px;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    main {
        padding: 1.5rem;
    }

    .filters-section {
        padding: 1.25rem;
    }

    .filters-grid .filter-group {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .filters-grid .filter-group.search-group {
        flex: 1 1 100%;
    }

    .submissions-grid,
    .fighters-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .fighter-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .match-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* List view responsive */
    .table-header {
        display: none;
    }

    .table-row {
        grid-template-columns: 40px 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.25rem 0.75rem;
        padding: 1rem;
    }

    .col-rank {
        grid-row: 1 / 3;
        align-self: center;
    }

    .col-name {
        grid-column: 2;
        grid-row: 1;
    }

    .col-team {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.8rem;
    }

    .col-wins,
    .col-subs,
    .col-rate {
        display: none;
    }

    .col-status {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
    }

    .result-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .result-method {
        text-align: left;
        flex-basis: 100%;
        padding-left: 44px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Accessibility ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-red);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 1001;
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 0%, var(--border-dark) 50%, var(--bg-surface) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Image loading - only hide images using lazy-load pipeline */
img[data-src] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img[data-src].loaded {
    opacity: 1;
}

/* ===== Navigation Dropdown ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-darker);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-bottom: none;
    margin-bottom: 0;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.dropdown-menu a.active {
    color: var(--accent-gold);
    background: rgba(201, 162, 39, 0.1);
}

/* Keyboard accessibility - focus-within */
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Focus styles for dropdown items */
.dropdown-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    outline: none;
}

/* Mobile hamburger button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Dropdown toggle button reset */
.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.5rem 1.5rem;
}

.dropdown-toggle:hover {
    color: var(--text-white);
}

.dropdown-toggle.active {
    color: var(--accent-red);
}

/* Mobile responsive nav */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    header nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        border-bottom: 3px solid var(--accent-red);
        z-index: 999;
    }

    header nav.open {
        display: flex;
    }

    header nav > a,
    header nav .nav-dropdown {
        border-bottom: 1px solid var(--border-dark);
    }

    header nav > a {
        padding: 1rem 1.5rem;
        margin-bottom: 0;
        border-bottom-color: transparent;
    }

    .nav-dropdown .dropdown-toggle {
        width: 100%;
        padding: 1rem 1.5rem;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-radius: 0;
        border: none;
        background: var(--bg-dark);
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding-left: 2.5rem;
    }
}
