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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #00000F;
    color: white;
    min-height: 100vh;
}

/* Header */
.header {
    background: #01019E;
    border-bottom: 2px solid #B4A400;
    padding: 0.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: grid;
    grid-template-columns: 1fr auto;
}

.header-version {
    margin-left: 0.5rem;
    margin-top: auto;
    font-size: 0.8rem;
    cursor: pointer;
}

.header-left h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    margin-top: auto;
}

.stat-label {
    font-size: 0.75rem;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: bold;
}

.season-progress-container {
    min-width: 150px;
}

.season-progress-bar {
    min-width: 100px;
    width: 100%;
    height: 8px;
    background: #1e3a8a;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.season-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #fbbf24, #f87171, #60a5fa);
    width: 0%;
    transition: width 0.3s ease;
}

.exp-progress-container {
    min-width: 150px;
}

.exp-progress-bar {
    min-width: 100px;
    width: 100%;
    height: 8px;
    background: #1e3a8a;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.exp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a000, #00ff00, #a0a000, #fbbf24);
    width: 0%;
    transition: width 0.3s ease;
}

.icon-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.15rem;
    margin: 0 0.15rem;
    transition: transform 0.2s;
}

    .icon-button:hover {
        transform: scale(1.2);
    }

.header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Navigation */
.nav-bar {
    background: #01019E;
    display: flex;
}

.nav-button {
    flex: 1;
    background: transparent;
    border: none;
    color: #93c5fd;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

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

    .nav-button.active {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border-bottom-color: #fbbf24;
    }

    .nav-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Screens */
.screen {
    display: none;
}

    .screen.active {
        display: block;
    }

/* Fish Screen */
.fishing-panel {
    background: #00007E;
    border: 2px solid #1010F2;
    border-radius: 12px;
    padding: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.location-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .location-display h2 {
        font-size: 1.5rem;
        color: #fbbf24;
    }

.equipment-display {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.last-catch-panel {
    background: #00003E;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid #1010F2;
}

.last-catch-title {
    font-size: 0.875rem;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Quest Panel */
.quest-panel {
    background: #00003E;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid #E2CE00;
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.quest-title {
    font-weight: bold;
    color: #fbbf24;
    font-size: 1rem;
}

.quest-target {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: white;
    text-align: center;
}

.quest-progress-container {
    margin-bottom: 0.75rem;
}

.quest-progress-bar {
    width: 100%;
    height: 1.25rem;
    background: #1e3a8a;
    border: 2px solid #2563eb;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.25rem;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #d946ef);
    transition: width 0.3s ease;
}

.quest-progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: #93c5fd;
}

.quest-rewards {
    padding-top: 0.25rem;
}

.quest-rewards-display {
    justify-content: center;
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.abandon-button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .abandon-button:hover {
        background: #b91c1c;
    }

.quest-cooldown, .quest-empty {
    text-align: center;
    padding: 0.5rem;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

    .equipment-item:last-child {
        margin-bottom: 0;
    }

.equipment-label {
    color: #93c5fd;
    font-weight: 600;
    min-width: 50px;
}

.equipment-stat {
    color: #4ade80;
    font-weight: 600;
}

.cast-button {
    width: 100%;
    background: #B48700;
    border: 1px solid #161100;
    color: white;
    border: none;
    padding: 4px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 0rem;
}

    .cast-button:hover:not(:disabled) {
        background: #E2A900;
        transform: translateY(-2px);
    }

    .cast-button:disabled {
        background: #594300;
        cursor: not-allowed;
    }

    .cast-button:active {
        transform: translateY(0);
    }

#progress-container {
    margin-bottom: 1.5rem;
}

#progress-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #93c5fd;
}

.progress-bar {
    width: 100%;
    height: 1.5rem;
    background: #1e3a8a;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #fbbf24;
    width: 0%;
    transition: width 0.1s linear;
}

.fish-info {
    background: #00003E;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid #1010F2;
}

    .fish-info > div {
        margin-bottom: 0.5rem;
    }

        .fish-info > div:last-child {
            margin-bottom: 0;
        }

#fish-name {
    font-weight: bold;
    font-size: 1.25rem;
}

.log-panel {
    background: #00003E;
    padding: 0.5rem;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid #1010F2;
}

.log-header {
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #93c5fd;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-entry {
    color: #bfdbfe;
    font-size: 1rem;
    margin-bottom: 0.1rem;
    padding: 0;
}

/* Inventory Screen */
.inventory-panel {
    background: #00007E;
    border: 2px solid #1010F2;
    border-radius: 12px;
    padding: 1rem;
    padding-top: 0;
}

.panel-header {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 0.5rem;
}

    .panel-header h2 {
        font-size: 1.5rem;
    }

.panel-header-stats {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 0.5em;
    gap: 0.5rem;
}

    .panel-header-stats h2 {
        font-size: 1.5rem;
    }

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.inventory-item {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 1rem;
    border-radius: 8px;
}

    .inventory-item > div:first-child {
        font-weight: bold;
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .inventory-item > div:nth-child(2) {
        font-size: 0.875rem;
        color: #93c5fd;
        margin-bottom: 0.2rem;
    }

#sell-all-button {
    background: #B48700;
    border: 1px solid #161100;
    color: white;
    border: none;
    padding: 0.5em;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 0rem;
}

    #sell-all-button:hover:not(:disabled) {
        background: #E2A900;
        transform: translateY(-2px);
    }

    #sell-all-button:disabled {
        background: #594300;
        cursor: not-allowed;
    }

    #sell-all-button:active {
        transform: translateY(0);
    }


.sell-button {
    width: 100%;
    background: #B48700;
    border: 1px solid #161100;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .sell-button:hover:not(:disabled) {
        background: #E2A900;
        transform: translateY(-2px);
    }

    .sell-button:disabled {
        background: #594300;
        cursor: not-allowed;
    }

    .sell-button:active {
        transform: translateY(0);
    }

/* Shop Screen */
.shop-panel {
    background: #00007E;
    border: 2px solid #1010F2;
    border-radius: 12px;
    padding: 1rem;
    padding-top: 0;
}

.shop-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #1010F2;
}

.shop-tab {
    background: transparent;
    border: none;
    color: #93c5fd;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

    .shop-tab:hover {
        color: white;
        background: rgba(255, 255, 255, 0.05);
    }

    .shop-tab.active {
        color: white;
        background: rgba(255, 255, 255, 0.2);
        border-bottom-color: #fbbf24;
    }

.token-shop-section {
    margin-bottom: 2rem;
}

    .token-shop-section:last-child {
        margin-bottom: 0;
    }

/* Inventory Tabs */
.inventory-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #1010F2;
}

.inventory-tab {
    background: transparent;
    border: none;
    color: #93c5fd;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

    .inventory-tab:hover {
        background: rgba(255, 255, 255, 0.05);
        color: white;
    }

    .inventory-tab.active {
        color: white;
        background: rgba(255, 255, 255, 0.2);
        border-bottom-color: #E2CE00;
    }

.inventory-tab-content {
    display: none;
}

    .inventory-tab-content.active {
        display: block;
    }

/* Equipment Slots */
.equipment-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.equipment-slot {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.equipment-slot-name {
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.equipment-slot-item {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.equipment-slot-bonus {
    color: #4ade80;
    font-size: 0.875rem;
}

.consumable-item {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consumable-active {
    border: 2px solid #E2CE00;
}

.upgrade-item {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 1rem;
    border-radius: 8px;
}

.upgrade-item-name {
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 0.25rem;
}

.upgrade-item-description {
    color: #93c5fd;
    font-size: 0.875rem;
}

.shop-tab-content {
    display: none;
}

    .shop-tab-content.active {
        display: block;
    }

    .shop-tab-content h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        color: #93c5fd;
    }

.shop-items {
    display: grid;
    gap: 0.75rem;
}

.shop-item {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.shop-item-stats {
    font-size: 0.875rem;
    color: #93c5fd;
}

.shop-item-button {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

    .shop-item-button:hover:not(:disabled) {
        background: #15803d;
    }

    .shop-item-button:disabled {
        background: #4b5563;
        cursor: not-allowed;
    }

    .shop-item-button.owned {
        background: #2563eb;
    }

    .shop-item-button.equipped {
        background: #fbbf24;
        color: #1e3a8a;
    }

/* Travel Screen */
.travel-panel {
    background: #00007E;
    border: 2px solid #1010F2;
    border-radius: 12px;
    padding: 1rem;
}

    .travel-panel h2 {
        font-size: 1.5rem;
    }

.travel-carousel {
    max-width: 800px;
    margin: 0 auto;
}

.travel-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.travel-nav-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

    .travel-nav-button:hover:not(:disabled) {
        background: #1e40af;
    }

    .travel-nav-button:disabled {
        background: #4b5563;
        cursor: not-allowed;
        opacity: 0.5;
    }

.travel-current-lake {
    font-size: 2rem;
    text-align: center;
    color: #fbbf24;
    flex: 1;
}

.travel-main-card {
    background: #00007E;
    padding: 0.5rem;
    border-top: 2px solid #2563eb;
}

    .travel-main-card.locked {
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.travel-locked-content {
    text-align: center;
}

.travel-lock-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.travel-locked-text {
    font-size: 1.25rem;
    color: #93c5fd;
    margin-bottom: 1.5rem;
}

.travel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

    .travel-card-header h3 {
        font-size: 1.25rem;
        color: #fbbf24;
    }

.travel-spots-section {
}

    .travel-spots-section h4 {
        font-size: 1rem;
        color: #fbbf24;
        margin-bottom: 0.75rem;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: auto;
    }

.travel-location {
    background: #1e3a8a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.travel-location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.travel-location-name {
    font-weight: bold;
    font-size: 1.25rem;
}

.travel-fish-summary {
    color: #4ade80;
    font-size: 0.875rem;
    font-weight: 600;
}

.travel-fish-list {
    background: #00003E;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 2px solid #2563eb;
}

.travel-fish-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
}

    .travel-fish-item:last-child {
        margin-bottom: 0;
    }

    .travel-fish-item.catchable {
        background: rgba(74, 222, 128, 0.1);
    }

    .travel-fish-item.too-strong {
        background: rgba(107, 114, 128, 0.1);
    }

.travel-fish-icon {
    font-weight: bold;
    font-size: 1.125rem;
    min-width: 20px;
}

.travel-fish-item.catchable .travel-fish-icon {
    color: #4ade80;
}

.travel-fish-item.too-strong .travel-fish-icon {
    color: #ef4444;
}

.travel-fish-rarity {
    color: #93c5fd;
    font-size: 0.875rem;
    margin-left: auto;
}

.travel-fish-locked {
    text-align: center;
    padding: 1rem;
    color: #9ca3af;
    font-style: italic;
}

.travel-spots {
    display: grid;
    grid-template-columns: 1fr repeat(3, 2fr);
    gap: 0.5rem;
}

.travel-spot-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .travel-spot-button:hover {
        background: #1e40af;
    }

    .travel-spot-button.current {
        background: #fbbf24;
        color: #1e3a8a;
    }

.unlock-button {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .unlock-button:hover:not(:disabled) {
        background: #15803d;
    }

    .unlock-button:disabled {
        background: #4b5563;
        cursor: not-allowed;
    }

/* Rarity colors */
.rarity-common {
    color: #9ca3af;
}

.rarity-uncommon {
    color: #4ade80;
}

.rarity-rare {
    color: #60a5fa;
}

.rarity-epic {
    color: #c084fc;
}

.rarity-legendary {
    color: #fbbf24;
}

/* Utilities */
.small-button {
    background: #B48700;
    border: 1px solid #161100;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .small-button:hover:not(:disabled) {
        background: #E2A900;
        transform: translateY(-2px);
    }

    .small-button:disabled {
        background: #594300;
        cursor: not-allowed;
    }

    .small-button:active {
        transform: translateY(0);
    }




/* Stats Screen */
.stats-panel {
    background: #00007E;
    border: 2px solid #1010F2;
    border-radius: 12px;
    padding: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 0.5rem;
    border-radius: 8px;
}

.stat-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: #fbbf24;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid #2563eb;
}

    .stat-row:last-child {
        border-bottom: none;
    }

    .stat-row span:first-child {
        color: #93c5fd;
    }

    .stat-row span:last-child {
        font-weight: 600;
    }

.records-by-location {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 0.5rem;
    border-radius: 8px;
}

    .records-by-location h3 {
        font-size: 1.25rem;
        margin-bottom: 0.2rem;
        color: #fbbf24;
    }

.location-record {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #2563eb;
}

    .location-record:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.location-record-name {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 0.2rem;
    color: #60a5fa;
}

.location-record-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.875rem;
}

    .location-record-stats div {
        color: #93c5fd;
    }

/* Info Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-container {
    background: #00007E;
    border: 2px solid #1010F2;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

    .modal-header h2 {
        margin: 0;
        color: #93c5fd;
        font-size: 1.5rem;
    }

.modal-close {
    background: none;
    border: none;
    color: #93c5fd;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: #ffffff;
    }

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.modal-tab {
    background: transparent;
    border: none;
    color: #93c5fd;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

    .modal-tab:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
    }

    .modal-tab.active {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border-bottom: 2px solid #60a5fa;
    }

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #00003E;
    border-radius: 8px;
}

.changelog-entry a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

    .changelog-entry a:hover {
        color: #93c5fd;
        text-decoration: underline;
    }

.info-section {
    color: #e0e7ff;
}

    .info-section h3 {
        color: #60a5fa;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .info-section h4 {
        color: #93c5fd;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .info-section p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .info-section ul {
        line-height: 1.8;
        margin-bottom: 1rem;
    }

    .info-section li {
        margin-left: 1rem;
    }

    .info-section strong {
        color: #93c5fd;
    }

/* Changelog Styles */
.changelog-entry {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #3b82f6;
    margin-bottom: 0.2rem;
}

    .changelog-entry:last-child {
        border-bottom: none;
    }

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .changelog-header h3 {
        margin: 0;
        color: #60a5fa;
    }

.changelog-date {
    color: #93c5fd;
    font-size: 0.875rem;
}

.changelog-list {
    list-style: none;
    padding: 0;
}

    .changelog-list li {
        padding-left: 1.5rem;
        position: relative;
    }

        .changelog-list li:before {
            color: #60a5fa;
            font-weight: bold;
            position: absolute;
            left: 0;
        }

/* Roadmap Styles */
.roadmap-item {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.2rem;
}

.roadmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .roadmap-header h4 {
        margin: 0;
        color: #93c5fd;
    }

.roadmap-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.status-planned {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid #22c55e;
}

.status-in-progress {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    border: 1px solid #fbbf24;
}

.status-considering {
    background: rgba(147, 197, 253, 0.2);
    color: #93c5fd;
    border: 1px solid #60a5fa;
}

/* About Styles */
.about-section {
    margin-bottom: 0.5rem;
}

    .about-section h4 {
        margin-top: 0;
        margin-bottom: 0.75rem;
        color: #60a5fa;
    }

    .about-section ul {
        list-style: none;
        padding: 0;
    }

    .about-section li {
        margin-bottom: 0.5rem;
    }

    .about-section a {
        color: #60a5fa;
        text-decoration: none;
        transition: color 0.2s;
    }

        .about-section a:hover {
            color: #93c5fd;
            text-decoration: underline;
        }

.attribution-item {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 0.5rem;
    border-radius: 6px;
}

/* Header buttons adjustment */
.header-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Scrollbar styling for modal */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 58, 138, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #60a5fa;
    }

/* Fishing Actions (Cast + Check Odds buttons) */
.fishing-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cast-button {
    flex: 2;
}

.check-odds-button {
    flex: 1;
    background: #B48700;
    border: 1px solid #161100;
    color: white;
    padding: 4px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

    .check-odds-button:hover:not(:disabled) {
        background-color: #E2A900;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
    }

    .check-odds-button:active {
        transform: translateY(0);
    }

/* Odds Modal Specific Styles */
.odds-modal {
    max-width: 700px;
}

.odds-info-section {
    color: #e0e7ff;
}

.odds-location-info {
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.odds-info-row {
    display: flex;
    justify-content: space-between;
}

    .odds-info-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.odds-label {
    color: #93c5fd;
    font-weight: 500;
}

.odds-value {
    color: #e0e7ff;
    font-weight: 600;
}

.odds-fish-section h3 {
    color: #60a5fa;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.odds-fish-section h4 {
    color: #93c5fd;
    margin-top: 1.5rem;
    font-size: 1rem;
}

.odds-fish-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.odds-fish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00003E;
    border: 2px solid #1010F2;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

    .odds-fish-item:hover {
        background: rgba(30, 58, 138, 0.5);
        border-color: #60a5fa;
    }

    .odds-fish-item.fish-boosted {
        background: rgba(34, 197, 94, 0.15);
        border-color: #22c55e;
    }

        .odds-fish-item.fish-boosted:hover {
            background: rgba(34, 197, 94, 0.25);
        }

    .odds-fish-item.fish-penalized {
        background: rgba(239, 68, 68, 0.15);
        border-color: #ef4444;
    }

        .odds-fish-item.fish-penalized:hover {
            background: rgba(239, 68, 68, 0.25);
        }

    .odds-fish-item.too-strong-item {
        background: rgba(107, 114, 128, 0.15);
        border-color: #6b7280;
    }

.odds-fish-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.odds-fish-rarity {
    font-size: 0.75rem;
    color: #93c5fd;
    text-transform: capitalize;
}

.odds-modifier {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    white-space: nowrap;
}

    .odds-modifier.positive {
        background: rgba(34, 197, 94, 0.2);
        color: #86efac;
        border: 1px solid #22c55e;
    }

    .odds-modifier.negative {
        background: rgba(239, 68, 68, 0.2);
        color: #fca5a5;
        border: 1px solid #ef4444;
    }

    .odds-modifier.neutral {
        background: rgba(107, 114, 128, 0.2);
        color: #9ca3af;
        border: 1px solid #6b7280;
    }

.odds-too-strong-section {
    padding-top: 0.5rem;
}





/* ====== MOBILE FIXES ====== */

/* Prevent global overflow */
html, body {
    overflow-x: hidden;
}

/* Make header responsive */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .header-left h1 {
            font-size: 1.125rem;
            gap: 4px;
        }

    .header-version {
        font-size: 0.75rem;
        margin-left: 0.25rem;
    }

    .header-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .stat {
        font-size: 0.875rem;
    }

    .stat-value {
        font-size: 0.875rem;
    }

    /* Make progress bars more compact on mobile */
    .exp-progress-bar,
    .season-progress-bar {
        height: 6px;
        min-width: 80px;
    }



    .icon-button {
        font-size: 1.25rem;
    }
}

/* Responsive nav bar */
@media (max-width: 600px) {
    .nav-bar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }

    .nav-button {
        flex: 1 1 33.333%;
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        min-width: 0; /* Allow text to shrink */
    }
}

/* Even smaller screens - stack nav buttons 2 per row */
@media (max-width: 400px) {
    .nav-button {
        flex: 1 1 50%;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Tabs wrap or scroll cleanly */
.shop-tabs,
.inventory-tabs,
.modal-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

/* On mobile, prevent wrapping and enable smooth scrolling */
@media (max-width: 768px) {
    .shop-tabs,
    .inventory-tabs {
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .shop-tab,
    .inventory-tab {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        flex-shrink: 0; /* Prevent tabs from shrinking */
    }

    .modal-tabs {
        flex-wrap: nowrap;
    }

    .modal-tab {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        flex-shrink: 0;
    }
}

/* Prevent padding from shrinking play area */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    /* Make panels more compact on mobile */
    .fishing-panel,
    .inventory-panel,
    .shop-panel,
    .travel-panel,
    .stats-panel {
        padding: 0.75rem;
    }

    /* Smaller text in some areas to fit better */
    .location-display h2 {
        font-size: 1.125rem;
    }

    /* Make buttons more touch-friendly */
    .cast-button {
        font-size: 1.125rem;
        padding: 0.75rem;
    }

    /* Adjust fishing actions layout on very small screens */
    @media (max-width: 400px) {
        .fishing-actions {
            flex-direction: column;
            gap: 0.5rem;
        }

        .cast-button {
            flex: 1;
        }

        .check-odds-button {
            flex: 1;
        }
    }

    /* Travel screen improvements */
    .travel-nav-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .travel-current-lake {
        font-size: 1.5rem;
    }

    .travel-nav-button {
        width: 100%;
    }

    /* Stats grid on mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Equipment slots on mobile */
    .equipment-slots {
        grid-template-columns: 1fr;
    }

    /* Inventory grid adjustments */
    .inventory-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix modal alignment on mobile */
.modal-overlay {
    overflow-y: auto;
    align-items: flex-start;
}
