/**
 * FazendaRPG - Fishing System Styles
 * Complete styles for fishing screen with light/dark theme support
 * @version 0.0.31
 */

/* ===== Fishing Banner ===== */
/* ===== FISHING BANNER (Continuação do céu do SVG) ===== */
.fishing-banner {
    width: 100%;
    height: 80px;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: none;
    /* Gradiente idêntico ao céu do SVG (dia) */
    background: linear-gradient(180deg, #87ceeb 0%, #b0e0e6 100%);
    position: relative;
    z-index: 1;
    border: none;
    transition: background 0.5s ease;
}

/* TEMA NOITE - Sincronizado com o SVG */
.dark-theme .fishing-banner {
    /* Gradiente idêntico ao céu do SVG (noite) */
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

/* ===== MINI-BANNERS das Seções (30% do tamanho) ===== */
.section-mini-banner {
    width: 100%;
    height: auto;
    min-height: 32px;
    margin: 0 auto 0.5rem auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.5s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem;
}

.section-mini-banner h3 {
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.section-mini-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: mini-banner-shimmer 3s infinite;
}

@keyframes mini-banner-shimmer {
    0% {
        left: -100%;
    }
    50%,
    100% {
        left: 100%;
    }
}

/* Banner de Locais de Pesca - tema água */
.spots-banner {
    background: linear-gradient(135deg, #4682b4 0%, #5ba3db 100%);
    position: relative;
}

.spots-banner::before {
    content: "🌊";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.7;
    animation: mini-banner-wave 2s ease-in-out infinite;
}

@keyframes mini-banner-wave {
    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(2px);
    }
}

/* Banner de Peixes - tema oceano */
.fish-banner {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    position: relative;
}

.fish-banner::before {
    content: "🐟";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.7;
    animation: mini-banner-swim 3s ease-in-out infinite;
}

@keyframes mini-banner-swim {
    0%,
    100% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-50%) translateX(2px) rotate(2deg);
    }
    75% {
        transform: translateY(-50%) translateX(-2px) rotate(-2deg);
    }
}

/* Banner de Conquistas - tema dourado */
.achievements-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    position: relative;
}

/* Banner de Peixes Bloqueados - tema vermelho suave */
.locked-fish-banner {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    position: relative;
}

/* Tema escuro para mini-banners */
.achievements-banner::before {
    content: "🏆";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.7;
    animation: mini-banner-trophy 2.5s ease-in-out infinite;
}

@keyframes mini-banner-trophy {
    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
}

/* Tema escuro para mini-banners */
.dark-theme .spots-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
}

.dark-theme .fish-banner {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.dark-theme .achievements-banner {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}

.dark-theme .locked-fish-banner {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
}

/* ===== Fishing Scene Container ===== */
.fishing-scene-container {
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: transparent;
    border: none;
}

.fishing-scene {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    display: block;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.fishing-scene svg {
    width: 100% !important;
    height: auto !important;
    display: block;
    aspect-ratio: 4/3;
}

/* Garantir que o SVG ocupe todo o espaço */
#fishing-scene-svg {
    width: 100% !important;
    height: auto !important;
    display: block;
    aspect-ratio: 4/3;
}

/* ===== Fishing Status ===== */
.fishing-status {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.4s ease-out;
    max-width: 90%;
}

.fishing-status.waiting {
    background: rgba(70, 130, 180, 0.95);
}

.fishing-status.bite {
    background: rgba(255, 215, 0, 0.95);
    color: #000;
    animation: pulse 0.6s infinite;
}

.fishing-status.minigame {
    background: rgba(34, 139, 34, 0.95);
}

.fishing-status.success {
    background: rgba(34, 197, 94, 0.95);
}

.fishing-status.fail {
    background: rgba(239, 68, 68, 0.95);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* ===== Mini-game ===== */
.fishing-minigame {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    animation: popIn 0.3s ease-out;
    -webkit-animation: popIn 0.3s ease-out;
    cursor: pointer;
    pointer-events: all;
    will-change: transform, opacity;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Overlay escuro atrás do minigame */
.fishing-minigame::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    animation: fadeIn 0.3s ease-out;
}

.fishing-minigame.active {
    display: block !important;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@-webkit-keyframes popIn {
    from {
        opacity: 0;
        -webkit-transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        -webkit-transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.minigame-header {
    margin-bottom: 0.75rem;
}

.minigame-title {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.minigame-timer {
    color: #ef4444;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.minigame-timer.warning {
    color: #ff0000;
    animation: timerWarning 0.5s ease-in-out infinite;
}

@keyframes timerWarning {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.minigame-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.minigame-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 4px;
    transition: width 0.2s ease;
}

.minigame-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    cursor: pointer;
    pointer-events: all;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.minigame-target {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(34, 197, 94, 0.4);
    border: 2px solid #22c55e;
    border-radius: 4px;
    animation: targetGlow 1s infinite;
    -webkit-animation: targetGlow 1s infinite;
    z-index: 10;
    pointer-events: all;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@keyframes targetGlow {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    }
}

@-webkit-keyframes targetGlow {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    }
}

.minigame-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #fff 0%, #ffd700 100%);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    transition: left 0.05s linear;
    z-index: 5;
    pointer-events: none;
}

.minigame-feedback {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.4rem;
    border-radius: 6px;
    margin-top: 0.4rem;
}

.minigame-feedback.good {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.minigame-feedback.bad {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ===== Fishing Spots ===== */
.fishing-spots-section {
    margin-bottom: 1rem;
}

/* Bait Counter */
.fishing-bait-counter {
    width: 90%;
    margin: 0.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bait-counter-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    padding: 0.54rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.bait-counter-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bait-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: bait-wiggle 2s ease-in-out infinite;
}

@keyframes bait-wiggle {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.bait-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    min-width: 30px;
    text-align: center;
    transition: transform 0.2s ease;
}

.dark-theme .bait-counter-content {
    background: linear-gradient(135deg, #6b4423 0%, #8b5a3c 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .bait-count {
    color: #ffa500;
}

.fishing-spots-section h3 {
    /* Agora está dentro do banner, estilos movidos para .section-mini-banner h3 */
}

.fishing-spots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    max-width: 100%;
}

.fishing-spot-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 79px;
    max-width: 106px;
    flex: 0 1 auto;
}

.fishing-spot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.fishing-spot-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
}

.spot-icon {
    font-size: 0.9rem;
}

.spot-info {
    text-align: center;
}

.spot-name {
    font-weight: 600;
    font-size: 0.55rem;
    margin-bottom: 0.1rem;
}

.spot-desc {
    font-size: 0.45rem;
    opacity: 0.8;
}

.fishing-spot-btn.active .spot-desc {
    opacity: 0.9;
}

/* ===== Fishing Tabs ===== */
.fishing-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-top: 2px solid var(--border-color);
    padding-top: 0.5rem;
}

.fishing-tab {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
    overflow: hidden;
}

.fishing-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.fishing-tab:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.fishing-tab:hover::before {
    left: 100%;
}

.fishing-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.fishing-tab span:first-child {
    font-size: 0.8rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.dark-theme .fishing-tab {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    color: #94a3b8;
}

.dark-theme .fishing-tab:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-color: #3b82f6;
    color: #dbeafe;
}

.dark-theme .fishing-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: white;
}

/* ===== Fishing Content ===== */
.fishing-content {
    padding: 1rem 0;
}

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

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

.fishing-section {
    margin-bottom: 1.5rem;
}

.fishing-section h3 {
    /* Agora está dentro do banner, estilos movidos para .section-mini-banner h3 */
}

/* ===== Fish List ===== */
.fishing-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.fish-card {
    background: linear-gradient(
        135deg,
        var(--card-bg) 0%,
        var(--bg-secondary) 100%
    );
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.fish-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fish-card:hover::before {
    opacity: 1;
}

.fish-card:not(.locked):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.2);
    border-color: var(--primary-color);
}

.fish-card.locked {
    opacity: 0.6;
    position: relative;
}

.fish-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.fish-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

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

.fish-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fish-card-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fish-stat {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem 0.4rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    white-space: nowrap;
}

.fish-card-locked {
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
}

.fish-card-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bbd 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-shadow: 0 2px 6px rgba(70, 130, 180, 0.3);
    position: relative;
    overflow: hidden;
}

.fish-card-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.fish-card-btn:hover::before {
    left: 100%;
}

.fish-card-btn:hover {
    background: linear-gradient(135deg, #5ba3db 0%, #4682b4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(70, 130, 180, 0.4);
}

.fish-card-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(70, 130, 180, 0.3);
}

/* ===== Achievements ===== */
.fishing-achievements {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.achievement-card {
    background: linear-gradient(
        135deg,
        var(--card-bg) 0%,
        var(--bg-secondary) 100%
    );
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    flex: 0 1 auto;
}

.achievement-card:not(.locked) {
    border-color: #ffd700;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.1) 0%,
        var(--card-bg) 100%
    );
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
}

.achievement-card:not(.locked):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}

.achievement-card.locked {
    opacity: 0.5;
}

.achievement-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.achievement-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== SVG Animations ===== */
#fishing-rod {
    transform-origin: 75px 148px;
}

@keyframes rodCast {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-15deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes bobberShake {
    0%,
    100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(3px);
    }
}

/* ===== Dark Theme Adjustments ===== */
.dark-theme .fish-card,
.dark-theme .achievement-card,
.dark-theme .fishing-spot-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme .fishing-banner,
.dark-theme .fishing-scene-container {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme .fish-card:not(.locked):hover,
.dark-theme .achievement-card:not(.locked):hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .fishing-spots {
        grid-template-columns: repeat(3, 1fr);
    }

    .fishing-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .fishing-achievements {
        grid-template-columns: 1fr;
    }

    .fishing-minigame {
        width: 95%;
        padding: 0.75rem;
    }

    .minigame-title {
        font-size: 0.8rem;
    }

    .fishing-status {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .fish-card-icon {
        font-size: 2rem;
    }

    .achievement-icon {
        font-size: 1.75rem;
    }

    .fishing-scene {
        height: auto;
        aspect-ratio: 4/3;
    }

    .fishing-scene svg {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/3;
    }

    #fishing-scene-svg {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 480px) {
    .fishing-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fishing-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .fishing-list {
        flex-direction: column;
        align-items: center;
    }

    .fish-card {
        width: 100%;
        max-width: 400px;
    }

    .fishing-spots {
        flex-direction: column;
        align-items: center;
    }

    .fishing-spot-btn {
        width: 100%;
        max-width: 400px;
    }

    .fishing-achievements {
        flex-direction: column;
        align-items: center;
    }

    .achievement-card {
        width: 100%;
        max-width: 400px;
    }
}

/* ===== Desktop Improvements ===== */
@media (min-width: 768px) {
    .fishing-list {
        justify-content: center;
    }

    .fish-card {
        min-width: 220px;
    }

    .fishing-achievements {
        justify-content: center;
    }

    .achievement-card {
        min-width: 220px;
    }

    .fishing-spots {
        justify-content: center;
    }

    .fishing-scene {
        height: auto;
        aspect-ratio: 4/3;
    }

    .fishing-scene svg {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/3;
    }

    #fishing-scene-svg {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/3;
    }
}

@media (min-width: 1024px) {
    .fishing-list {
        justify-content: center;
    }

    .fish-card {
        min-width: 200px;
        max-width: 250px;
    }

    .fishing-achievements {
        justify-content: center;
    }

    .achievement-card {
        min-width: 200px;
        max-width: 250px;
    }

    /* Melhorias para Desktop - Minigame de Pesca */
    .fishing-minigame {
        max-width: 600px;
        width: 85%;
        padding: 1.25rem;
    }

    .minigame-track {
        height: 50px;
    }

    .minigame-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .minigame-progress-bar {
        height: 10px;
    }

    .fishing-status {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

/* Media query específica para telas grandes (Desktop) */
@media (min-width: 1440px) {
    /* Mini-game Extra Grande */
    .fishing-minigame {
        max-width: 800px;
        width: 70%;
        padding: 2rem;
    }

    .minigame-track {
        height: 60px;
    }

    .minigame-title {
        font-size: 1.1rem;
    }
}

/* ===== Melhorias para Tema Escuro/Claro ===== */
/* Banner já definido no topo do arquivo - sem duplicação */

/* SVG Scene - Modo Escuro */
.dark-theme #fishing-scene-svg #skyGradient stop:first-child {
    stop-color: #1a1a2e !important;
}

.dark-theme #fishing-scene-svg #skyGradient stop:last-child {
    stop-color: #16213e !important;
}

/* Lua no modo noite */
.dark-theme #fishing-scene-svg #sun-moon {
    fill: #c0c0c0 !important;
    opacity: 0.6 !important;
}

/* Estrelas visíveis no modo noite */
.dark-theme #fishing-scene-svg #stars {
    opacity: 1 !important;
}

/* Lanterna visível no modo noite */
.dark-theme #fishing-scene-svg #lantern {
    opacity: 1 !important;
}

/* Pássaros mais escuros no modo noite */
.dark-theme #fishing-scene-svg #birds path {
    stroke: #888 !important;
}

/* Nuvens mais escuras no modo noite */
.dark-theme #fishing-scene-svg #cloud1 ellipse,
.dark-theme #fishing-scene-svg #cloud2 ellipse {
    fill: #2a2a3e !important;
    opacity: 0.3 !important;
}

/* Montanhas mais escuras */
.dark-theme #fishing-scene-svg path[fill="#6B8E23"] {
    fill: #2a3a2a !important;
    opacity: 0.6 !important;
}

/* Água mais escura no modo noite */
.dark-theme #fishing-scene-svg #waterGradient stop:first-child {
    stop-color: #1a2a3a;
}

.dark-theme #fishing-scene-svg #waterGradient stop:last-child {
    stop-color: #0a1a2a;
}

/* Locais de Pesca - Layout Melhorado */
.fishing-spots {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.fishing-spot-btn {
    flex: 1;
    min-width: 0;
    max-width: 198px;
}

/* Cards com Background Adequado */
.fish-card,
.achievement-card {
    background: var(--card-bg, #ffffff);
    border: 2px solid var(--border-color, #e5e7eb);
}

.dark-theme .fish-card,
.dark-theme .achievement-card {
    background: #1e293b;
    border-color: #334155;
}

/* Botões com Estilo Apropriado */
.fish-card-btn {
    background: linear-gradient(135deg, #4682b4 0%, #3a7bbd 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.fish-card-btn:hover {
    background: linear-gradient(135deg, #5ba3db 0%, #4682b4 100%);
}

.fish-card-btn:active {
    transform: scale(0.98);
}

.dark-theme .fish-card-btn {
    background: linear-gradient(135deg, #3a7bbd 0%, #2563eb 100%);
}

.dark-theme .fish-card-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Spot Buttons com Background */
.fishing-spot-btn {
    background: var(--card-bg, #ffffff);
    border: 2px solid var(--border-color, #e5e7eb);
    color: var(--text-primary, #1f2937);
}

.fishing-spot-btn.active {
    background: linear-gradient(135deg, #4682b4 0%, #3a7bbd 100%);
    color: white;
    border-color: #4682b4;
}

.dark-theme .fishing-spot-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.dark-theme .fishing-spot-btn.active {
    background: linear-gradient(135deg, #3a7bbd 0%, #2563eb 100%);
    border-color: #2563eb;
}

/* Mini-game Clicável */
.fishing-minigame {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.fishing-minigame.active {
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 4px 16px rgba(70, 130, 180, 0.4);
    }
    50% {
        box-shadow: 0 4px 24px rgba(70, 130, 180, 0.6);
    }
}

/* Status Banner Clicável */
.fishing-status.bite,
.fishing-status.minigame {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Peixes Disponíveis - Grid Melhorado */
.fishing-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .fishing-list {
        justify-content: center;
    }

    .fishing-spots {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fishing-spot-btn {
        flex: 0 1 auto;
        min-width: 60px;
        max-width: 80px;
    }

    .fish-card {
        min-width: 180px;
        max-width: 220px;
    }
}

/* Banner limpo - sem decorações extras (continuação do céu SVG) */

/* Scene Container no Dark Theme */
.dark-theme .fishing-scene-container {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    background: transparent;
    border: none;
}

/* ===== CORREÇÃO: Locais de Pesca Centralizados ===== */
.fishing-spots {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.fishing-spot-btn {
    flex: 0 1 auto !important;
    min-width: 79px !important;
    max-width: 106px !important;
    padding: 0.4rem !important;
}

.spot-icon {
    font-size: 0.9rem !important;
}

.spot-name {
    font-size: 0.55rem !important;
}

.spot-desc {
    font-size: 0.45rem !important;
}

@media (max-width: 480px) {
    .fishing-spots {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .fishing-spot-btn {
        flex: 0 1 auto !important;
        min-width: 72px !important;
        max-width: 98px !important;
    }

    .fishing-scene-container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .fishing-scene {
        height: auto !important;
        aspect-ratio: 4/3;
    }

    .fishing-scene svg,
    #fishing-scene-svg {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/3;
    }
}

/* ===================================
   LANDSCAPE MODE (celular deitado)
   =================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .fishing-scene-container {
        max-height: 40vh;
        margin-bottom: 0.5rem;
    }

    .fishing-scene {
        max-height: 35vh;
        height: auto;
        aspect-ratio: 4/3;
    }

    .fishing-scene svg,
    #fishing-scene-svg {
        width: 100% !important;
        height: auto !important;
        max-height: 35vh;
        aspect-ratio: 4/3;
    }

    .fishing-status {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .fishing-minigame {
        max-height: 30vh;
        padding: 0.5rem;
    }

    .minigame-track {
        height: 8px;
    }

    .minigame-title {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
}
