/* Event Detail Page Styles */

/* WCAG Color Palette - Reduced from 40+ to 12-14 core colors */
:root {
  /* Primary Brand Colors */
  --color-primary: #667eea;
  --color-primary-light: #eef2ff;
  --color-secondary: #f093fb;
  --color-secondary-light: #fce7f3;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;

  /* Neutral/Text Colors */
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-background: #f9fafb;

  /* Semantic Colors */
  --color-error: #dc2626;
  --color-info: #3b82f6;
}

/* Remove red shadow from black titles throughout site */
h1, h2, h3, h4, h5, h6 {
    text-shadow: none !important;
}

.font-bold.text-gray-900,
.font-semibold.text-gray-900,
.font-bold.text-gray-800 {
    text-shadow: none !important;
}

/* Hobby checkbox styling - compact design */

/* City box styling - Toggle style like hobbies */
.city-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.4rem;
}

.city-box {
    position: relative;
    display: block;
}

.city-box input[type="checkbox"] {
    display: none;
}

.city-button {
    display: block;
    width: 100%;
    padding: 0.5rem 0.4rem;
    text-align: center;
    border: 1.5px solid #d1d5db;
    border-radius: 0.375rem;
    background: #f9fafb;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-box input[type="checkbox"]:checked + .city-button {
    background: #3b82f6;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(59, 130, 246, 0.3);
    transform: translateY(0px);
    font-weight: 600;
}

.city-button:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.city-box input[type="checkbox"]:checked + .city-button:hover {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(59, 130, 246, 0.4);
}

/* Input text color - darker for better visibility */
input[type="text"],
input[type="tel"],
input[type="number"],
select,
textarea {
    color: #1f2937 !important;
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* Admin Panel Styling */
.admin-panel {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid #c7d2fe;
}

.admin-mgmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.admin-mgmt-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 3px solid #93c5fd;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2),
                0 8px 10px -6px rgba(59, 130, 246, 0.1),
                inset 0 -3px 0 rgba(59, 130, 246, 0.15);
    transform: translateZ(0);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.admin-mgmt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-mgmt-card:hover::before {
    opacity: 1;
}

.admin-mgmt-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    transform: translateY(-8px) rotateX(2deg) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.35),
                0 15px 20px -10px rgba(59, 130, 246, 0.2),
                inset 0 -5px 0 rgba(59, 130, 246, 0.25);
    border-color: #60a5fa;
}

.admin-mgmt-card:active {
    transform: translateY(-2px) rotateX(0deg) scale(1.01);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.25),
                0 5px 10px -5px rgba(59, 130, 246, 0.15),
                inset 0 -3px 0 rgba(59, 130, 246, 0.2);
}

.admin-mgmt-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.admin-mgmt-card-header::after {
    content: '→';
    position: absolute;
    right: 0;
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
    opacity: 0.6;
    transition: all 0.3s;
}

.admin-mgmt-card:hover .admin-mgmt-card-header::after {
    opacity: 1;
    transform: translateX(4px);
}

.admin-mgmt-card-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s;
}

.admin-mgmt-card:hover .admin-mgmt-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.admin-mgmt-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    text-shadow: none;
    transition: color 0.3s;
}

.admin-mgmt-card:hover .admin-mgmt-card-title {
    color: #3b82f6;
}

.admin-mgmt-card-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

.admin-mgmt-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    background: #10b981;
    color: white;
    border: 1px solid #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
    .admin-mgmt-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Navigation Buttons */
.floating-nav-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #64748b;
    color: white;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    font-size: 22px;
    font-weight: 600;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: #475569;
    color: white;
}

.floating-btn.back {
    background: #3b82f6;
}

.floating-btn.back:hover {
    background: #2563eb;
}

.floating-btn.home {
    background: #10b981;
}

.floating-btn.home:hover {
    background: #059669;
}

/* Show with label on hover */
.floating-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-btn-label {
    position: absolute;
    right: 68px;
    background: rgba(0, 0, 0, 0.9);
    color: white !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-btn-wrapper:hover .floating-btn-label {
    opacity: 1;
}

@media (max-width: 768px) {
    .floating-nav-buttons {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .floating-btn-label {
        display: none;
    }
}

/* Registration Section Collapse */
.registration-section {
    margin-bottom: 24px;
}

.registration-header {
    cursor: pointer;
    padding: 20px;
    background: #3b82f6;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    user-select: none;
    margin-bottom: 0;
}

.registration-header:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.registration-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.registration-header-title h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.registration-header-title .icon {
    font-size: 28px;
}

.registration-collapse-icon {
    color: white;
    font-size: 24px;
    transition: transform 0.3s;
}

.registration-section.collapsed .registration-collapse-icon {
    transform: rotate(-90deg);
}

.registration-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s, visibility 0.3s;
    opacity: 1;
    background: white;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e5e7eb;
    border-top: none;
    visibility: visible;
}

.registration-section.collapsed .registration-content {
    max-height: 0 !important;
    opacity: 0;
    border: none;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    padding: 0;
    margin: 0;
}

/* 3D Activity Cards */
.activity-card-3d {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.activity-card-3d:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), inset 0 -5px 0 rgba(0, 0, 0, 0.1) !important;
}

.activity-card-3d:active {
    transform: translateY(-2px) rotateX(0deg);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2), inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Participant Card Hover for Edit Button */
.participant-card {
    position: relative;
}

.participant-card:hover .edit-btn {
    opacity: 1 !important;
}

/* Info badges hover effect */
.info-badge {
    transition: all 0.2s ease;
}

.info-badge:hover {
    transform: scale(1.05);
}

/* Section Navigation Arrows - Admin Only */
.section-nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

/* Show section nav for admin users */
.admin-view .section-nav {
    display: flex;
}

.section-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.5); /* Translucent indigo */
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.section-nav-arrow:hover {
    background: rgba(99, 102, 241, 0.8);
    border-color: rgba(99, 102, 241, 0.6);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.section-nav-arrow:hover::before {
    filter: brightness(0) invert(1);
}

.section-container {
    position: relative;
    scroll-margin-top: 20px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .section-nav {
        display: none !important;
    }
}

/* Roster Section Styling - Admin Only */
.roster-section {
    margin-bottom: 24px;
}

.roster-header {
    cursor: pointer;
    padding: 16px;
    background: #64748b;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    user-select: none;
}

.roster-header:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.roster-header.male {
    background: #3b82f6;
}

.roster-header.male:hover {
    background: #2563eb;
}

.roster-header.female {
    background: #10b981;
}

.roster-header.female:hover {
    background: #059669;
}

.roster-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.roster-collapse-icon {
    color: white;
    font-size: 20px;
    transition: transform 0.3s;
}

.roster-section.collapsed .roster-collapse-icon {
    transform: rotate(-90deg);
}

.roster-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s;
    opacity: 1;
}

.roster-section.collapsed .roster-content {
    max-height: 0;
    opacity: 0;
}

.participant-card {
    position: relative;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
    display: grid;
    grid-template-columns: 50px 200px 80px 80px 120px auto;
    gap: 16px;
    align-items: center;
}

.participant-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.participant-card.not-checked-in {
    opacity: 0.6;
    background: #f9fafb;
}

.participant-card.not-checked-in .participant-name {
    color: #9ca3af;
}

.participant-card.not-checked-in .participant-sequence {
    color: #9ca3af;
}

.participant-card.not-checked-in .detail-value {
    color: #9ca3af;
}

.participant-card.not-checked-in .detail-label {
    color: #d1d5db;
}

.participant-watermark {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 80px;
    font-weight: 900;
    color: rgba(148, 163, 184, 0.12);
    line-height: 1;
    pointer-events: none;
    font-family: 'Arial Black', sans-serif;
    display: none;
}

.participant-info {
    position: relative;
    z-index: 1;
    display: contents;
}

.participant-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0;
    grid-column: 2;
}

.participant-sequence {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    grid-column: 1;
}

.status-badges-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    grid-column: 3 / 5;
    margin-bottom: 0;
}

.participant-details {
    display: contents;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.detail-label {
    font-weight: 600;
    color: #6b7280;
}

.detail-value {
    color: #374151;
}

/* Roster Section Styles */
.roster-section {
    margin-bottom: 24px;
}
.roster-header {
    cursor: pointer;
    padding: 16px;
    background: #64748b;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    user-select: none;
}
.roster-header:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.roster-header.male {
    background: #3b82f6;
}
.roster-header.male:hover {
    background: #2563eb;
}
.roster-header.female {
    background: #10b981;
}
.roster-header.female:hover {
    background: #059669;
}
.roster-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.roster-collapse-icon {
    color: white;
    font-size: 20px;
    transition: transform 0.3s;
}
.roster-section.collapsed .roster-collapse-icon {
    transform: rotate(-90deg);
}
.roster-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s;
    opacity: 1;
}
.roster-section.collapsed .roster-content {
    max-height: 0;
    opacity: 0;
}
.participant-card {
    position: relative;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
    display: grid;
    grid-template-columns: 50px 200px 80px 80px 120px auto;
    gap: 16px;
    align-items: center;
}
.participant-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.participant-card.not-checked-in {
    opacity: 0.6;
    background: #f9fafb;
}
.participant-card.not-checked-in .participant-name {
    color: #9ca3af;
}
.participant-card.not-checked-in .participant-sequence {
    color: #9ca3af;
}
.participant-card.not-checked-in .detail-value {
    color: #9ca3af;
}
.participant-card.not-checked-in .detail-label {
    color: #d1d5db;
}
.participant-watermark {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 80px;
    font-weight: 900;
    color: rgba(148, 163, 184, 0.12);
    line-height: 1;
    pointer-events: none;
    font-family: 'Arial Black', sans-serif;
    display: none;
}
.participant-info {
    position: relative;
    z-index: 1;
    display: contents;
}
.participant-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0;
    grid-column: 2;
}
.participant-sequence {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    grid-column: 1;
}
.status-badges-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    grid-column: 3 / 5;
    margin-bottom: 0;
}
.participant-details {
    display: contents;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.status-checked-in {
    background: #d1fae5;
    color: #065f46;
}
.status-not-checked-in {
    background: #fee2e2;
    color: #991b1b;
}
.status-can-login {
    background: #dbeafe;
    color: #1e40af;
}
.status-cannot-login {
    background: #f3f4f6;
    color: #6b7280;
}
@media (max-width: 1024px) {
    .participant-card {
        grid-template-columns: 35px 120px 100px auto;
        gap: 8px;
        padding: 12px;
    }
    .participant-name {
        grid-column: 2;
        margin-bottom: 0;
        font-size: 14px;
    }
    .participant-sequence {
        grid-column: 1;
        font-size: 12px;
    }
    .status-badges-container {
        grid-column: 3;
    }
    .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .participant-details {
        display: contents;
    }
    .detail-item {
        grid-column: 4;
        font-size: 11px;
    }
}
@media (max-width: 640px) {
    .participant-card {
        grid-template-columns: 30px 80px 70px auto;
        gap: 6px;
        padding: 10px;
        font-size: 12px;
    }
    .participant-name {
        font-size: 13px;
    }
    .participant-sequence {
        font-size: 11px;
    }
    .status-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    .detail-item {
        font-size: 10px;
    }
    .detail-label {
        display: none;
    }
}
