/* ====================================
   COMBOB FANTASY GOLF - SHARED STYLES
   Masters Tournament Theme
   ==================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a4d1a 0%, #0d2818 100%);
    min-height: 100vh;
    color: #e8f5e8;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: rgba(13, 40, 24, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 102, 51, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.header h1 {
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FFD700, #FFF8DC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.header h2 {
    color: #FFD700;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.header p {
    color: #c8e6c8;
    font-size: 1.1em;
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(0, 102, 51, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-link {
    text-decoration: none;
    color: #FFD700;
    padding: 12px 25px;
    background: rgba(0, 102, 51, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.nav-link.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
}

/* Section Styles */
.section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(0, 51, 25, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.section h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Card Styles */
.card {
    background: rgba(0, 51, 25, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 102, 51, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
}

.card h4 {
    color: #FFD700;
    margin-bottom: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Button Styles */
.btn {
    background: linear-gradient(45deg, #006633, #004d26);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    margin: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    background: linear-gradient(45deg, #007d3d, #005930);
    border-color: #FFD700;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85em;
    margin: 2px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2em;
}

.btn-danger {
    background: linear-gradient(45deg, #8B0000, #A52A2A);
    border-color: rgba(255, 100, 100, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(45deg, #A00000, #CD5C5C);
    border-color: #FF6B6B;
}

.btn-success {
    background: linear-gradient(45deg, #228B22, #32CD32);
    border-color: rgba(50, 205, 50, 0.3);
}

.btn-success:hover {
    background: linear-gradient(45deg, #2E8B57, #3CB371);
    border-color: #90EE90;
}

.btn-warning {
    background: linear-gradient(45deg, #B8860B, #DAA520);
    border-color: rgba(218, 165, 32, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(45deg, #D4AF37, #F0E68C);
    border-color: #FFFF99;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #FFD700;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background: rgba(0, 51, 25, 0.6);
    color: #e8f5e8;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-group input::placeholder {
    color: #a8c8a8;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #a8c8a8;
    font-size: 0.85em;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(0, 51, 25, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 102, 51, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.table th, 
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    color: #e8f5e8;
}

.table th {
    background: rgba(0, 102, 51, 0.8);
    font-weight: 600;
    color: #FFD700;
    font-size: 0.9em;
}

.table tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

.table tr:nth-child(even) {
    background: rgba(0, 51, 25, 0.3);
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #90EE90;
    border-left-color: #28a745;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #F0E68C;
    border-left-color: #ffc107;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border-left-color: #dc3545;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #7FDBFF;
    border-left-color: #17a2b8;
}

/* Login/Form Container Styles */
.login-container {
    background: rgba(13, 40, 24, 0.98);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 102, 51, 0.6);
    border: 3px solid rgba(255, 215, 0, 0.4);
    max-width: 450px;
    margin: 50px auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #FFD700;
    font-size: 2.2em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FFD700, #FFF8DC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.login-header .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

/* Chart Styles */
.chart-container {
    width: 100%;
    height: 220px;
    background: rgba(0, 51, 25, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 10px;
    margin-bottom: 8px;
}

.chart-legend {
    margin-top: 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8em;
    color: #c8e6c8;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.chart-legend-item.highlighted {
    background-color: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.chart-legend-item:hover {
    background-color: rgba(255, 215, 0, 0.15);
}

.chart-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.chart-tooltip {
    position: fixed;
    background: rgba(13, 40, 24, 0.98);
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 10px 15px;
    color: #e8f5e8;
    font-size: 0.9em;
    pointer-events: none;
    z-index: 10000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.chart-tooltip.visible {
    display: block;
}

.chart-tooltip-team {
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 5px;
}

.chart-tooltip-value {
    color: #90EE90;
    font-size: 1.1em;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-gold {
    color: #FFD700;
}

.text-green {
    color: #90EE90;
}

.text-muted {
    color: #a8c8a8;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.hidden {
    display: none;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .nav-menu {
        flex-direction: column;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .table th, .table td {
        padding: 8px;
        font-size: 0.85em;
    }
}
