/*!
 * 8-Ball Singles League System
 * Copyright (c) 2025 Rax Development
 * All rights reserved.
 * Proprietary Software - Unauthorized copying prohibited
 * Developed by John Campbell - 717-991-0057
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0d1929 100%);
    color: white;
    min-height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.header {
    text-align: center;
    margin-bottom: 4vh;
    padding: 3vh;
    background: #0d1929;
    border: 0.6vh solid #dc143c;
    border-radius: 1.5vh;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid white;
    border-radius: 10px;
    pointer-events: none;
}

.header h1 {
    font-size: 6vw;
    margin-bottom: 1vh;
    text-shadow: 0.2vw 0.2vw 0.5vw rgba(0, 0, 0, 0.5);
}

.header p {
    opacity: 0.9;
    font-size: 4vw;
}

.btn-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
    margin-bottom: 3vh;
}

.main-btn {
    padding: 3vh;
    background: #1a1a2e;
    border: 0.4vw solid #dc143c;
    border-radius: 1.5vh;
    color: white;
    font-size: 5vw;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid white;
    border-radius: 12px;
    pointer-events: none;
}

.main-btn:active {
    transform: scale(0.95);
    background: #dc143c;
}

.main-btn:hover {
    border-color: white;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
}

.play-section, .config-section, .scorecards-section {
    display: none;
    background: #0d1929;
    border: 4px solid #dc143c;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    min-height: 100vh;
    max-height: 100vh;
    width: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

#mainMenu {
    min-height: 100vh;
    max-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

#scorecardsSection {
    min-height: 100vh !important;
    max-height: 100vh !important;
    width: 100vw !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.play-section.active, .config-section.active, .scorecards-section.active {
    display: block;
}

.form-group {
    margin-bottom: 2vh;
}

label {
    display: block;
    margin-bottom: 0.8vh;
    font-size: 4vw;
    font-weight: bold;
}

select, input {
    width: 100%;
    padding: 1.2vh;
    border: 0.2vw solid #dc143c;
    border-radius: 0.8vh;
    background: #1a1a2e;
    color: white;
    font-size: 4vw;
}

select:focus, input:focus {
    outline: none;
    border-color: white;
}

.btn {
    padding: 0.8vh 1.5vw;
    border: 0.3vw solid #dc143c;
    background: #1e3a8a;
    color: white;
    border-radius: 0.8vh;
    font-size: 2.5vw;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    margin-top: 0;
}

.btn:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

.login-btn {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.login-btn:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.play-btn {
    background: #28a745 !important;
    border-color: #dc143c !important;
}

.play-btn:hover {
    background: #218838 !important;
    border-color: #b91c1c !important;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.admin-btn {
    background: #dc143c !important;
    border-color: #dc143c !important;
}

.admin-btn:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

.scorecards-btn {
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
}

.scorecards-btn:hover {
    background: #1e40af !important;
    border-color: #1e40af !important;
}

.back-btn {
    background: #dc143c;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.play-section .back-btn {
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.play-section .back-btn:hover {
    opacity: 1;
}

.notification {
    position: fixed;
    top: 3vh;
    right: 3vw;
    padding: 2vh 3vw;
    border-radius: 1vh;
    font-size: 3vw;
    font-weight: bold;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 0.5vh 1vh rgba(0,0,0,0.3);
}

.notification.success {
    background: #3b82f6;
    color: white;
    border: 0.2vw solid #3b82f6;
}

.notification.error {
    background: #dc143c;
    color: white;
    border: 0.2vw solid #dc143c;
}

@keyframes slideIn {
    from {
        transform: translateX(50vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.game-prompt {
    background: #1e3a8a;
    border: 0.4vw solid #dc143c;
    border-radius: 1.5vh;
    padding: 4vh;
    text-align: center;
    margin: 2vh 0;
    font-size: 4vw;
    color: white;
}

.shot-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1vh 1vw;
    margin-top: 1vh;
    padding: 1vh 1vw;
}

.shot-btn {
    padding: 2vh 1.5vw;
    background: #3b82f6;
    border: 0.2vw solid #dc143c;
    border-radius: 0.5vh;
    color: white;
    font-size: 5vw;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 8vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.shot-btn:hover {
    border-color: white;
    background: #2563eb;
    color: white;
}

.shot-btn:active {
    transform: scale(0.9);
    background: #1e3a8a;
    border-color: #dc143c;
}

.shot-label {
    display: block;
    font-size: 3.6vw;
    margin-top: 0.5vh;
    opacity: 0.9;
    font-weight: normal;
}

.players-list {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.player-item {
    padding: 15px;
    border-bottom: 1px solid #dc143c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-item:last-child {
    border-bottom: none;
}

.weekly-matches {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    margin-top: 1vh;
}

.match-card {
    background: #0d1929;
    border: 2px solid #dc143c;
    border-radius: 10px;
    padding: 0.5vh 1vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1vh;
}

.match-card .match-info h3 {
    margin-bottom: 0.3vh;
    color: #3b82f6;
    font-size: 2.5vw;
}

.match-card .match-info p {
    color: #ccc;
    font-size: 1.5vw;
}

.no-matches {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.scheduled-match-item {
    padding: 15px;
    border-bottom: 1px solid #dc143c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scheduled-match-item:last-child {
    border-bottom: none;
}

.scheduled-match-item .match-info {
    flex: 1;
}

.pdf-thumbnail {
    transition: all 0.3s ease;
}

.pdf-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(220, 20, 60, 0.4);
    border-color: white !important;
}

.completed-forms {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #dc143c;
}

.admin-auth {
    display: none;
}

.admin-auth.active {
    display: block;
}

.error {
    background: #8b0000;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

/* Watermark */
.watermark {
    position: fixed !important;
    bottom: 10px !important;
    right: 10px !important;
    font-size: 7px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-align: right !important;
    pointer-events: none !important;
    z-index: 1 !important;
    font-weight: 500 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 4px 6px !important;
    border-radius: 2px !important;
    line-height: 1.4 !important;
}

.watermark div {
    font-size: 7px !important;
}

.watermark div:first-child {
    font-size: 7px !important;
}

.watermark div:nth-child(2) {
    font-size: 6px !important;
}

.watermark div:nth-child(3) {
    font-size: 7px !important;
}

.watermark div:nth-child(4) {
    font-size: 6px !important;
}

.watermark div:nth-child(5) {
    font-size: 6px !important;
}

/* Larger watermark on bigger screens */
@media (min-width: 601px) {
    .watermark {
        font-size: 10px !important;
        padding: 6px 9px !important;
        border-radius: 3px !important;
    }
    
    .watermark div {
        font-size: 10px !important;
    }
    
    .watermark div:first-child {
        font-size: 10px !important;
    }
    
    .watermark div:nth-child(2) {
        font-size: 9px !important;
    }
    
    .watermark div:nth-child(3) {
        font-size: 10px !important;
    }
    
    .watermark div:nth-child(4) {
        font-size: 9px !important;
    }
    
    .watermark div:nth-child(5) {
        font-size: 9px !important;
    }
}

.watermark strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 7vw;
    }

    .btn-container {
        grid-template-columns: 1fr;
    }

    .shot-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 1vh 1vw;
    }
    
    .shot-btn {
        min-height: 9vh;
        font-size: 6vw;
        padding: 1.5vh 1vw;
    }
    
    .shot-label {
        font-size: 4vw;
    }

    .watermark {
        font-size: 7px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
}

