/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

.container, .game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Game Title */
.game-title {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.game-title h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.game-title p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Authentication Container */
.auth-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 0 auto;
}

.form-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2a5298;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Form switching */
.form-switch {
    text-align: center;
    margin-top: 20px;
}

.form-switch a {
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:hover {
    text-decoration: underline;
}

/* Messages */
.error-message, .success-message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    font-weight: 600;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Game Screen Styles */
.game-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gladiator-info h1 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.gladiator-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    background: #e9ecef;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #495057;
}

/* Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stats-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2a5298;
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #2a5298;
}

.stat-card h3 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #495057;
}

.stat-value {
    font-weight: 700;
    color: #2a5298;
}

.stat-value.wins {
    color: #28a745;
}

.stat-value.losses {
    color: #dc3545;
}

/* Navigation Section */
.navigation-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navigation-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2a5298;
    font-size: 2rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: #2a5298;
    color: #2a5298;
}

.nav-btn.active {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border-color: #2a5298;
}

.nav-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.nav-text {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container, .game-container {
        padding: 15px;
    }
    
    .game-title h1 {
        font-size: 3rem;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .gladiator-stats {
        justify-content: center;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .game-title h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
}

/* Training Area Styles */
.training-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.training-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2a5298;
    font-size: 2rem;
}

.training-description {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.training-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #2a5298;
}

.training-card.intensive {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

.training-card.intensive:hover {
    border-color: #e0a800;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.training-card h3 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.training-card p {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.training-cost, .training-reward {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cost-label, .reward-label {
    font-weight: 700;
    color: #2c3e50;
}

.cost-value {
    color: #dc3545;
    font-weight: bold;
}

.reward-value {
    color: #28a745;
    font-weight: bold;
}

.training-form {
    margin-top: 20px;
}

.training-form .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.training-form .btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    text-shadow: none;
}

.intensive-btn {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important;
    border: 2px solid #e0a800;
}

.intensive-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%) !important;
    transform: translateY(-2px);
}

.rest-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 2px solid #2196f3;
}

.rest-section h3 {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rest-section p {
    color: #424242;
    margin-bottom: 20px;
    line-height: 1.5;
}

.rest-form .btn {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: 2px solid #1976d2;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rest-form .btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* Message styles */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design for Training */
@media (max-width: 768px) {
    .training-grid {
        grid-template-columns: 1fr;
    }
    
    .training-card {
        padding: 20px;
    }
    
    .training-section {
        padding: 20px;
    }
}

/* Quarters Page Styles */
.quarters-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.quarters-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2a5298;
    font-size: 2rem;
}

.quarters-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.quarters-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.rest-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #2196f3;
}

.rest-card h3 {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rest-card p {
    color: #424242;
    margin-bottom: 20px;
    line-height: 1.5;
}

.rest-benefits {
    list-style: none;
    margin-bottom: 25px;
}

.rest-benefits li {
    padding: 8px 0;
    color: #424242;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-status {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.current-status h4 {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.status-label {
    font-weight: 600;
    color: #495057;
}

.status-value {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-value.full {
    background-color: #d4edda;
    color: #155724;
}

.status-value.needs-rest {
    background-color: #fff3cd;
    color: #856404;
}

.rest-btn {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important;
    color: white !important;
    border: 2px solid #1976d2 !important;
    padding: 15px 30px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.rest-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.quarters-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #dee2e6;
}

.quarters-info h3 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quarters-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.quarters-features {
    list-style: none;
    margin-bottom: 25px;
}

.quarters-features li {
    padding: 8px 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rest-tips {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ffc107;
}

.rest-tips h4 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rest-tips ul {
    list-style: none;
}

.rest-tips li {
    padding: 5px 0;
    color: #856404;
    font-size: 0.95rem;
}

/* Responsive Design for Quarters */
@media (max-width: 768px) {
    .quarters-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quarters-section {
        padding: 20px;
    }
    
    .rest-card, .quarters-info {
        padding: 20px;
    }
}
