/* 
 Theme Name:   Wushu
 Theme URI:    
 Description:  Asia Look
 Author:       merlin
 Author URI:   
 Template:     state-of-mind
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/
/*
Theme Name: WUSHU Child Theme Styles
Theme URI: https://wushu.wkfworld.com
Description: Custom styles for WUSHU Subdomain - Sanda Ranking & Events
Author: Jarvis (Refactored 2026-05-21)
Template: Wushu
Version: 1.0.0

NOTE: These styles are appended to the existing theme CSS.
DO NOT replace the entire file - only add these styles at the end!
*/

/* ==========================================================================
   Ranking Container & Layout
   ========================================================================== */

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

/* ==========================================================================
   Gallery Toggle & Title
   ========================================================================== */

.gallery-toggle {
    text-align: center;
    margin: 1rem 0;
}

.gallery-toggle a {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #0073aa;
}

.gallery-toggle a:hover {
    text-decoration: underline;
}

.ranking-title {
    text-align: center;
    margin: 1.5rem 0;
}

.ranking-title h2 {
    color: #333;
    margin: 0.5rem 0 0;
}

/* ==========================================================================
   Gallery View Controls
   ========================================================================== */

.gallery-controls {
    text-align: center;
    margin: 1rem 0;
}

.gallery-controls h3 {
    margin: 1rem 0;
}

.gallery-controls a {
    color: #0073aa;
    text-decoration: none;
    margin: 0 0.5rem;
}

.gallery-controls a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Gallery Table
   ========================================================================== */

.gallery-table {
    margin: 2rem auto;
    border-collapse: collapse;
}

.gallery-table td {
    text-align: center;
    vertical-align: bottom;
    padding: 0.5rem;
}

.gallery-table img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
}

/* ==========================================================================
   Weight Class Navigation
   ========================================================================== */

.weight-class-nav {
    text-align: center;
    margin: 0.5rem 0;
}

.weight-class-nav a {
    display: inline-block;
    margin: 0.1rem 0.3rem;
    padding: 0;
    background: transparent;
    border: none;
    color: #0073aa;
    text-decoration: none;
}

.weight-class-nav a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.weight-class-title {
    color: #ff0000;
    margin: 1.5rem 0 0.5rem;
    text-align: center;
}

/* ==========================================================================
   Champion Tables
   ========================================================================== */

.champion-table {
    margin: 0.5rem 0 1.5rem;
    border-collapse: collapse;
}

.champion-table td {
    padding: 0.25rem 0.5rem;
    border: none;
}

/* ==========================================================================
   Ranking Table
   ========================================================================== */

.ranking-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0 2rem;
}

.ranking-table th {
    background-color: #FFFFB0;
    padding: 0.5rem;
    text-align: left;
    font-weight: bold;
}

.ranking-table td {
    padding: 0.35rem 0.5rem;
    border: none;
}

.ranking-table .ranking-platz {
    white-space: nowrap;
    width: 6%;
}

/* Alternate row colors */
.ranking-table tr:nth-child(even) {
    background-color: #c0c0c0;
}

.ranking-table tr:nth-child(odd) {
    background-color: #ffffff;
}

/* ==========================================================================
   Photo Thumbnails (EXACTLY like Austria-Boxing!)
   ========================================================================== */

.ranking-table .thumbnail {
    position: relative;
    cursor: pointer;
}

.ranking-table .thumbnail span {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #e5e5e5;
    border: 1px solid #666;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 500;
    white-space: nowrap;
}

.ranking-table .thumbnail:hover span {
    display: block;
}

.ranking-table .thumbnail span img {
    display: block;
    margin-bottom: 0.25rem;
    max-width: none;  /* Originalgröße vom Server! */
}

.ranking-table .thumbnail span strong {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: black;
    font-weight: bold;
}

/* ==========================================================================
   Flags
   ========================================================================== */

.flag {
    display: inline-block;
    max-width: 24px;
    height: auto;
    vertical-align: middle;
}

/* ==========================================================================
   Error Messages
   ========================================================================== */

.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* ==========================================================================
   Responsive Design (Mobile)
   ========================================================================== */

@media (max-width: 768px) {
    .ranking-container {
        padding: 0.5rem;
    }
    
    .gallery-table {
        font-size: 0.875rem;
    }
    
    .ranking-table {
        font-size: 0.75rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.25rem 0.3rem;
    }
    
    .weight-class-nav a {
        display: block;
        margin: 0.3rem 0;
    }
    
    .gallery-controls h3 {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .gallery-toggle,
    .gallery-controls,
    .weight-class-nav {
        display: none;
    }
    
    .ranking-table {
        font-size: 8pt;
    }
    
    .thumbnail span {
        display: none !important;
    }
}
