/* ============================================
   EVENTS (POKER) PAGE STYLES
   ============================================ */

/* HERO SECTION */
.events-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--gray-900);
}

.events-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.events-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 25, 23, 0.85) 0%, rgba(26, 25, 23, 0.4) 100%);
    z-index: 1;
}

.events-hero__content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    max-width: 1200px;
    padding: var(--space-16);
    padding-left: var(--space-8);
}

.events-hero__eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-crimson);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
}

.events-hero__title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.events-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-12);
    line-height: var(--leading-snug);
    font-weight: 400;
    max-width: 600px;
}

.events-hero__buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* UPCOMING EVENTS SECTION */
.events-upcoming {
    padding: var(--space-24) 0;
    background-color: var(--color-surface);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.event-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.event-card__image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: var(--gray-100);
}

.event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.event-card:hover .event-card__image img {
    transform: scale(1.05);
}

.event-card__badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background-color: var(--color-crimson);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    z-index: 2;
}

.event-card__content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    font-family: var(--font-heading);
}

.event-card__meta {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.event-card__description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
    flex-grow: 1;
}

.event-card__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.event-card__details span {
    display: flex;
    justify-content: space-between;
}

.event-card__details strong {
    color: var(--color-text-primary);
}

/* EVENT TYPES SECTION */
.events-types {
    padding: var(--space-24) 0;
    background-color: var(--gray-50);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.type-card {
    background-color: white;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.type-card__icon {
    font-size: 3rem;
    color: var(--color-crimson);
    margin-bottom: var(--space-4);
    display: inline-block;
}

.type-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    font-family: var(--font-heading);
}

.type-card__description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.type-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: left;
}

.type-card__features li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    padding-left: var(--space-4);
    position: relative;
}

.type-card__features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-crimson);
    font-weight: bold;
}

/* TOURNAMENT SCHEDULE SECTION */
.events-schedule {
    padding: var(--space-24) 0;
    background-color: var(--color-surface);
}

.schedule-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.schedule-month {
    background-color: white;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.schedule-month__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-crimson);
    margin-bottom: var(--space-6);
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: var(--space-4);
}

.schedule-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.schedule-item {
    padding: var(--space-4);
    background-color: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-crimson);
    transition: background-color var(--transition-fast);
}

.schedule-item:hover {
    background-color: var(--gray-100);
}

.schedule-item--featured {
    background: linear-gradient(135deg, rgba(181, 11, 29, 0.1) 0%, rgba(25, 25, 112, 0.1) 100%);
    border-left-color: var(--color-cobalt);
    font-weight: 600;
}

.schedule-item__date {
    display: block;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.schedule-item__type {
    display: block;
    color: var(--color-crimson);
    font-weight: 600;
    margin-bottom: var(--space-1);
    font-size: var(--text-sm);
}

.schedule-item__time {
    display: block;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

/* PRIZE POOLS SECTION */
.events-prizes {
    position: relative;
    padding: var(--space-24) 0;
    color: white;
    overflow: hidden;
}

.events-prizes__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.events-prizes__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-prizes__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(181, 11, 29, 0.8) 0%, rgba(25, 25, 112, 0.8) 100%);
    z-index: 1;
}

.events-prizes__title {
    color: white !important;
    position: relative;
    z-index: 2;
}

.events-prizes__subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    z-index: 2;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    position: relative;
    z-index: 2;
}

.prize-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    color: var(--color-text-primary);
}

.prize-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.prize-card__icon {
    font-size: 3rem;
    color: var(--color-crimson);
    margin-bottom: var(--space-4);
    display: inline-block;
}

.prize-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
}

.prize-card__amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-crimson);
    margin-bottom: var(--space-3);
}

.prize-card__description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* REGISTRATION SECTION */
.events-registration {
    padding: var(--space-24) 0;
    background-color: var(--gray-50);
}

.registration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

@media (max-width: 1024px) {
    .registration-content {
        grid-template-columns: 1fr;
    }
}

.registration-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.step {
    display: flex;
    gap: var(--space-6);
}

.step__number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-crimson);
    color: white;
    border-radius: 50%;
    font-size: var(--text-xl);
    font-weight: 700;
    font-family: var(--font-heading);
}

.step__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
}

.step__description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* REGISTRATION FORM */
.registration-form {
    background-color: white;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.registration-form__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
    font-family: var(--font-heading);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-3);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    display: block;
}

.form-label--inline {
    display: inline;
    margin-bottom: 0;
}

.form-label a {
    color: var(--color-crimson);
    text-decoration: none;
}

.form-label a:hover {
    text-decoration: underline;
}

.form-input {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-crimson);
    box-shadow: 0 0 0 3px rgba(181, 11, 29, 0.1);
}

.form-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-crimson);
    cursor: pointer;
}

.btn--full {
    width: 100%;
}

/* COMMUNITY SECTION */
.events-community {
    padding: var(--space-24) 0;
    background-color: var(--color-surface);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.community-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.community-card__image {
    overflow: hidden;
    height: 250px;
    background-color: var(--gray-100);
}

.community-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.community-card:hover .community-card__image img {
    transform: scale(1.05);
}

.community-card__content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.community-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    font-family: var(--font-heading);
}

.community-card__text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.community-card__link {
    display: inline-block;
    color: var(--color-crimson);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.community-card__link:hover {
    color: var(--color-cobalt);
}

/* CALL-TO-ACTION SECTION */
.events-cta {
    background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-cobalt) 100%);
    color: white;
    padding: var(--space-24) 0;
    text-align: center;
}

.events-cta__content {
    max-width: 900px;
    margin: 0 auto;
}

.events-cta__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-6);
    font-family: var(--font-heading);
}

.events-cta__text {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.events-cta__buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.events-cta .btn--primary {
    background-color: white;
    color: var(--color-crimson) !important;
}

.events-cta .btn--primary:hover {
    background-color: var(--gray-100);
}

.events-cta .btn--outline {
    border-color: white;
    color: white;
}

.events-cta .btn--outline:hover {
    background-color: white;
    color: var(--color-crimson);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .section-title {
        font-size: var(--text-3xl);
    }

    .events-hero__content {
        text-align: center;
        padding-left: var(--space-6);
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .registration-form {
        padding: var(--space-6);
    }

    .events-cta__title {
        font-size: var(--text-2xl);
    }
}

/* UTILITY CLASSES */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
