/* Import pixel font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    line-height: 1.8;
    color: #2c3e50;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    min-height: 100vh;
    font-size: 12px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Navigation Styles */
.navigation {
    background: #2d3436;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navigation .container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: #636e72;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-btn:hover {
    background: #74b9ff;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: #00b894;
    border-color: #00a085;
    box-shadow: 0 4px 8px rgba(0, 184, 148, 0.3);
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.tab-content {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Headers */
h2 {
    color: #2d3436;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid #00b894;
    padding-bottom: 0.5rem;
}

h3 {
    color: #2d3436;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 184, 148, 0.4);
}

.btn-secondary {
    background: #636e72;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #74b9ff;
    transform: translateY(-2px);
}

/* Filters Section */
.filters-section {
    margin-bottom: 2rem;
}

/* Search Section */
.search-section {
    margin-bottom: 1.5rem;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #868e96;
    font-style: italic;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #636e72;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.search-input:not(:placeholder-shown) + .clear-search-btn {
    opacity: 1;
    visibility: visible;
}

.clear-search-btn:hover {
    background: #e17055;
    transform: translateY(-50%) scale(1.1);
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #2d3436;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}

.filter-tag {
    background: #ffffff;
    color: #636e72;
    border: 2px solid #e9ecef;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
    user-select: none;
}

.filter-tag:hover {
    background: #74b9ff;
    color: white;
    border-color: #74b9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(116, 185, 255, 0.3);
}

.filter-tag.active {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    border-color: #00b894;
    box-shadow: 0 4px 8px rgba(0, 184, 148, 0.3);
}

.filter-tag.active:hover {
    background: linear-gradient(135deg, #00a085 0%, #008f75 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 184, 148, 0.4);
}

.filter-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

/* Fish Grid */
.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.fish-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.fish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #00b894;
}

.fish-card.caught {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.fish-card.caught::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 15px;
    background: #28a745;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.fish-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
    display: block;
}

.fish-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 0.75rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fish-details {
    display: grid;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fish-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0;
}

.fish-detail strong {
    color: #2d3436;
}

.fish-price {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.7rem;
}

.difficulty {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.7rem;
    color: white;
}

.difficulty.easy { background: #00b894; }
.difficulty.medium { background: #fdcb6e; }
.difficulty.hard { background: #e17055; }

/* DateTime Input */
.datetime-input {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: #2d3436;
    font-size: 0.9rem;
}

/* Collection Stats */
.collection-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(116, 185, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Progress Bar */
.progress-bar {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    background: linear-gradient(90deg, #00b894 0%, #00a085 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Collection Controls */
.collection-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Collection Grid */
.collection-grid .fish-card {
    cursor: pointer;
    user-select: none;
}

/* Footer */
.footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .search-container {
        max-width: 100%;
        margin: 0;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.8rem 2.5rem 0.8rem 0.8rem;
    }
    
    .clear-search-btn {
        width: 24px;
        height: 24px;
        right: 8px;
        font-size: 12px;
    }
    
    .filters {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .filter-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .fish-grid {
        grid-template-columns: 1fr;
    }
    
    .datetime-input {
        grid-template-columns: 1fr;
    }
    
    .collection-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .filters {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-label {
        font-size: 0.85rem;
        justify-content: center;
        text-align: center;
        align-self: center;
    }
    
    .filter-tags {
        justify-content: center;
        gap: 0.3rem;
        width: 100%;
    }
    
    .filter-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        flex: 0 0 auto;
    }
    
    .filter-actions {
        margin-top: 0.5rem;
    }
    
    .collection-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .collection-controls button {
        width: 100%;
        max-width: 200px;
    }
}
