/* Notice Box */
.notice-box {
    background: #fff3cd;
    border-left: 4px solid var(--color-accent-alt);
    padding: 1.5rem;
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
}

.notice-box p {
    color: #856404;
    margin: 0;
    font-weight: 500;
}

/* Tournament Table Container */
.tournament-table-container {
    overflow-x: auto;
    margin-top: var(--spacing-md);
}

/* Tournament Table - Benchmark Style */
.tournament-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.tournament-table thead {
    background: var(--color-text-primary);
}

.tournament-table th {
    color: var(--color-bg-primary);
    padding: 0.9rem 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sortable columns */
.tournament-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

@media (hover: hover) {
    .tournament-table th.sortable:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.tournament-table th.sortable::after {
    content: '⇅';
    margin-left: 0.5rem;
    opacity: 0.5;
    font-size: 0.9rem;
}

.tournament-table th.sortable.sorted-asc::after {
    content: '↑';
    opacity: 1;
    color: var(--color-accent-alt);
}

.tournament-table th.sortable.sorted-desc::after {
    content: '↓';
    opacity: 1;
    color: var(--color-accent-alt);
}

.tournament-table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
}

/* Club logo in table */
.club-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border-radius: 50%;
}

.tournament-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.tournament-table tbody tr:last-child td {
    border-bottom: none;
}

.tournament-table td:first-child {
    font-weight: 600;
}

.tournament-table td:nth-child(2) {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Club name and contact icons */
.club-name {
    display: block;
}

.contact-icons {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.4rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.contact-icon:hover {
    color: #711517;
    transform: scale(1.15);
}

/* Footnote */
.footnote {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: var(--spacing-md);
}

/* Info Sections */
.info-section {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin: var(--spacing-md) 0;
}

.info-section h3 {
    color: var(--color-text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-accent-alt);
    padding-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
}

.info-section p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Documents Section */
.documents-section {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin: var(--spacing-md) 0;
}

.documents-section h3 {
    color: var(--color-text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-accent-alt);
    padding-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.document-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--color-bg-primary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.document-link:hover {
    border-color: var(--color-accent-alt);
    background: var(--color-bg-secondary);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-icon {
    width: 40px;
    height: 40px;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-title {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.document-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Mobile/Desktop column headers */
.th-mobile {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .th-full {
        display: none;
    }
    .th-mobile {
        display: inline;
    }

    /* Full width table on mobile */
    .tournament-table-container {
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        width: calc(100% + 2 * var(--spacing-md));
    }

    .tournament-table {
        font-size: 0.85rem;
        border-radius: var(--radius-lg);
    }

    .tournament-table th,
    .tournament-table td {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
        text-align: left;
    }

    .club-suffix {
        display: none;
    }

    /* Daty column - more left padding */
    .tournament-table th:first-child,
    .tournament-table td:first-child {
        padding-left: 1.5rem;
    }

    /* HCP column - narrower */
    .tournament-table th:last-child,
    .tournament-table td:last-child {
        padding-left: 0.25rem;
        padding-right: 0.5rem;
        white-space: nowrap;
    }

    .club-logo {
        width: 24px;
        height: 24px;
    }

    .info-section,
    .documents-section {
        padding: var(--spacing-sm);
    }

    .notice-box p {
        font-size: 0.8rem;
    }

    .benefit-section {
        margin-top: var(--spacing-lg);
    }
}

/* Tighter table on narrow phones */
@media (max-width: 480px) {
    .tournament-table th,
    .tournament-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }

    .tournament-table th:first-child,
    .tournament-table td:first-child {
        padding-left: 0.75rem;
        white-space: nowrap;
    }

    .club-logo {
        width: 20px;
        height: 20px;
    }
}
