/* ============================================
   SUPERMAX HOCKEY TRAINING - TRYOUT MODULE STYLES
   ============================================ */

/* Dashboard Card */
.tryout-dashboard-card {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(142, 68, 173, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tryout-dashboard-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: tryout-shimmer 4s linear infinite;
}

@keyframes tryout-shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.tryout-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(142, 68, 173, 0.3);
}

.tryout-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.tryout-card-icon {
    font-size: 28px;
    line-height: 1;
}

.tryout-card-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.tryout-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.tryout-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tryout-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.tryout-countdown {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.tryout-score {
    font-size: 24px;
    font-weight: 700;
}

.tryout-card-footer {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

/* Modal Overlay */
.tryout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: tryout-fadeIn 0.3s ease;
}

@keyframes tryout-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tryout-modal-container {
    background: #2a2a2a;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: tryout-slideUp 0.4s ease;
}

@keyframes tryout-slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tryout-modal-header {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tryout-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.tryout-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tryout-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tryout-modal-content {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
    color: white;
}

/* Readiness Gauge */
.tryout-readiness-gauge {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 30px auto;
}

.tryout-gauge-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        #dc3545 0%, 
        #fd7e14 25%, 
        #ffc107 50%, 
        #90ee90 75%, 
        #28a745 100%
    );
    border-radius: 100px 100px 0 0;
    position: relative;
}

.tryout-gauge-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.tryout-readiness-needle {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 4px;
    height: 80px;
    background: white;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tryout-readiness-needle::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid white;
}

.tryout-readiness-score {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-top: 10px;
}

.tryout-readiness-label {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 5px;
}

/* Skills Assessment */
.tryout-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.tryout-skill-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid rgba(142, 68, 173, 0.3);
    transition: all 0.2s ease;
}

.tryout-skill-item:hover {
    border-color: rgba(142, 68, 173, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.tryout-skill-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tryout-skill-rating {
    display: flex;
    gap: 8px;
}

.tryout-rating-star {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.tryout-rating-star:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tryout-rating-star.active {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
}

/* Timeline */
.tryout-timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

.tryout-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(142, 68, 173, 0.5) 10%,
        rgba(142, 68, 173, 0.5) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.tryout-timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.tryout-timeline-date {
    flex: 1;
    text-align: right;
    padding-right: 30px;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.tryout-timeline-marker {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-radius: 50%;
    border: 3px solid #2a2a2a;
    flex-shrink: 0;
    z-index: 2;
}

.tryout-timeline-marker.completed {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.tryout-timeline-marker.upcoming {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    animation: tryout-pulse 2s infinite;
}

@keyframes tryout-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.tryout-timeline-content {
    flex: 1;
    padding-left: 30px;
}

.tryout-timeline-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Coach Tips */
.tryout-tip-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #8e44ad;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.tryout-tip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tryout-tip-badge {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tryout-tip-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.tryout-tip-content {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Checklist */
.tryout-checklist {
    margin: 20px 0;
}

.tryout-checklist-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tryout-checklist-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tryout-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(142, 68, 173, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tryout-checklist-item.completed .tryout-checkbox {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
}

.tryout-checklist-text {
    font-size: 16px;
    color: white;
}

.tryout-checklist-item.completed .tryout-checklist-text {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Buttons */
.tryout-btn {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.tryout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(142, 68, 173, 0.4);
}

.tryout-btn:active {
    transform: translateY(0);
}

.tryout-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(142, 68, 173, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .tryout-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .tryout-modal-header {
        padding: 20px;
    }
    
    .tryout-modal-header h2 {
        font-size: 24px;
    }
    
    .tryout-modal-content {
        padding: 20px;
    }
    
    .tryout-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .tryout-timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tryout-timeline-date {
        text-align: center;
        padding-right: 0;
        padding-bottom: 10px;
    }
    
    .tryout-timeline-content {
        padding-left: 0;
        padding-top: 10px;
    }
    
    .tryout-timeline::before {
        display: none;
    }
}
