/**
 * Theme Name: CFS Theme
 * Description: Cage Fight Series child theme based on Blocksy
 * Author: CFS Development Team
 * Template: blocksy
 * Text Domain: cfs-theme
 * Version: 1.0
 */

/*--------------------------------------------------------------
# Dark Theme Base Styles
--------------------------------------------------------------*/
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d0d0d;
    color: #f9f9f9;
    line-height: 1.6;
}

.site {
    background-color: #0d0d0d;
}

/* Header Styling */
.site-header {
    text-align: center;
    padding: 3rem 1rem 1.5rem;
    background: linear-gradient(145deg, #1f1f1f, #2b2b2b);
    border-bottom: 2px solid #ff1e1e;
}

.site-title {
    font-size: 3rem;
    margin: 0;
    color: #ff1e1e;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

.site-description {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #ccc;
}

/* Navigation */
.main-navigation {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-navigation li {
    margin: 0 1rem;
}

.main-navigation a {
    display: block;
    padding: 1rem;
    color: #f9f9f9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #ff1e1e;
    background-color: #2a2a2a;
}

/* Content Area */
.site-main {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Homepage content container - constrain width for better readability */
.homepage-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Medium screen adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .homepage-content-container {
        max-width: 900px;
        padding: 0 1.5rem;
    }
    
    .homepage-section .section-title {
        margin: 0 -1.5rem 2rem -1.5rem;
    }
}

/* Large screen refinements */
@media (min-width: 1400px) {
    .homepage-content-container {
        max-width: 1400px;
    }
}

/* Links */
a {
    color: #ff1e1e;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #ff4444;
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: #ff1e1e;
}

/* Flag Icons */
.fi {
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.5em;
    display: inline-block;
    vertical-align: middle;
}

/*--------------------------------------------------------------
# Fight Card Styling (Main Feature) - Exact draft.html match
--------------------------------------------------------------*/

/* Main container for fight cards - much wider to prevent name truncation */
#fight-card-main {
    max-width: 1600px; /* Wider container for fight cards */
    margin: 1rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Also support the draft.html ID for consistency */
#fight-card {
    max-width: 1600px; /* Wider container for fight cards */
    margin: 1rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fight {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    background: #181818;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    overflow: visible; /* Allow content to expand */
    transition: all 0.3s ease;
    flex-wrap: nowrap;
    cursor: pointer;
    position: relative;
    min-height: 180px; /* Reduced height when closed */
}

.fight:hover {
    transform: scale(1.01);
}

.fighter-image {
    width: 240px; /* Much wider for better proportions */
    height: 180px; /* Fixed height to match fight container */
    display: flex;
    align-items: stretch;
    flex-shrink: 0; /* Don't shrink */
    border-radius: 12px; /* Fully rounded corners */
    overflow: hidden; /* Ensure image stays within rounded borders */
    transition: all 0.4s ease; /* Smooth transition for expansion */
}

.fighter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    transition: all 0.4s ease;
}

/* When fight details are expanded, make images taller and zoom */
.fight.expanded .fighter-image {
    height: 400px !important; /* Much larger height when expanded */
    min-height: 400px !important; /* Ensure minimum height */
    max-height: 400px !important; /* Force exact height */
    transition: height 0.4s ease !important;
    display: flex !important;
    align-items: stretch !important;
}

.fight.expanded .fighter-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: scale(1.1) !important;
    /* Force the image to fill the full height */
    min-height: 400px !important;
    max-height: 400px !important;
    transition: all 0.4s ease !important;
    display: block !important;
}

/* Also adjust the fight container height when expanded */
.fight.expanded {
    min-height: 400px !important; /* Match the expanded image height */
    height: auto !important; /* Allow natural height expansion */
    transition: all 0.3s ease !important;
    border: 3px solid #ff1e1e !important; /* Debug indicator - more visible */
    align-items: flex-start !important; /* Prevent stretch conflicts */
}

/* Adjust the info section height when expanded */
.fight.expanded .info {
    min-height: 400px !important; /* Match expanded height */
    height: auto !important; /* Allow natural height */
    transition: all 0.3s ease !important;
}

.info {
    flex: 1;
    min-height: 180px; /* Match fight container height */
    display: flex;
    flex-direction: column;
    border-left: 2px solid #111;
    border-right: 2px solid #111;
}

.headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 2rem 3rem; /* Reduced vertical padding */
    flex: 1; /* Take up available space */
    min-height: 120px; /* Reduced height for closed state */
}

.headline .name {
    flex: 1;
    font-size: 1.4rem; /* Larger for better readability */
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.8rem; /* More gap between flag and name */
    min-width: 0;
    min-height: 60px; /* Reduced height for closed state */
    padding: 0 1.5rem; /* More horizontal padding for better spacing */
}

.headline .name div {
    /* Allow names to wrap naturally for better readability */
    min-width: 0;
    flex: 1;
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 200px; /* Reasonable max width */
}

/* Fighter name links */
.fighter-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fighter-link:hover {
    color: #ff1e1e;
    text-decoration: none;
}

.headline .name.right {
    flex-direction: row-reverse; /* Flag comes after name for right fighter */
}

.headline .vs {
    color: #ff1e1e;
    font-weight: bold;
    font-size: 2.2rem; /* Larger to match wider layout */
    flex: 0 0 auto;
    margin: 0 2rem; /* More spacing */
    min-width: 60px;
}

.bout-info {
    text-align: center;
    font-size: 1.05rem; /* Slightly larger */
    color: #aaa;
    padding: 0 3rem 1.5rem 3rem; /* Reduced bottom padding */
    flex-shrink: 0; /* Don't shrink */
    min-height: 35px; /* Reduced height */
}

.details {
    display: none;
    justify-content: space-between;
    gap: 2rem; /* More gap between fighter blocks */
    padding: 2rem 3rem; /* More horizontal padding */
    background-color: #141414;
    border-top: 1px solid #333;
    width: 100%;
    box-sizing: border-box;
    height: 180px; /* Larger fixed height for all expanded details */
    align-items: flex-start; /* Align content to top */
}

.fighter-block {
    flex: 1;
    height: 100%; /* Take full height of details container */
    display: flex;
    flex-direction: column;
}

.fighter-block:first-child {
    text-align: left;
}

.fighter-block:last-child {
    text-align: right;
}

.fighter-block h3 {
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0; /* Don't shrink the title */
}

.fighter-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #bbb;
    font-size: 0.9rem;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.country {
    font-size: 2rem !important; /* Much larger flags */
    margin-top: 0.3rem;
    line-height: 1;
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'Android Emoji', 'EmojiOne Color', sans-serif !important; /* Ensure emoji support */
    font-feature-settings: 'liga' off !important; /* Prevent ligature issues */
    font-variant-emoji: emoji !important; /* Force emoji rendering */
    -webkit-font-feature-settings: 'liga' off !important;
    -moz-font-feature-settings: 'liga' off !important;
    text-rendering: optimizeLegibility !important;
    font-synthesis: none !important; /* Prevent synthetic font generation */
    font-style: normal !important;
    font-weight: normal !important;
}

/* Responsive adjustments for better name display */
@media (max-width: 1400px) {
    #fight-card-main, #fight-card {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .fighter-image {
        width: 200px;
        height: 200px; /* Fixed height */
        border-radius: 12px;
        overflow: hidden;
    }
    
    .fighter-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .fight.expanded .fighter-image {
        height: 350px !important; /* Larger on medium screens when expanded */
        min-height: 350px !important;
        max-height: 350px !important;
        transition: height 0.4s ease !important;
        display: flex !important;
        align-items: stretch !important;
    }
    
    .fight.expanded .fighter-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        transform: scale(1.15) !important;
        min-height: 350px !important;
        max-height: 350px !important;
        transition: all 0.4s ease !important;
        display: block !important;
    }
    
    .info {
        min-height: 200px;
    }
    
    .fight {
        min-height: 200px;
    }
    
    .fight.expanded {
        min-height: 350px !important; /* Match expanded image height */
        height: auto !important;
        align-items: flex-start !important;
    }
    
    .fight.expanded .info {
        min-height: 350px !important;
        height: auto !important;
    }
    
    .headline {
        min-height: 120px;
        padding: 2.5rem 2rem;
    }
    
    .headline .name {
        min-height: 60px;
        font-size: 1.3rem;
        gap: 0.6rem;
    }
    
    .headline .vs {
        font-size: 2rem;
        margin: 0 1.5rem;
    }
    
    .country {
        font-size: 1.8rem !important;
        font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'Android Emoji', 'EmojiOne Color', sans-serif !important;
        font-feature-settings: 'liga' off !important;
        font-variant-emoji: emoji !important;
        font-style: normal !important;
        font-weight: normal !important;
    }
}

@media (max-width: 768px) {
    #fight-card-main, #fight-card {
        padding: 0 1rem;
    }
    
    .fighter-image {
        width: 160px;
        height: 180px; /* Fixed height */
        border-radius: 12px;
        overflow: hidden;
    }
    
    .fighter-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .fight.expanded .fighter-image {
        height: 300px !important; /* Larger on small screens when expanded */
        min-height: 300px !important;
        max-height: 300px !important;
        transition: height 0.4s ease !important;
        display: flex !important;
        align-items: stretch !important;
    }
    
    .fight.expanded .fighter-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        transform: scale(1.15) !important;
        min-height: 300px !important;
        max-height: 300px !important;
        transition: all 0.4s ease !important;
        display: block !important;
    }
    
    .info {
        min-height: 180px;
    }
    
    .fight {
        min-height: 180px;
    }
    
    .fight.expanded {
        min-height: 300px !important; /* Match expanded image height */
        height: auto !important;
        align-items: flex-start !important;
    }
    
    .fight.expanded .info {
        min-height: 300px !important;
        height: auto !important;
    }
    
    .headline {
        min-height: 100px;
        padding: 2rem 1.5rem;
    }
    
    .headline .name {
        min-height: 50px;
        font-size: 1.2rem;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .headline .vs {
        font-size: 1.8rem;
        margin: 0 1rem;
    }
    
    .country {
        font-size: 1.6rem !important;
        font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'Android Emoji', 'EmojiOne Color', sans-serif !important;
        font-feature-settings: 'liga' off !important;
        font-variant-emoji: emoji !important;
        font-style: normal !important;
        font-weight: normal !important;
    }
    
    .bout-info {
        padding: 0 2rem 2rem 2rem;
        font-size: 1rem;
    }
    
    .details {
        padding: 2rem 2rem;
        gap: 1.5rem;
    }
}

/*--------------------------------------------------------------
# Single Fighter Page - UFC Style Redesign
--------------------------------------------------------------*/

/* Fighter Hero Section */
.fighter-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.fighter-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.fighter-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.3);
}

.fighter-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(255, 30, 30, 0.2));
    z-index: 2;
}

.fighter-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.fighter-hero-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.fighter-hero-text {
    flex: 1;
    color: #fff;
}

.fighter-country-flag {
    margin-bottom: 1rem;
}

.country-flag-large {
    font-size: 4rem !important;
    line-height: 1;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'Android Emoji', 'EmojiOne Color', sans-serif !important;
    font-feature-settings: 'liga' off !important;
    font-variant-emoji: emoji !important;
    font-style: normal !important;
    font-weight: normal !important;
}

.fighter-name {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    hyphens: auto;
}

.fighter-nickname {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: #ff1e1e;
    margin-top: 0.5rem;
}

.fighter-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.fighter-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weight-badge {
    background: #4CAF50;
    color: #fff;
}

.status-badge {
    background: #2196F3;
    color: #fff;
}

.status-champion {
    background: #ffd700 !important;
    color: #000 !important;
}

.level-badge {
    background: #9C27B0;
    color: #fff;
}

.fighter-record {
    margin-top: 2rem;
}

.record-numbers {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff1e1e;
}

.record-label {
    font-size: 1.2rem;
    color: #ccc;
    margin-left: 0.5rem;
}

.record-source {
    display: block;
    margin-top: 0.5rem;
    color: #4CAF50;
    font-size: 0.9rem;
}

.fighter-hero-image {
    flex: 0 0 300px;
    height: 400px;
    position: relative;
}

.fighter-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid #ff1e1e;
    box-shadow: 0 0 30px rgba(255, 30, 30, 0.4);
}

/* Fighter Stats Section */
.fighter-stats-section {
    background: #111;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.fighter-stats-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.fighter-bio-stats {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.section-title {
    color: #ff1e1e;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

.bio-content {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* External Links */
.fighter-external-links {
    margin-top: 3rem;
}

.fighter-external-links h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.external-links-grid {
    display: flex;
    gap: 1rem;
}

.external-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.external-link:hover {
    background: #ff1e1e;
    border-color: #ff1e1e;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.link-icon {
    font-size: 1.2rem;
}

.link-text {
    font-weight: 600;
}

.link-arrow {
    margin-left: auto;
    font-size: 1.2rem;
}

/* Quick Stats Grid */
.stats-grid {
    display: grid;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 3px solid #ff1e1e;
}

.stat-label {
    color: #999;
    font-weight: 600;
}

.stat-value {
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-flag-small {
    font-size: 1.2rem !important;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'Android Emoji', 'EmojiOne Color', sans-serif !important;
    font-feature-settings: 'liga' off !important;
    font-variant-emoji: emoji !important;
    font-style: normal !important;
    font-weight: normal !important;
}

/* Performance Stats */
.fighter-performance-stats {
    background: #0a0a0a;
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #333;
}

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

.performance-card {
    text-align: center;
    padding: 2rem 1rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-5px);
    border-color: #ff1e1e;
}

.performance-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ff1e1e;
    margin-bottom: 0.5rem;
}

.performance-label {
    color: #ccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fight History Section */
.fighter-fight-history-section {
    background: #0d0d0d;
    padding: 4rem 0;
}

.fight-history-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.subsection-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-title {
    color: #4CAF50;
}

.past-title {
    color: #ccc;
}

.fights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.modern-fight-card {
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-fight-card:hover {
    transform: translateY(-5px);
    border-color: #ff1e1e;
    box-shadow: 0 10px 30px rgba(255, 30, 30, 0.2);
}

.upcoming-fight {
    border-left: 4px solid #4CAF50;
}

.past-fight {
    border-left: 4px solid #666;
}

.fight-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #222;
    border-bottom: 1px solid #333;
}

.fight-date {
    color: #ff1e1e;
    font-weight: 600;
    font-size: 0.9rem;
}

.title-fight-badge {
    background: linear-gradient(145deg, #ffd700, #ffb300);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.fight-result-badge {
    background: #ff1e1e;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

.fight-card-content {
    padding: 1.5rem;
}

.event-name {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.event-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-name a:hover {
    color: #ff1e1e;
}

.fight-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.location-icon {
    opacity: 0.7;
}

.opponent-matchup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vs-label {
    color: #ff1e1e;
    font-weight: bold;
    font-size: 0.9rem;
}

.opponent-name {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.opponent-name:hover {
    color: #ff1e1e;
}

.fight-details-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fight-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weight-tag {
    background: #4CAF50;
    color: #fff;
}

.type-tag {
    background: #2196F3;
    color: #fff;
}

.no-fights-message {
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
    padding: 3rem;
}

/* Responsive Design for Fighter Page */
@media (max-width: 1024px) {
    .fighter-hero-info {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .fighter-hero-image {
        flex: 0 0 250px;
        height: 300px;
    }
    
    .fighter-name {
        font-size: 2.5rem;
    }
    
    .fighter-bio-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .performance-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fighter-hero {
        min-height: 50vh;
    }
    
    .fighter-name {
        font-size: 2rem;
    }
    
    .fighter-nickname {
        font-size: 1.5rem;
    }
    
    .country-flag-large {
        font-size: 3rem;
    }
    
    .fighter-hero-image {
        flex: 0 0 200px;
        height: 250px;
    }
    
    .external-links-grid {
        flex-direction: column;
    }
    
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fighter-name {
        font-size: 1.8rem;
    }
    
    .record-numbers {
        font-size: 2rem;
    }
    
    .performance-number {
        font-size: 2rem;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/*--------------------------------------------------------------
# Archive Fighter Page
--------------------------------------------------------------*/
.fighters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fighter-card {
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.fighter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 30, 30, 0.2);
}

.fighter-card-image {
    height: 200px;
    overflow: hidden;
}

.fighter-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fighter-card:hover .fighter-card-image img {
    transform: scale(1.05);
}

.fighter-card-details {
    padding: 1.5rem;
}

.fighter-card-name {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.fighter-card-nickname {
    color: #ff1e1e;
    font-style: italic;
    margin-bottom: 1rem;
}

.fighter-card-stats {
    color: #aaa;
    font-size: 0.9rem;
}

.fighter-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 600;
}

.fighter-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
}

.fighter-country {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.fighter-country .fi {
    font-size: 1rem;
}

.fighter-status {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.fighter-status-active {
    background-color: #4CAF50;
    color: #fff;
}

.fighter-status-inactive {
    background-color: #666;
    color: #ccc;
}

.fighter-status-champion {
    background-color: #ffd700;
    color: #000;
}

.record-source {
    color: #4CAF50;
    font-weight: normal;
    margin-left: 0.5rem;
}

/*--------------------------------------------------------------
# Single Fight Card Page
--------------------------------------------------------------*/
.fight-card-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 1rem 1.5rem;
    background: linear-gradient(145deg, #1f1f1f, #2b2b2b);
    border-bottom: 2px solid #ff1e1e;
}

.fight-card-title {
    font-size: 3rem;
    margin: 0;
    color: #ff1e1e;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

.fight-card-subtitle {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #ccc;
}

.single-fight-card .entry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem;
    background: linear-gradient(145deg, #1f1f1f, #2b2b2b);
    border-radius: 12px;
    border-bottom: 3px solid #ff1e1e;
}

.single-fight-card .entry-title {
    color: #ff1e1e;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.single-fight-card .event-details {
    margin-top: 1rem;
    font-size: 1.3rem;
    color: #ccc;
}

.single-fight-card .event-details .event-date,
.single-fight-card .event-details .event-location {
    margin: 0 1.5rem;
    display: inline-block;
}

/* Fight Card Main Layout */
#fight-card-main {
    max-width: 1600px;
    margin: 1rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fight-card-section {
    margin-top: 3rem;
}

.fight-card-section h2 {
    background: linear-gradient(145deg, #1f1f1f, #2b2b2b);
    color: #ff1e1e;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.matchup-card {
    display: flex;
    align-items: stretch;
    background: #181818;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.matchup-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 30, 30, 0.2);
}

.matchup-fighters {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.matchup-fighters .fighter {
    flex: 1;
    text-align: center;
    color: #fff;
}

.matchup-fighters .fighter a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.matchup-fighters .fighter a:hover {
    color: #ff1e1e;
}

.matchup-fighters .vs {
    margin: 0 2rem;
    font-weight: bold;
    color: #ff1e1e;
    font-size: 2rem;
}

.matchup-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 2rem;
    background: #141414;
    border-left: 1px solid #333;
    min-width: 250px;
}

.matchup-details span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.matchup-details .fight-type {
    font-weight: bold;
    color: #ff1e1e;
    text-transform: uppercase;
}

.matchup-details .title-fight {
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
}

.matchup-details .result {
    color: #4CAF50;
    font-weight: bold;
}

/*--------------------------------------------------------------
# Archive Fight Card Page
--------------------------------------------------------------*/
.fight-cards-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.fight-card-list-item {
    display: flex;
    align-items: center;
    background: #181818;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.fight-card-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(255, 30, 30, 0.2);
}

.fight-card-list-image {
    margin-right: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.fight-card-list-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.fight-card-list-details h3 {
    margin-top: 0;
    color: #ff1e1e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.fight-card-list-details .event-date,
.fight-card-list-details .event-location {
    display: block;
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/*--------------------------------------------------------------
# Homepage
--------------------------------------------------------------*/
.homepage-section {
    margin-bottom: 4rem;
}

/* Section titles span full width with background bars */
.homepage-section .section-title {
    background: linear-gradient(145deg, #1f1f1f, #2b2b2b);
    color: #ff1e1e;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 -2rem 2rem -2rem; /* Extend beyond container */
    text-align: center;
    font-size: 2rem;
}

.featured-fight-card {
    display: block;
    position: relative;
    text-align: center;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.featured-fight-card:hover {
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 30, 30, 0.3);
}

.featured-fight-card .featured-fight-card-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-fight-card .featured-fight-card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 3rem 2rem 2rem;
}

.featured-fight-card .featured-fight-card-details h3 {
    margin-top: 0;
    font-size: 2.5rem;
    color: #ff1e1e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-summary-card {
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.news-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 30, 30, 0.2);
}

.news-summary-card .news-summary-image {
    height: 200px;
    overflow: hidden;
}

.news-summary-card .news-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-summary-card:hover .news-summary-image img {
    transform: scale(1.05);
}

.news-summary-card .news-summary-details {
    padding: 1.5rem;
}

.news-summary-card .news-summary-details h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.news-summary-card .entry-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.news-summary-card .entry-summary {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #1e1e1e;
    border-top: 2px solid #ff1e1e;
    color: #999;
    margin-top: 4rem;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    /* Adjust homepage container for mobile */
    .homepage-content-container {
        padding: 0 1rem;
    }
    
    .homepage-section .section-title {
        margin: 0 -1rem 2rem -1rem; /* Adjust for mobile padding */
        padding: 1rem;
        font-size: 1.6rem;
    }
    
    .fight {
        flex-direction: column;
    }
    
    .fighter-image {
        width: 100%;
        height: 200px;
    }
    
    .headline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .headline .name {
        font-size: 1.2rem;
    }
    
    .headline .vs {
        font-size: 1.5rem;
    }
    
    .matchup-card {
        flex-direction: column;
    }
    
    .matchup-fighters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .matchup-details {
        border-left: none;
        border-top: 1px solid #333;
        min-width: auto;
    }
    
    .single-fighter .post-thumbnail {
        float: none;
        width: 100%;
        margin: 0 0 2rem 0;
    }
    
    .fight-card-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .fight-card-list-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .fighters-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/*--------------------------------------------------------------
# Filter Styles
--------------------------------------------------------------*/
.fighter-filters,
.fight-card-filters {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(145deg, #181818, #1f1f1f);
    border-radius: 8px;
    border: 1px solid #333;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #f9f9f9;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.5rem;
    background-color: #2b2b2b;
    color: #f9f9f9;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-group select:focus {
    outline: none;
    border-color: #ff1e1e;
    box-shadow: 0 0 0 2px rgba(255, 30, 30, 0.2);
}

.filter-button,
.reset-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    margin-right: 0.5rem;
}

.filter-button {
    background-color: #ff1e1e;
    color: #fff;
}

.filter-button:hover {
    background-color: #ff4444;
    transform: translateY(-1px);
}

.reset-button {
    background-color: #555;
    color: #f9f9f9;
}

.reset-button:hover {
    background-color: #666;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-group:last-child {
        margin-top: 1rem;
    }
    
    .filter-button,
    .reset-button {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 0 0.5rem;
    }
    
    .single-fighter .entry-title,
    .single-fight-card .entry-title {
        font-size: 2rem;
    }
    
    .featured-fight-card .featured-fight-card-details h3 {
        font-size: 1.8rem;
    }
    
    .matchup-fighters {
        font-size: 1.2rem;
    }
    
    .fighters-grid {
        grid-template-columns: 1fr;
    }
    
    .fighter-fight-history .fights-list {
        flex-direction: column;
    }
    
    .fight-card-item .fight-header {
        text-align: left;
    }
    
    .fight-card-item .fight-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .fight-card-item .matchup-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/*--------------------------------------------------------------
# Fighter Fight History
--------------------------------------------------------------*/
.fighter-fight-history {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border-radius: 12px;
    border-left: 4px solid #ff1e1e;
}

.fighter-fight-history h2 {
    color: #ff1e1e;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

.fighter-fight-history h3 {
    color: #f9f9f9;
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-fights h3 {
    color: #4CAF50;
}

.past-fights h3 {
    color: #ccc;
}

.fights-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fight-card-item {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.fight-card-item:hover {
    border-color: #ff1e1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 30, 30, 0.1);
}

.upcoming-fight {
    border-left: 4px solid #4CAF50;
}

.past-fight {
    border-left: 4px solid #666;
}

.fight-header {
    margin-bottom: 1rem;
}

.fight-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fight-header h4 a {
    color: #f9f9f9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fight-header h4 a:hover {
    color: #ff1e1e;
}

.title-fight-badge {
    background: linear-gradient(145deg, #ffd700, #ffb300);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
}

.fight-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #ccc;
}

.fight-date {
    color: #ff1e1e;
    font-weight: 600;
}

.fight-location {
    position: relative;
}

.fight-location:before {
    content: "📍";
    margin-right: 0.5rem;
}

.matchup-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #404040;
    padding-top: 1rem;
}

.opponent-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.opponent-info strong {
    color: #ff1e1e;
    font-size: 1.2rem;
}

.opponent-info a {
    color: #f9f9f9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.opponent-info a:hover {
    color: #ff1e1e;
}

.fight-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.fight-details span {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weight-division {
    background-color: #4CAF50;
    color: #fff;
}

.fight-type {
    background-color: #2196F3;
    color: #fff;
}

.fight-result {
    background-color: #ff1e1e;
    color: #fff;
    font-weight: bold;
}

/* Empty state */
.fighter-fight-history p:last-child {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 2rem 0;
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Shortcode Styles
--------------------------------------------------------------*/

/* Upcoming Event Shortcode */
.cfs-upcoming-event {
    margin: 2rem 0;
}

.cfs-upcoming-event .homepage-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Past Events Shortcode */
.cfs-past-events {
    margin: 2rem 0;
}

.past-events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.past-event-item {
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.past-event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 30, 30, 0.2);
}

.past-events-list .past-event-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.past-events-grid .past-event-item {
    flex-direction: column;
}

.past-event-image {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.past-events-list .past-event-image {
    width: 200px;
    height: 150px;
    margin-right: 2rem;
}

.past-events-grid .past-event-image {
    width: 100%;
    height: 200px;
}

.past-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.past-event-item:hover .past-event-image img {
    transform: scale(1.05);
}

.past-event-content {
    flex: 1;
}

.past-events-grid .past-event-content {
    padding: 1.5rem;
}

.past-event-content h3 {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 1.3rem;
}

.past-event-content h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.past-event-content h3 a:hover {
    color: #ff1e1e;
}

.past-event-date {
    color: #ff1e1e;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.past-event-location {
    color: #aaa;
    margin-bottom: 1rem;
}

.past-event-location:before {
    content: "📍 ";
    margin-right: 0.5rem;
}

.past-event-excerpt {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive adjustments for shortcodes */
@media (max-width: 768px) {
    .cfs-upcoming-event .homepage-content-container {
        padding: 0 1rem;
    }
    
    .past-events-list .past-event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .past-events-list .past-event-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .past-events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}