/* Base styles and reset */
.container {
    width: 100%;
    min-height: 100vh;
}

/* Header styles */
.header {
    background-color: var(--background);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

.header-subtitle {
    color: var(--muted-foreground);
}

/* Main content styles */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

/* Events grid */
.events-section {
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Event card styles */
.event-card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-header {
    padding: 1.5rem 1.5rem 1rem;
    flex-grow: 1;
}

.event-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.event-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

/* Match section styles */
.match-section {
    position: sticky;
    bottom: 2rem;
    max-width: 30rem;
    margin: 0 auto;
    border-radius: 20px;
}

.match-card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.match-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.match-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.match-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.match-content {
    padding: 1rem 1.5rem 1.5rem;
}

.match-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.submit-prompt-btn{
    position: absolute;
    bottom: 20%;
    right: 5%;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
}

textarea {
    width: 100%;
    height: 100%;
    min-height: 6rem;
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--input);
    background-color: var(--background);
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-shadow: 0 0 16px 1px #012d53a1;
}

textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgb(99 187 241 / 20%);
}

textarea::placeholder {
    color: var(--muted-foreground);
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--tsa-navy-blue);
    border-color: var(--tsa-navy-blue);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--secondary);
    border-color: var(--border);
}

.btn-full {
    width: 100%;
    padding: 0.75rem;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    max-width: 350px;
    width: calc(100% - 2rem);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 100;
    animation: slideIn 0.3s ease forwards;
    transform: translateX(100%);
    opacity: 0;
    display: none;
    /* Hidden by default, would be shown with JavaScript */
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
}

.toast-close:hover {
    color: var(--foreground);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Apply staggered animation to event cards */
/* .event-card:nth-child(1) {
  animation-delay: 0.1s;
}
.event-card:nth-child(2) {
  animation-delay: 0.2s;
}
.event-card:nth-child(3) {
  animation-delay: 0.3s;
}
.event-card:nth-child(4) {
  animation-delay: 0.4s;
}
.event-card:nth-child(5) {
  animation-delay: 0.5s;
} */