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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: #000000;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(sea_keyart_sig2.original.jpg) center / cover no-repeat;
    opacity: 0.3;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 100px;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

h4 {
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

.input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 1rem;
}

.input-group:first-of-type {
    margin-bottom: 0.5rem;
}

input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

button {
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.submit-button {
    background-color: #2ecc71;
}

.submit-button:hover {
    background-color: #27ae60;
}

.submit-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.copy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.copy-button svg {
    color: #6c757d;
}

.copy-button:hover svg {
    color: #495057;
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.result.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Card Table Styles */
.table-container {
    margin-top: 1rem;
    overflow-x: auto;
}

.card-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-table.win-matrix-table td {
    width: 20%;
}

.card-table.win-matrix-table th {
    text-align: left;
}

.card-table th,
.card-table td {
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.card-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.card-table tr:hover {
    background-color: #f8f9fa;
}

/* Center align specific columns */
.card-table td:nth-child(1),
.card-table td:nth-child(2),
.card-table td:nth-child(3),
.card-table td:nth-child(4),
.card-table td:nth-child(6) {
    text-align: center;
}

/* Make the name column take up remaining space */
.card-table td:nth-child(5) {
    width: 100%;
}

/* Pitch Indicator Styles */
.pitch-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pitch-red {
    background-color: #dc3545;
}

.pitch-yellow {
    background-color: #ffc107;
}

.pitch-blue {
    background-color: #0d6efd;
}

.pitch-gray {
    background-color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .card-table {
        font-size: 0.75rem;
    }
    
    .card-table th,
    .card-table td {
        padding: 0.4rem;
    }
}

/* Chart Styles */
.chart-container {
    margin-top: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.chart {
    height: 400px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-container {
        grid-template-columns: 1fr;
    }
    
    .chart {
        height: 300px;
    }
}

/* Game Statistics Styles */
.game-stats {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.game-stats h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
}

.stat-value {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
}

/* Add some spacing between game details sections */
.game-stats + .game-stats {
    margin-top: 30px;
}

/* Make tables more compact in game details */
.game-stats .card-table {
    margin-top: 10px;
}

/* Add a subtle separator between games */
.game-stats:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 20px;
}

/* Game Details Styles */
.game-details {
    margin: 1rem 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.game-details summary {
    padding: 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    position: relative;
    list-style: none;
}

/* Hide default marker for different browsers */
.game-details summary::-webkit-details-marker {
    display: none;
}

.game-details summary::marker {
    display: none;
}

.game-details summary:hover {
    background-color: #e9ecef;
}

.game-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
    padding: 0.5rem 0;
    padding-right: 2rem;
}

.game-number {
    color: #2c3e50;
}

.game-result {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    background-color: #e9ecef;
}

.game-opponent {
    color: #6c757d;
}

.game-content {
    padding: 1rem;
    background-color: white;
}

.game-details summary::before {
    content: '▶';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    color: #6c757d;
}

.game-details[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
}

/* Deck Information Styles */
.deck-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.deck-details {
    flex-grow: 1;
}

.deck-details p {
    margin-bottom: 0.5rem;
}

.deck-details p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .deck-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-image {
        text-align: center;
    }
}

.opposing-hero-image {
    border-radius: 8px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo Styles */
.logo {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.logo img {
    max-width: 150px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Decks Grid Styles */
.decks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.deck-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.deck-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.deck-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.deck-card-hero {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.deck-card-info {
    flex: 1;
    min-width: 0;
}

.deck-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: -0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.deck-card-author {
    color: #666;
    font-size: 0.9rem;
}

.deck-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.deck-stat {
    text-align: center;
}

.deck-stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.deck-stat-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

.deck-card-score {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #f8f9fa;
    font-weight: 500;
    margin-top: 0.5rem;
}

.deck-card-score.undefeated {
    background: #d4edda;
    color: #155724;
}

.deck-card-timestamp {
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
    padding-top: 1rem;
    text-align: right;
}

/* Navigation Styles */
.nav-links {
    text-align: center;
    margin-bottom: 2rem;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: #f8f9fa;
}

.no-decks {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* Navigation Bar */
.navbar {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 75px;
    display: flex;
    align-items: center;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 1rem 1.2rem;
    margin-top: 2rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Hero Filter Pills Styles */
.hero-filter-label {
    font-weight: 600;
    margin-right: 0.5rem;
    align-self: center;
}
.hero-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-pill {
    display: inline-block;
    padding: 0.4em 1em;
    border-radius: 999px;
    background: #f1f3f4;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, color 0.2s, border 0.2s;
    user-select: none;
}
.hero-pill:hover {
    background: #e0e7ef;
    color: #222;
    border-color: #b0b0b0;
}
.hero-pill.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
} 