/*
Theme Name: TrueCage Canada - MMA Information Portal 2025/26
Author: PBN Creative
Description: Brutal MMA portal with octagon aesthetics, red-black-gold palette, and fight-focused design.
Version: 1.0.0
*/

:root {
    /* TrueCage MMA Palette */
    --primary: #E3000F;        /* UFC Red */
    --secondary: #D4AF37;      /* Championship Gold */
    --accent: #FF4444;         /* Blood Red */
    --bg-main: #0a0a0a;
    --bg-elevated: #151515;
    --bg-cage: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #999999;
    --cage-glow: rgba(227, 0, 15, 0.5);
    
    --container-width: 1400px;
    --content-width: 820px;
    --transition: all 0.3s ease;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', 'Barlow Condensed', 'Roboto Condensed', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Header - Cage Style */
.site-header {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-main) 100%);
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 5px 20px rgba(227, 0, 15, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-main);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo::before {
    content: '🥊';
    font-size: 2.2rem;
}

.logo span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 3.5rem;
}

.main-nav a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::before {
    width: 100%;
}

/* Hero - Fight Night */
.hero-cage {
    padding: 10rem 0 8rem;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.hero-cage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--cage-glow) 0%, transparent 70%);
    opacity: 0.3;
}

.hero-cage-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-cage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

.hero-cage h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-cage h1 span {
    color: var(--primary);
    display: block;
}

.hero-cage p {
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-vs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 5rem;
}

.hero-fighter {
    text-align: center;
}

.hero-fighter-name {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-fighter-record {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
}

.hero-vs-divider {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
}

/* Sections */
.section-cage {
    padding: 8rem 0;
}

.section-title-cage {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title-cage span {
    color: var(--primary);
}

.section-subtitle-cage {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 6rem;
    max-width: 700px;
}

/* Weight Divisions - Octagon Cards */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.division-card {
    background: var(--bg-elevated);
    padding: 3rem 2rem;
    text-align: center;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    border: 2px solid var(--primary);
    position: relative;
    transition: var(--transition);
}

.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.division-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--cage-glow);
}

.division-card:hover::before {
    opacity: 0.2;
}

.division-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.division-name {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.division-weight {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Fighting Styles Grid */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.style-card {
    background: var(--bg-cage);
    padding: 3.5rem 2.5rem;
    text-align: center;
    border: 3px solid var(--primary);
    border-top-width: 8px;
    position: relative;
    transition: var(--transition);
}

.style-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    opacity: 0.1;
    transition: var(--transition);
}

.style-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
}

.style-card:hover::after {
    width: 100%;
}

.style-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.style-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.style-card p {
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Fight Cards Timeline */
.fight-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fight-card-item {
    background: var(--bg-elevated);
    padding: 3rem;
    border-left: 6px solid var(--primary);
    display: grid;
    grid-template-columns: 150px 1fr 1fr 150px;
    gap: 3rem;
    align-items: center;
    transition: var(--transition);
}

.fight-card-item:hover {
    background: var(--bg-cage);
    transform: translateX(10px);
    box-shadow: -5px 0 20px var(--cage-glow);
}

.fight-date {
    text-align: center;
}

.fight-date-day {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.fight-date-month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.fighter-info {
    text-align: center;
}

.fighter-name {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.fighter-record {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 700;
}

.fight-vs {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

.fight-location {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Posts Grid - Fight Reports */
.posts-cage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.post-cage-card {
    background: var(--bg-elevated);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.post-cage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.post-cage-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--cage-glow);
}

.post-cage-thumb {
    height: 260px;
    overflow: hidden;
    background: var(--bg-cage);
    position: relative;
}

.post-cage-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-cage-card:hover .post-cage-thumb img {
    transform: scale(1.1);
}

.post-cage-content {
    padding: 2.5rem;
}

.post-cage-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--primary);
    background: rgba(227, 0, 15, 0.1);
    padding: 0.4rem 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.post-cage-content h3 {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.post-cage-link {
    font-weight: 900;
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-cage-link::after {
    content: '→';
}

.post-cage-link:hover {
    color: var(--secondary);
}

/* CTA Button */
.cta-cage {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 1.5rem 4rem;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.cta-cage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--secondary);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
}

.cta-cage:hover::before {
    width: 400px;
    height: 400px;
}

.cta-cage:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 30px var(--cage-glow);
}

.cta-cage span {
    position: relative;
    z-index: 2;
}

/* Single Post */
.single-cage-header {
    padding: 11rem 0 5rem;
    background: var(--bg-elevated);
    border-top: 6px solid var(--primary);
    text-align: center;
}

.single-cage-cat {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--primary);
    background: rgba(227, 0, 15, 0.1);
    padding: 0.6rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
    clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%);
}

.single-cage-header h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.05;
    text-transform: uppercase;
}

.single-cage-content {
    padding: 7rem 0;
}

.single-cage-body {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

.single-cage-body h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin: 5rem 0 2rem;
    color: var(--text-main);
    text-transform: uppercase;
    border-left: 6px solid var(--primary);
    padding-left: 2rem;
}

.single-cage-body p {
    margin-bottom: 1.8rem;
    color: var(--text-muted);
}

/* MMA Lists */
.single-cage-body ul {
    margin: 4rem 0;
    padding: 0;
    list-style: none;
}

.single-cage-body li {
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    background: var(--bg-elevated);
    border-left: 5px solid var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.single-cage-body li:hover {
    background: var(--bg-cage);
    border-left-color: var(--secondary);
    transform: translateX(10px);
}

.single-cage-body li::before {
    content: '🥊';
    margin-right: 1rem;
}

/* Footer - Cage Floor */
.site-footer-cage {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-elevated) 100%);
    padding: 7rem 0 3rem;
    border-top: 6px solid var(--primary);
    position: relative;
}

.site-footer-cage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.footer-cage-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-cage-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-cage-logo::before {
    content: '🥊';
    font-size: 2.5rem;
}

.footer-cage-logo span {
    color: var(--primary);
}

.footer-cage-desc {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 480px;
}

.footer-cage-title {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--secondary);
}

.footer-cage-links a {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-cage-links a:hover {
    color: var(--primary);
}

.footer-cage-contact p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-cage-bottom {
    padding-top: 3.5rem;
    border-top: 2px solid rgba(227, 0, 15, 0.3);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pagination */
.pagination-container {
    margin-top: 7rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
}

.pagination-list a, .pagination-list span {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 2px solid var(--primary);
    font-weight: 900;
    color: var(--text-main);
    transition: var(--transition);
}

.pagination-list a:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.pagination-list .is-active span {
    background: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .divisions-grid, .styles-grid, .posts-cage-grid, .footer-cage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fight-card-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-vs {
        flex-direction: column;
        gap: 2rem;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .divisions-grid, .styles-grid, .posts-cage-grid {
        grid-template-columns: 1fr;
    }
}
