/**
 * De Ganze Clubrecords Styles
 */

/* Container */
.deganze-clubrecords {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tabs */
.deganze-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.deganze-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    background: #f5f5f5;
    border-bottom: 2px solid #0073aa;
}

.deganze-tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    background: #f5f5f5;
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

.deganze-tab-btn:last-child {
    border-right: none;
}

.deganze-tab-btn:hover {
    background: #e5e5e5;
    color: #0073aa;
}

.deganze-tab-btn.active {
    background: #0073aa;
    color: #fff;
}

.deganze-tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.deganze-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Meta info */
.deganze-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.deganze-updated {
    text-align: right;
    color: #999;
    font-size: 12px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Table wrapper */
.deganze-table-wrapper {
    overflow-x: auto;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Table */
.deganze-records-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.deganze-records-table thead {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #fff;
}

.deganze-records-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deganze-records-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.deganze-records-table tbody tr:hover {
    background-color: #f9f9f9;
}

.deganze-records-table tbody tr:last-child {
    border-bottom: none;
}

.deganze-records-table td {
    padding: 12px 15px;
}

.deganze-time {
    font-weight: 600;
    color: #0073aa;
    font-family: "Courier New", monospace;
}

/* Zebra striping */
.deganze-records-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.deganze-records-table tbody tr:nth-child(even):hover {
    background-color: #f5f5f5;
}

/* Error message */
.deganze-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-left: 4px solid #c62828;
    border-radius: 4px;
    margin: 20px 0;
}

/* Headings in tabs */
.deganze-tab-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.deganze-tab-content h4 {
    color: #555;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .deganze-tab-buttons {
        flex-direction: column;
    }
    
    .deganze-tab-btn {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .deganze-tab-btn:last-child {
        border-bottom: none;
    }
    
    .deganze-hide-mobile {
        display: none;
    }
    
    .deganze-records-table {
        font-size: 12px;
    }
    
    .deganze-records-table th,
    .deganze-records-table td {
        padding: 8px 6px;
    }
    
    .deganze-tab-content {
        padding: 15px;
    }
    
    .deganze-tab-content h3 {
        font-size: 20px;
    }
    
    .deganze-tab-content h4 {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .deganze-records-table {
        font-size: 11px;
    }
    
    .deganze-records-table th,
    .deganze-records-table td {
        padding: 6px 4px;
    }
}

/* Print styles */
@media print {
    .deganze-tab-buttons {
        display: none;
    }
    
    .deganze-tab-content {
        display: block !important;
        page-break-after: always;
    }
    
    .deganze-hide-mobile {
        display: table-cell !important;
    }
}
