/* Shared Tournament Hero Component */
/* This CSS supports both Details and RegistrationV2 pages */

/* Tournament Header Container */
.tournament-header {
    margin-bottom: 16px;
    position: relative;
}

/* Hero Section */
.tournament-hero {
    background: var(--bg-card, #1a1a1a);
    border-radius: 14px;
    overflow: hidden;
    height: 300px;
    position: relative;
}

.hero-content {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Tournament Info Section */
.tournament-dates {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.date-badge {
    background: rgba(184, 255, 60, 0.1);
    border: 1px solid var(--accent-green, #b8ff3c);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    min-width: 70px;
}

.date-badge .day-of-week {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted, #707070);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.date-badge .month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green, #b8ff3c);
    margin-bottom: 2px;
}

.date-badge .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    line-height: 1;
}

.date-separator {
    color: var(--text-muted, #707070);
    font-size: 20px;
    font-weight: 300;
}

.tournament-info {
    flex: 1;
    padding: 22px 26px 20px 26px;
    background-color: var(--primary-green);
}

.tournament-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.tournament-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-green, #b8ff3c);
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.tournament-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #b0b0b0);
    font-size: 14px;
}

.meta-item i {
    color: var(--accent-green, #b8ff3c);
    font-size: 14px;
}

/* Tags */
.tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    padding: 6px 14px;
    background: rgba(184, 255, 60, 0.1);
    border: 1px solid var(--accent-green, #b8ff3c);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-green, #b8ff3c);
    letter-spacing: 0.5px;
}

/* Hero Image */
.hero-image {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
}

.hero-glow {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(184, 255, 60, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Share Button */
.share-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

/* Info Bar / Tournament Details Bar */
.info-bar,
.tournament-details-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px;
    background: var(--bg-card, #1a1a1a);
    border-radius: 12px;
    margin-bottom: 24px;
}

.info-box,
.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-box i,
.detail-item i {
    font-size: 24px;
    color: var(--accent-green, #b8ff3c);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.label,
.detail-label {
    font-size: 12px;
    color: var(--text-muted, #707070);
    margin-bottom: 4px;
}

.value,
.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
}

/* Compatibility for Details page (hero-banner wrapper) */
.hero-banner {
    position: relative;
    background: var(--bg-card, #1a1a1a);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    height: 240px;
}

.hero-banner .hero-content {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    flex: 1;
    height: 100%;
    padding: 22px 26px 20px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-top-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.date-badges {
    display: flex;
    gap: 12px;
}

.title-info-section {
    flex: 1;
}

.title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-green, #b8ff3c);
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #b0b0b0);
    font-size: 14px;
}

.info-item i {
    color: var(--accent-green, #b8ff3c);
    font-size: 14px;
}

/* Skill Level Information Section */
.skill-level-section {
    background: #0d0d0d;
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
}

.skill-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-level-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-level-title i {
    color: var(--accent-green, #b8ff3c);
    font-size: 20px;
}

.skill-level-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0;
    letter-spacing: 0.5px;
}

.skill-level-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted, #707070);
}

.skill-level-note i {
    font-size: 14px;
}

.skill-level-subtitle {
    font-size: 13px;
    color: var(--text-muted, #707070);
    margin: 0 0 24px 0;
}

.skill-level-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.skill-level-table {
    width: 100%;
    border-collapse: collapse;
}

.skill-level-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #707070);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.skill-level-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-level-table tbody tr:last-child {
    border-bottom: none;
}

.skill-level-table tbody td {
    vertical-align: middle;
}

.td-gender .gender-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.gender-badge.gender-men {
    background: rgba(66, 153, 225, 0.1);
}

.gender-badge.gender-women {
    background: rgba(236, 72, 153, 0.1);
}

.gender-badge.gender-mixed {
    background: rgba(168, 85, 247, 0.1);
}

.gender-badge.gender-single {
    background: rgba(34, 197, 94, 0.1);
}

.gender-badge.gender-double {
    background: rgba(251, 191, 36, 0.1);
}

.gender-badge i {
    font-size: 16px;
}

.gender-badge.gender-men i {
    color: #4299e1;
}

.gender-badge.gender-women i {
    color: #ec4899;
}

.gender-badge.gender-mixed i {
    color: #a855f7;
}

.gender-badge.gender-single i {
    color: #22c55e;
}

.gender-badge.gender-double i {
    color: #fbbf24;
}

.gender-badge span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #ffffff);
}

.td-min .skill-value,
.td-max .skill-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green, #b8ff3c);
}

.td-flexible .flexible-yes,
.td-flexible .flexible-no {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.flexible-yes i {
    color: var(--accent-green, #b8ff3c);
    font-size: 16px;
    margin-bottom: 4px;
}

.flexible-yes span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #ffffff);
}

.flexible-yes small {
    font-size: 13px;
    color: var(--text-muted, #707070);
}

.flexible-no i {
    color: #ff4d4d;
    font-size: 16px;
}

.flexible-no span {
    font-size: 14px;
    color: var(--text-secondary, #b0b0b0);
}

.td-description .description-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary, #b0b0b0);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.td-description .description-line {
    display: block;
    line-height: 1.5;
}

.skill-level-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted, #707070);
}

.skill-level-footer i {
    color: var(--text-muted, #707070);
    font-size: 14px;
}

/* Registration page specific hero compaction */
.registration-v2-page .tournament-hero {
    height: auto;
    min-height: 290px;
}

.registration-v2-page .hero-content {
    display: grid;
    grid-template-columns: 45% 55%;
    grid-template-rows: minmax(290px, auto);
    align-items: stretch;
    gap: 0;
}

.registration-v2-page .tournament-info {
    grid-area: 1 / 2 / 2 / 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.registration-v2-page .tournament-title {
    font-size: 28px;
}

.registration-v2-page .tournament-subtitle {
    font-size: 12px;
    margin-bottom: 12px;
}

.registration-v2-page .tournament-dates {
    grid-area: 1 / 1 / 2 / 2;
    align-self: start;
    padding: 16px;
    position: relative;
    z-index: 3;
    margin-bottom: 0;
}

.registration-v2-page .date-badge {
    padding: 6px 10px;
    min-width: 56px;
}

.registration-v2-page .date-badge .day {
    font-size: 20px;
}

.registration-v2-page .meta-item {
    font-size: 12px;
    gap: 6px;
}

.registration-v2-page .meta-item i {
    font-size: 12px;
}

.registration-v2-page .hero-image {
    grid-area: 1 / 1 / 2 / 2;
    position: relative;
    z-index: 1;
    width: auto;
    height: 100%;
}

.registration-v2-page .hero-image img {
    object-fit: cover;
}

.registration-v2-page .skill-level-section {
    margin-top: 12px;
    flex: 1;
    padding: 12px;
    overflow: auto;
}

.registration-v2-page .skill-level-header {
    margin-bottom: 6px;
}

.registration-v2-page .skill-level-title h3 {
    font-size: 13px;
}

.registration-v2-page .skill-level-subtitle {
    margin-bottom: 8px;
    font-size: 11px;
}

.registration-v2-page .skill-level-table thead th,
.registration-v2-page .skill-level-table tbody td {
    padding: 6px 8px;
    font-size: 11px;
}

.registration-v2-page .td-min .skill-value,
.registration-v2-page .td-max .skill-value {
    font-size: 14px;
}

.registration-v2-page .skill-level-footer {
    padding: 8px;
    font-size: 11px;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .registration-v2-page .tournament-title {
        font-size: 24px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .registration-v2-page .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .registration-v2-page .tournament-dates,
    .registration-v2-page .tournament-info,
    .registration-v2-page .hero-image {
        grid-area: auto;
        position: static;
    }

    .registration-v2-page .tournament-info {
        padding: 20px;
    }

    .registration-v2-page .hero-image {
        min-height: 220px;
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .registration-v2-page .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .registration-v2-page .tournament-dates,
    .registration-v2-page .tournament-info,
    .registration-v2-page .hero-image {
        grid-area: auto;
        position: static;
    }

    .registration-v2-page .tournament-info {
        padding: 14px;
    }

    .registration-v2-page .hero-image {
        min-height: 200px;
        width: 100%;
    }

    .registration-v2-page .skill-level-footer {
        display: none;
    }
}

/* ============================================================
   Responsive - Tournament Hero
   ============================================================ */

@media (max-width: 1024px) {
    .tournament-hero {
        height: auto;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .tournament-hero {
        height: auto;
        min-height: unset;
        border-radius: 10px;
    }

    .hero-content {
        flex-direction: column;
    }

    .tournament-info {
        padding: 24px 20px 20px 20px;
        order: 1;
    }

    .tournament-dates {
        gap: 8px;
        margin-bottom: 14px;
    }

    .date-badge {
        padding: 6px 12px;
        min-width: 56px;
    }

    .date-badge .day {
        font-size: 20px;
    }

    .date-badge .month {
        font-size: 10px;
    }

    .tournament-title {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .tournament-subtitle {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .tournament-meta {
        gap: 12px;
    }

    .meta-item {
        font-size: 12px;
    }

    .tags {
        margin-top: 14px;
        gap: 8px;
    }

    .hero-image {
        order: 2;
        height: 180px;
        flex: none;
    }

    .share-btn {
        top: 12px;
        right: 12px;
    }

    /* Skill level section */
    .skill-level-section {
        padding: 20px 16px;
        margin-top: 16px;
        border-radius: 10px;
    }

    .skill-level-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .skill-level-title h3 {
        font-size: 14px;
    }

    .skill-level-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .skill-level-table thead th,
    .skill-level-table tbody td {
        padding: 10px 10px;
        font-size: 11px;
    }

    .gender-badge span {
        font-size: 12px;
    }

    .td-min .skill-value,
    .td-max .skill-value {
        font-size: 15px;
    }

    /* Info bar */
    .info-bar,
    .tournament-details-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .tournament-info {
        padding: 18px 14px 16px 14px;
    }

    .tournament-title {
        font-size: 18px;
    }

    .tournament-subtitle {
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .meta-item {
        font-size: 11px;
    }

    .tournament-dates {
        flex-wrap: wrap;
        gap: 6px;
    }

    .date-badge .day {
        font-size: 18px;
    }

    .hero-image {
        height: 140px;
    }

    .skill-level-section {
        padding: 16px 12px;
    }

    .skill-level-title h3 {
        font-size: 13px;
    }

    .td-min .skill-value,
    .td-max .skill-value {
        font-size: 14px;
    }

    .info-bar,
    .tournament-details-bar {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
    }

    .info-box i,
    .detail-item i {
        font-size: 18px;
    }
}
