/**
 * PBC Tournament Manager - Public Styles
 */

/* Kategoriefilter */
.pbc-tournament-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pbc-filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pbc-filter-btn:hover {
    border-color: #0073aa;
    color: #0073aa;
    background: #f0f8ff;
}

.pbc-filter-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pbc-filter-btn.active:hover {
    background: #005a87;
    border-color: #005a87;
}

.pbc-filter-btn .category-count {
    font-size: 13px;
    opacity: 0.7;
    font-weight: 400;
}

.no-categories-message {
    padding: 10px;
    font-size: 14px;
}

/* Versteckte Elemente beim Filtern */
.pbc-tournament-card.hidden,
.pbc-tournament-list-item.hidden,
.pbc-tournament-compact-item.hidden {
    display: none;
}

/* Turnierliste - Grid View */
.pbc-tournament-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

/* Turnierliste - List View */
.pbc-tournament-list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

/* Turnierliste - Compact View */
.pbc-tournament-compact-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

.pbc-tournament-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.pbc-tournament-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tournament-card-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tournament-card-header h3 {
    margin: 0;
    font-size: 18px;
    flex: 1;
}

.tournament-card-header h3 a {
    text-decoration: none;
    color: #333;
}

/* Kategorie Badge */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: #0073aa;
    color: #fff;
}

.tournament-card-body {
    padding: 15px;
}

.tournament-thumbnail {
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: auto;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.tournament-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px;
    display: block;
}

.tournament-meta {
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.meta-item .dashicons {
    margin-right: 8px;
    color: #666;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.meta-item .meta-label {
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

.meta-item .meta-label::after {
    content: " ";
    white-space: pre;
}

.meta-item .meta-value {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.tournament-participants-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.participants-count {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.no-registration-required {
    padding: 5px 0;
    color: #666;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.open {
    background: #28a745;
    color: #fff;
}

.status-badge.few-spots {
    background: #ffc107;
    color: #000;
}

.status-badge.full {
    background: #dc3545;
    color: #fff;
}

.tournament-excerpt {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.tournament-card-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    text-align: center;
}

/* Anmeldeformular */
.pbc-tournament-registration-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.pbc-tournament-registration-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.registration-status {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.registration-status.registered {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.registration-status.waitlist {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.registration-status.closed {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.info-box {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box.waitlist-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.pbc-registration-form .form-group {
    margin-bottom: 15px;
}

.pbc-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.pbc-registration-form input[type="text"],
.pbc-registration-form input[type="email"],
.pbc-registration-form input[type="tel"],
.pbc-registration-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pbc-registration-form input[type="text"]:focus,
.pbc-registration-form input[type="email"]:focus,
.pbc-registration-form input[type="tel"]:focus,
.pbc-registration-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.pbc-registration-form input[disabled] {
    background: #f5f5f5;
    color: #666;
}

.form-actions {
    margin-top: 20px;
}

.form-messages {
    margin-top: 15px;
}

.form-messages .success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.form-messages .error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Buttons */
.button,
.button-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.button:hover,
.button-primary:hover {
    background: #005a87;
}

.pbc-unregister-button {
    background: #dc3545;
}

.pbc-unregister-button:hover {
    background: #c82333;
}

.button[disabled] {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Meine Turniere (Dashboard) */
.pbc-my-tournaments,
.pbc-my-waitlist {
    margin: 30px 0;
}

.pbc-my-tournaments h3,
.pbc-my-waitlist h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.my-tournament-item,
.waitlist-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.my-tournament-item h4,
.waitlist-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.my-tournament-item h4 a {
    text-decoration: none;
    color: #0073aa;
}

.tournament-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.info-item .dashicons {
    margin-right: 5px;
    color: #666;
}

.tournament-actions {
    margin-top: 10px;
}

/* Teilnehmerliste */
.pbc-participants-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.pbc-participants-list h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.pbc-participants-list ol {
    margin-left: 20px;
}

.pbc-participants-list li {
    margin-bottom: 8px;
    padding: 5px 0;
}

/* Loading State */
.pbc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pbc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Serienwertung */
.pbc-series-standings {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.pbc-series-standings h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.pbc-series-standings h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.series-standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.series-standings-table thead {
    background: #f8f9fa;
}

.series-standings-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.series-standings-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.series-standings-table tr:hover {
    background: #f8f9fa;
}

.series-standings-table .position {
    width: 80px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.series-standings-table .player-name {
    font-weight: 500;
}

.series-standings-table .tournaments {
    width: 120px;
    text-align: center;
}

.series-standings-table .points {
    width: 120px;
    text-align: center;
    color: #0073aa;
    font-size: 16px;
}

.series-tournaments {
    list-style: none;
    padding: 0;
    margin: 0;
}

.series-tournaments li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.series-tournaments li:last-child {
    border-bottom: none;
}

.series-tournaments a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
}

.series-tournaments a:hover {
    text-decoration: underline;
}

/* Turnierliste - List Item */
.pbc-tournament-list-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.pbc-tournament-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tournament-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    gap: 15px;
}

.tournament-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.tournament-title-section h3 {
    margin: 0;
    font-size: 18px;
}

.tournament-title-section h3 a {
    text-decoration: none;
    color: #333;
}

.tournament-title-section h3 a:hover {
    color: #0073aa;
}

.tournament-actions-section {
    flex-shrink: 0;
}

.tournament-list-body {
    padding: 15px 20px;
}

.tournament-meta-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.tournament-meta-compact .meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.tournament-meta-compact .meta-item.participants {
    margin-left: auto;
}

/* Turnierliste - Compact Item */
.pbc-tournament-compact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
}

.pbc-tournament-compact-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-color: #0073aa;
}

.compact-date-section {
    flex-shrink: 0;
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-box.no-date {
    background: #6c757d;
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.date-year {
    font-size: 10px;
    opacity: 0.9;
}

.date-icon {
    font-size: 28px;
}

.compact-content-section {
    flex: 1;
    min-width: 0;
}

.compact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.compact-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.compact-header h4 a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.compact-header h4 a:hover {
    color: #0073aa;
}

.compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.compact-meta > span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.compact-meta .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.compact-meta .status-badge {
    font-size: 10px;
    padding: 2px 8px;
}

.compact-action-section {
    flex-shrink: 0;
}

.button-compact {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
}

/* Kontrolliere Theme-Featured-Image bei Turnieren - Sehr spezifisch für Bard Theme */
body.single-pbc_tournament .post-thumbnail,
body.single-pbc_tournament .entry-media,
body.single-pbc_tournament .featured-image,
body.single-pbc_tournament .entry-header .post-thumbnail,
body.single-pbc_tournament article .post-thumbnail {
    text-align: center !important;
    margin-bottom: 25px !important;
    max-height: 400px !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.single-pbc_tournament .post-thumbnail img,
body.single-pbc_tournament .entry-media img,
body.single-pbc_tournament .featured-image img,
body.single-pbc_tournament img.wp-post-image,
body.single-pbc_tournament article img.wp-post-image,
body.single-pbc_tournament .entry-header img,
body.single-pbc_tournament article > img,
body.single-pbc_tournament img.attachment-bard-full-thumbnail,
body.single-pbc_tournament img.size-bard-full-thumbnail,
body.single-pbc_tournament .post-thumbnail img[class*="attachment-"] {
    width: auto !important;
    height: auto !important;
    max-height: 400px !important;
    max-width: 100% !important;
    min-height: auto !important;
    min-width: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Einzelturnieranzeige */
.pbc-single-tournament-wrapper {
    margin: 30px 0 30px 0;
}

.pbc-single-tournament {
    background: transparent;
}

/* Abstand zwischen Bildunterschrift und Turnierinformationen */
.single-pbc_tournament .entry-content .pbc-single-tournament-wrapper {
    margin-top: 30px;
}

/* "Erstellt am:" vor das Datum im Bard Theme */
.single-pbc_tournament .entry-meta .posted-on::before,
.single-pbc_tournament .posted-on::before,
.single-pbc_tournament .entry-date::before,
.single-pbc_tournament .entry-meta time::before,
.single-pbc_tournament .entry-header .entry-meta::before,
body.single-pbc_tournament .entry-meta::before,
.single-pbc_tournament .post-date::before,
body.single-pbc_tournament .post-date::before {
    content: "Erstellt am: ";
    font-weight: 400;
}

/* Für den Fall, dass unser Plugin ein Bild einfügt (wird aktuell nicht verwendet) */
.tournament-featured-image {
    margin-bottom: 25px;
    text-align: left;
}

.tournament-featured-image img {
    width: auto !important;
    height: auto !important;
    max-height: 400px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.tournament-datetime-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    padding: 0;
    background: transparent;
}

.datetime-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    line-height: 1.6;
}

.datetime-item .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #0073aa;
    flex-shrink: 0;
}

.datetime-text {
    display: inline;
    font-size: 15px;
    color: #333;
}

.datetime-label {
    font-size: 15px;
    font-weight: 400;
    color: #333;
}

.datetime-value {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.tournament-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    padding: 0;
}

.info-grid-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    line-height: 1.6;
}

.info-grid-item:hover {
    background: transparent;
}

.info-grid-item .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #0073aa;
    flex-shrink: 0;
}

.info-text {
    display: inline;
    font-size: 15px;
    color: #333;
}

.info-label {
    font-size: 15px;
    font-weight: 400;
    color: #333;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.tournament-description {
    margin-bottom: 30px;
    padding: 0;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .pbc-tournament-grid-view {
        grid-template-columns: 1fr;
    }

    .tournament-list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tournament-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .tournament-actions-section {
        width: 100%;
    }

    .tournament-actions-section .button {
        width: 100%;
    }

    .tournament-meta-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tournament-meta-compact .meta-item.participants {
        margin-left: 0;
    }

    /* Compact View Responsive */
    .pbc-tournament-compact-item {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .compact-date-section {
        align-self: flex-start;
    }

    .compact-meta {
        flex-direction: column;
        gap: 8px;
    }

    .compact-action-section {
        margin-top: 10px;
    }

    .compact-action-section .button {
        width: 100%;
    }

    .tournament-info {
        flex-direction: column;
        gap: 8px;
    }

    .participants-count {
        flex-direction: column;
        align-items: flex-start;
    }

    .series-standings-table {
        font-size: 14px;
    }

    .series-standings-table th,
    .series-standings-table td {
        padding: 8px;
    }

    /* Single Tournament Responsive */
    .tournament-datetime-box {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 12px;
    }

    .tournament-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Featured Image auf Mobile auch kleiner */
    .tournament-featured-image img,
    .single-pbc_tournament .post-thumbnail img,
    .single-pbc_tournament img.wp-post-image {
        max-width: 100% !important;
        max-height: 300px !important;
    }

    .datetime-item .dashicons {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .datetime-text {
        font-size: 13px;
    }

    .datetime-label,
    .datetime-value {
        font-size: 13px;
    }

    .info-label,
    .info-value {
        font-size: 13px;
    }
}

/* Veranstaltungsort Adresse */
.venue-address {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Venue Layout in Kachelansicht */
.meta-item-venue {
    align-items: flex-start !important;
}

.meta-venue-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.meta-venue-content .meta-label {
    display: block;
}

.meta-venue-content .venue-name {
    font-size: 14px;
}

.meta-venue-content .venue-address {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 0;
    font-weight: 400;
}

.info-grid-item.venue-item .info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-grid-item.venue-item .info-value {
    font-weight: 600;
}

/* Tournament Map */
.pbc-tournament-map-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pbc-tournament-map-wrapper h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Venue Map Container */
.venue-map-container {
    margin-top: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.venue-map-container h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

#pbc-tournament-map {
    height: 350px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
}

.tournament-map-popup {
    font-size: 13px;
    line-height: 1.6;
}

.tournament-map-popup strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    color: #333;
}

.tournament-map-popup em {
    color: #0073aa;
    font-style: normal;
    font-weight: 500;
}

.tournament-map-popup small {
    color: #666;
}

/* Leaflet Popup Anpassungen */
.leaflet-popup-content {
    margin: 10px;
    line-height: 1.6;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .pbc-tournament-map-wrapper {
        padding: 15px;
    }

    #pbc-tournament-map {
        height: 300px !important;
    }
}

/* Serien-Anmeldung */
.pbc-series-registration {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pbc-series-registration h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.series-tournaments-selection {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.tournament-selection-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.tournament-selection-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: #0073aa;
}

.tournament-selection-item:last-child {
    margin-bottom: 0;
}

.tournament-selection-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.6;
    margin: 0;
}

.tournament-selection-item input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.tournament-selection-item strong {
    color: #333;
}

.tournament-selection-item .participants-info {
    font-size: 13px;
    color: #666;
    margin-left: 5px;
}

.tournament-selection-item .already-registered {
    color: #28a745;
    font-weight: 600;
    margin-left: 5px;
}

.tournament-selection-item .on-waitlist {
    color: #ffc107;
    font-weight: 600;
    margin-left: 5px;
}

.tournament-selection-item .cannot-register {
    color: #dc3545;
    font-weight: 600;
    margin-left: 5px;
}

.guest-registration-fields {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.guest-registration-fields h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.guest-registration-fields p {
    margin-bottom: 12px;
}

.guest-registration-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.guest-registration-fields input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.guest-registration-fields input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Notices */
.pbc-notice {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.pbc-notice p {
    margin: 0;
}

.pbc-notice-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.pbc-notice-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

@media (max-width: 768px) {
    .pbc-series-registration {
        padding: 15px;
    }

    .series-tournaments-selection {
        padding: 15px;
    }

    .tournament-selection-item label {
        font-size: 14px;
    }

    .guest-registration-fields {
        padding: 15px;
    }

    .guest-registration-fields input {
        max-width: 100%;
    }
}
