﻿.pezdex-hero {
    padding: clamp(1rem, 2vw, 1.6rem);
    margin-bottom: 1rem;
}

.pezdex-hero h1 {
    font-size: clamp(1.35rem, 2.8vw, 2.2rem);
    margin-bottom: 0.45rem;
}

.pezdex-hero p {
    color: var(--text-soft);
    line-height: 1.56;
}

.pezdex-tools {
    padding: 0.95rem;
    margin-bottom: 1rem;
    display: grid;
    gap: 0.5rem;
}

.pezdex-tools label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    color: var(--text-soft);
}

.pezdex-tools input {
    width: min(560px, 100%);
    border: 1px solid var(--line);
    background: rgba(8, 25, 38, 0.82);
    color: var(--text-main);
    border-radius: 9px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
}

.pezdex-tools input:focus {
    outline: 2px solid rgba(92, 242, 215, 0.45);
}

#resultsCount {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.fish-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.95rem;
}

.fish-card {
    border: 2px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(170deg, rgba(17, 41, 58, 0.95), rgba(7, 21, 33, 0.95));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.fish-card-img {
    border-bottom: 1px solid #204c66;
    height: 140px;
    background: rgba(230, 247, 255, 0.9);
}

.fish-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fish-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
}

.fish-name {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.fish-scientific {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-style: italic;
    margin-bottom: 0.55rem;
}

.fish-stats {
    list-style: none;
    display: grid;
    gap: 0.3rem;
}

.fish-stats li {
    font-size: 0.78rem;
    color: #cae8f4;
}

.fish-stats span {
    font-weight: 700;
    color: var(--text-main);
}

.fish-memory-btn {
    margin-top: auto;
    border: 1px solid var(--accent-2);
    background: linear-gradient(90deg, #1f4d8f, #1f69b8);
    color: #e9f5ff;
    border-radius: 9px;
    padding: 0.52rem 0.65rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.fish-memory-btn:hover {
    filter: brightness(1.08);
}

.empty-results {
    border: 2px dashed var(--line);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-soft);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 8, 14, 0.8);
    z-index: 90;
}

.modal-content {
    position: relative;
    width: min(540px, 100%);
    padding: 1rem;
}

.modal-content h2 {
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.modal video {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 180px;
    background: #04131f;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 1.3rem;
    cursor: pointer;
}

.modal-fallback {
    margin-top: 0.7rem;
    font-size: 0.86rem;
    color: #ffd5d5;
    display: none;
}

.rareza-comun {
    border-color: #3f708f;
}

.rareza-raro {
    border-color: #3f8dff;
    box-shadow: 0 0 0 1px rgba(63, 141, 255, 0.3), 0 12px 24px rgba(0, 0, 0, 0.28);
}

.rareza-legendario {
    border-color: #ffd76a;
    box-shadow: 0 0 0 1px rgba(255, 215, 106, 0.4), 0 14px 27px rgba(0, 0, 0, 0.3);
}
