/**
 * Tournament Single Page Styles
 * 
 * @package UTime_Custom
 * @since 1.0.0
 */

/* ============================================
   Variables & Imports
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --utime-primary: #FF3B3B;
    --utime-secondary: #00BFFF;
    --utime-dark: #081b33;
    --utime-black: #000000;
    --utime-white: #ffffff;
    --utime-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
.utime-tournament-single {
    font-family: var(--utime-font);
    color: var(--utime-white);
    line-height: 1.6;
}

.utime-tournament-single * {
    box-sizing: border-box;
}

.tournament-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .tournament-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .tournament-container {
        padding: 0 2rem;
    }
}

/* ============================================
   Glassmorphism Effect
   ============================================ */
.glassmorphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
.tournament-hero {
    position: relative;
    min-height: 30vh;
    background: linear-gradient(to bottom, var(--utime-black), var(--utime-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse 4s ease-in-out infinite;
}

.hero-glow-red {
    top: -10%;
    left: 30%;
    width: 500px;
    height: 500px;
    background: rgba(255, 59, 59, 0.05);
}

.hero-glow-blue {
    bottom: -20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: rgba(0, 191, 255, 0.07);
    filter: blur(150px);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--utime-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.25rem;
    }
}

.hero-title .highlight {
    color: var(--utime-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 48rem;
    margin: 0 auto;
}

/* ============================================
   Tournament Info Section
   ============================================ */
.tournament-info {
    padding: 2rem 0;
    background: var(--utime-dark);
}

.tournament-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .tournament-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tournament Image */
.tournament-image-wrapper {
    position: relative;
}

.image-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(255, 59, 59, 0.2), rgba(0, 191, 255, 0.2));
    filter: blur(16px);
    border-radius: 1rem;
    opacity: 0.7;
}

.tournament-image {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
}

/* Tournament Details */
.tournament-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Individual info cards - no parent wrapper needed */
.info-card+.info-card {
    margin-top: 0.5rem;
}

/* Info Cards */
.info-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--utime-white);
    margin-bottom: 1rem;
    margin-top: 0;
}

.card-content {
    color: rgba(255, 255, 255, 0.8);
}

.card-content p {
    margin: 0.5rem 0;
}

.card-content .label {
    color: var(--utime-primary);
    font-weight: 600;
}

/* Description Content - Typography Styles */
.description-content {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Paragraphs */
.description-content p {
    margin: 0.75rem 0;
}

/* Bold */
.description-content strong,
.description-content b {
    font-weight: 700;
    color: var(--utime-white);
}

/* Italic */
.description-content em,
.description-content i {
    font-style: italic;
}

/* Links */
.description-content a {
    color: var(--utime-secondary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.description-content a:hover {
    color: var(--utime-primary);
}

/* Unordered Lists */
.description-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

/* Ordered Lists */
.description-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

/* List Items */
.description-content li {
    margin: 0.4rem 0;
    padding-left: 0.25rem;
}

/* Nested Lists */
.description-content ul ul,
.description-content ol ol,
.description-content ul ol,
.description-content ol ul {
    margin: 0.25rem 0;
}

/* Headings inside content (h3, h4, etc.) */
.description-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--utime-white);
    margin: 1rem 0 0.5rem;
}

.description-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--utime-white);
    margin: 0.75rem 0 0.5rem;
}

/* Blockquotes */
.description-content blockquote {
    border-left: 3px solid var(--utime-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* Code */
.description-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Horizontal Rule */
.description-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

/* ============================================
   CTA Buttons
   ============================================ */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--utime-primary);
    color: var(--utime-black);
}

.btn-primary:hover {
    background: rgba(255, 59, 59, 0.9);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--utime-secondary);
    color: var(--utime-black);
}

.btn-secondary:hover {
    background: rgba(0, 191, 255, 0.9);
    transform: translateY(-2px);
}

/* ============================================
   CTA Section
   ============================================ */
.tournament-cta {
    padding: 4rem 1rem;
    background: var(--utime-black);
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--utime-white);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-title .highlight {
    color: var(--utime-primary);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.tournament-cta .btn {
    padding: 1rem 2rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 639px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }
}