/* Tournament Page Specific Styles */
.tournament-page {
    background: linear-gradient(135deg, #0a1a2a 0%, #07101a 100%);
    color: #e0e0e0;
}

.tournament-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Section */
.tournament-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 120px 0 80px;
}

.tournament-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--vault-accent);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.badge-icon {
    color: var(--vault-accent);
    margin-right: 8px;
}

.badge-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.tournament-title {
    font-size: 4rem;
    margin: 0 0 10px;
    line-height: 1.1;
}

.tournament-title span {
    color: var(--vault-accent);
    position: relative;
}

.tournament-title span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--vault-accent);
    animation: underline-grow 1s forwards;
}

@keyframes underline-grow {
    from { width: 0; }
    to { width: 100%; }
}

.tournament-subtitle {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    color: var(--vault-silver);
    margin-bottom: 20px;
}

.tournament-description {
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-visual {
    position: relative;
}

.tournament-ui {
    width: 100%;
    border: 1px solid var(--vault-border);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 240, 255, 0.03) 50%,
        transparent 100%
    );
    animation: scanline 8s linear infinite;
}

/* Schedule Section */
.tournament-schedule {
    padding: 80px 0;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.schedule-card {
    background: rgba(10, 26, 42, 0.7);
    border: 1px solid var(--vault-border);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.schedule-card:hover {
    border-color: var(--vault-accent);
    transform: translateY(-5px);
}

.schedule-card.active {
    border-color: #00ff55;
    box-shadow: 0 0 20px rgba(0, 255, 85, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vault-border);
}

.tournament-phase {
    font-family: 'Roboto Mono', monospace;
    color: var(--vault-accent);
    font-size: 0.9rem;
}

.tournament-date {
    background: rgba(0, 240, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tournament-details {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.tournament-details li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.tournament-details i {
    width: 20px;
    color: var(--vault-accent);
    margin-right: 8px;
}

.active-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #00ff55;
    color: #0a1a2a;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(10, 26, 42, 0.7);
    border: 1px solid var(--vault-border);
    padding: 25px;
}

.player-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--vault-accent);
    margin-right: 15px;
}

.player-details h4 {
    margin: 0;
    font-size: 1.1rem;
}

.player-rank {
    font-size: 0.8rem;
    color: var(--vault-accent);
    opacity: 0.8;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.testimonial-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 2rem;
    color: var(--vault-accent);
    opacity: 0.3;
}

.rating {
    color: #ffcc00;
    margin-top: 15px;
}

/* Registration Section */
.tournament-registration {
    padding: 80px 0 120px;
}

.registration-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.registration-info h2 {
    margin-bottom: 20px;
}

.registration-info p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: #00ff55;
    margin-right: 10px;
}

/* Registration Form Styles */
.registration-form {
    background: rgba(10, 26, 42, 0.8);
    border: 1px solid var(--vault-border);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}


.registration-form h3 {
    color: var(--vault-accent);
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.3rem;
}

.registration-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--vault-accent);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--vault-silver);
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(5, 15, 25, 0.7);
    border: 1px solid var(--vault-border);
    color: var(--vault-text);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--vault-accent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vault-accent);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .input-border {
    width: 100%;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--vault-border);
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--vault-accent);
    border-color: var(--vault-accent);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: var(--vault-dark);
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--vault-silver);
    cursor: pointer;
    line-height: 1.4;
    margin-bottom: 0;
}

.checkbox-group a {
    color: var(--vault-accent);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    transition: all 0.2s ease;
}

.checkbox-group a:hover {
    border-bottom-style: solid;
    color: #00c0ff;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--vault-accent);
    color: var(--vault-dark);
    border: none;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-submit:hover {
    background: #00c0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.btn-submit:hover::before {
    left: 100%;
}

/* Form Validation */
.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff5555;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown) ~ .input-border {
    background: #ff5555;
}

.checkbox-group input[type="checkbox"]:invalid {
    border-color: #ff5555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .registration-form {
        padding: 20px;
    }
    
    .registration-form h3 {
        font-size: 1.1rem;
    }
    
    .checkbox-group label {
        font-size: 0.8rem;
    }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .tournament-hero {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }
    
    .registration-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tournament-title {
        font-size: 3rem;
    }
    
    .schedule-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
}