* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}

main {
    padding: 30px;
}

.game-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section h2 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5em;
}

.fishing-area, .selling-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fishing-status {
    min-height: 30px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    font-style: italic;
    color: #666;
}

.catch-display {
    min-height: 50px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 1.2em;
    text-align: center;
    font-weight: bold;
    color: #2e7d32;
}

.sell-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sell-info {
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
}

.upgrades-panel {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upgrades-panel h2 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5em;
}

.upgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.upgrade-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.upgrade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.upgrade-card.owned {
    background: #e8f5e9;
    border-color: #4caf50;
}

.upgrade-card.unaffordable {
    opacity: 0.5;
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.upgrade-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.upgrade-level {
    background: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.upgrade-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.upgrade-stats {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.upgrade-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cost-label {
    color: #666;
}

.cost-value {
    font-weight: bold;
    color: #2e7d32;
    font-size: 1.1em;
}

.upgrade-btn {
    width: 100%;
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.upgrade-btn:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
}

.upgrade-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

footer {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.secondary-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.secondary-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.secondary-btn.danger {
    background: #dc3545;
}

.secondary-btn.danger:hover {
    background: #c82333;
}

/* Animations */
@keyframes catchAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.catch-animation {
    animation: catchAnimation 0.5s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.fishing {
    animation: pulse 1s infinite;
}

.cooking-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.cooking-section h2 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5em;
}

.cooking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.cooking-card {
    transition: all 0.3s ease;
}

.cooking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

