/* ==========================================================================
   Marine Ecology, Fishing & Valley Aquarium System Stylesheet (css/fishing.css)
   ========================================================================== */

/* 1. Modal Container & Glassmorphic Card */
.marine-ecology-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10005;
}

.marine-modal-card {
    width: 740px;
    max-width: 95vw;
    max-height: 88vh;
    background: linear-gradient(135deg, rgba(15, 30, 50, 0.95), rgba(10, 20, 35, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 2. Header */
.marine-modal-card .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marine-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.marine-header-info h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.marine-rank-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

/* 3. Navigation Tabs */
.marine-tabs-nav {
    display: flex;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 16px;
    gap: 8px;
}

.marine-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.marine-tab:hover {
    color: #f1f5f9;
}

.marine-tab.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

/* 4. Tab Content */
.marine-tab-content {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

/* 5. Fish Almanac Journal */
.almanac-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    background: rgba(15, 23, 42, 0.5);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.almanac-stats {
    font-size: 0.85rem;
    color: #94a3b8;
}

.almanac-stats strong {
    color: #38bdf8;
}

.sell-all-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

.sell-all-btn:hover {
    filter: brightness(1.1);
}

.marine-journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.fish-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.fish-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.35);
}

.fish-card.tier-common { border-left: 4px solid #10b981; }
.fish-card.tier-rare { border-left: 4px solid #06b6d4; }
.fish-card.tier-legendary { border-left: 4px solid #a855f7; }

.fish-card.locked {
    opacity: 0.55;
    background: rgba(15, 23, 42, 0.35);
}

.fish-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fish-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.tier-pill {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.tier-common .tier-pill { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tier-rare .tier-pill { background: rgba(6, 182, 212, 0.2); color: #38bdf8; }
.tier-legendary .tier-pill { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.fish-details {
    flex: 1;
}

.fish-name {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 800;
}

.fish-habitat {
    margin: 0 0 6px 0;
    font-size: 0.75rem;
    color: #38bdf8;
}

.fish-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 6px;
}

.fish-desc {
    margin: 0 0 8px 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
}

.fish-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.fish-card-actions button {
    flex: 1;
    padding: 5px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* 6. Living Aquariums Tab */
.aquarium-view-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tank-selector-row {
    display: flex;
    gap: 8px;
}

.tank-pill-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tank-pill-btn.active {
    background: rgba(14, 165, 233, 0.25);
    border-color: #38bdf8;
    color: #fff;
}

.tank-showcase-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 18px;
}

.tank-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tank-showcase-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #38bdf8;
}

.tank-capacity-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.stocked-fish-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.stocked-fish-chip {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.release-fish-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 4px;
}

/* 7. Tackle Box & Baits */
.tackle-ranks-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tackle-box-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
}

.tackle-box-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    color: #fbbf24;
}

.baits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.bait-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bait-card:hover {
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

.bait-card.equipped {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.bait-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 6px;
}

.bait-name {
    font-weight: 800;
    font-size: 0.88rem;
    color: #fff;
    margin-bottom: 4px;
}

.bait-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.bait-status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.bait-card.equipped .bait-status-pill {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

/* Ranks Ladder */
.ranks-ladder {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
}

.rank-card.achieved {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(14, 165, 233, 0.08);
}

.rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.rank-header strong {
    color: #fff;
    font-size: 0.95rem;
}

.rank-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.rank-card.achieved .rank-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.rank-perk {
    margin: 0;
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* 8. Interactive Tension Reel Overlay */
.fishing-reel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10010;
}

.reel-box {
    width: 360px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 2px solid #38bdf8;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.3);
    text-align: center;
}

.reel-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.reel-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.reel-meter-track {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.reel-sweet-spot {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0.85), rgba(16, 185, 129, 0.4));
    border-left: 2px solid #10b981;
    border-right: 2px solid #10b981;
}

.reel-tension-pointer {
    position: absolute;
    top: -2px;
    width: 8px;
    height: 28px;
    background: #fbbf24;
    border: 1px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px #fbbf24;
    transform: translateX(-50%);
    transition: left 0.05s linear;
}

.reel-buttons-row {
    display: flex;
    gap: 8px;
}

.strike-btn {
    flex: 2;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    font-weight: 800;
    padding: 10px;
    font-size: 0.95rem;
}

.strike-btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.cancel-reel-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 10px;
    font-size: 0.85rem;
}
