/**
 * Tournaments Shortcode Styles
 * 
 * @package UTime_Custom
 * @since 1.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   Variables
   ============================================ */
: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;
}

/* ============================================
   Grid Container
   ============================================ */
.utime-tournaments-grid {
    font-family: var(--utime-font);
    padding: 2rem 0;
}

.tournaments-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .tournaments-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .tournaments-container {
        padding: 0 2rem;
    }
}

/* ============================================
   Grid Layout
   ============================================ */
.tournaments-grid {
    display: grid;
    gap: 1.5rem;
}

/* Column variations */
.tournaments-grid.columns-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.tournaments-grid.columns-2 {
    grid-template-columns: repeat(1, 1fr);
}

.tournaments-grid.columns-3 {
    grid-template-columns: repeat(1, 1fr);
}

.tournaments-grid.columns-4 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {

    .tournaments-grid.columns-2,
    .tournaments-grid.columns-3,
    .tournaments-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tournaments-grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .tournaments-grid.columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .tournaments-grid.columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Tournament Card
   ============================================ */
.tournament-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tournament-card:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.tournament-card.glassmorphism {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ============================================
   Card Header - Day Badge
   ============================================ */
.card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.day-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* ============================================
   Tournament Name
   ============================================ */
.tournament-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--utime-white);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

/* ============================================
   Tournament Description
   ============================================ */
.tournament-description {
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Typography inside description */
.tournament-description p {
    margin: 0.5rem 0;
}

.tournament-description strong,
.tournament-description b {
    font-weight: 600;
    color: var(--utime-white);
}

.tournament-description em,
.tournament-description i {
    font-style: italic;
}

.tournament-description a {
    color: var(--utime-secondary);
    text-decoration: underline;
}

.tournament-description a:hover {
    color: var(--utime-primary);
}

/* Lists */
.tournament-description ul,
.tournament-description ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.tournament-description ul {
    list-style-type: disc;
}

.tournament-description ol {
    list-style-type: decimal;
}

.tournament-description li {
    margin: 0.25rem 0;
    font-size: 0.8125rem;
}

/* Headings in description */
.tournament-description h2,
.tournament-description h3,
.tournament-description h4 {
    color: var(--utime-white);
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
}

.tournament-description h2 {
    font-size: 1rem;
}

.tournament-description h3 {
    font-size: 0.9375rem;
}

.tournament-description h4 {
    font-size: 0.875rem;
}

/* ============================================
   CTA Button
   ============================================ */
.tournament-cta-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--utime-primary);
    color: var(--utime-black);
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
    text-decoration: none;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.tournament-cta-btn:hover {
    background: rgba(255, 59, 59, 0.9);
    transform: translateY(-2px);
}

/* ============================================
   No Tournaments Message
   ============================================ */
.utime-no-tournaments {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    font-family: var(--utime-font);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 639px) {
    .tournament-name {
        font-size: 1.125rem;
    }

    .tournament-description {
        font-size: 0.8125rem;
    }

    .card-inner {
        padding: 1.25rem;
    }
}