/* css/style.css */
:root {
    --deep-blue: #0d47a1;
    --aqua: #00bcd4;
    --coral: #ff6b6b;
    --light-bg: #f0f8ff;
    --gray-btn: #6c757d;
    --gray-btn-hover: #5a6268;
    --text-color: #333;
    --border-color: #ddd;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --shadow: rgba(13, 71, 161, 0.15);
    --telegram-blue: #0088cc;
    --success-green: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f8ff 100%);
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Защитный экран */
#protectionOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--aqua) 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Шапка */
header {
    background: linear-gradient(to right, var(--deep-blue), var(--aqua));
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    padding-right: 220px; /* Оставляем место для кнопок */
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    padding-right: 220px; /* Оставляем место для кнопок */
}

/* Кнопки помощи и Telegram */
.header-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 2;
}

.help-btn {
    background: linear-gradient(135deg, var(--success-green) 0%, #20c997 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.help-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea384 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.telegram-btn {
    background: linear-gradient(135deg, var(--telegram-blue) 0%, #006699 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #006fa8 0%, #00557a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

/* Основной контейнер */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Панель фильтров */
.filter-panel {
    flex: 0 0 300px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px var(--shadow);
    height: fit-content;
    position: relative;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--aqua);
}

.filter-title {
    font-size: 1.4rem;
    color: var(--deep-blue);
    font-weight: 600;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 1.1rem;
}

/* Поле поиска */
.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--off-white);
}

.search-input:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
    background: white;
}

.search-input::placeholder {
    color: #aaa;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--aqua);
    pointer-events: none;
}

.search-info {
    font-size: 0.85rem;
    color: var(--gray-btn);
    margin-top: 8px;
    text-align: center;
}

.slider-container {
    padding: 0 10px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.3s;
}

input[type="range"]:hover {
    background: #dee2e6;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--aqua);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #00acc1;
    transform: scale(1.1);
}

.slider-value {
    text-align: center;
    font-weight: 600;
    color: var(--deep-blue);
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 8px;
    background: var(--off-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Радио кнопки */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.radio-label {
    background: var(--off-white);
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 100px;
    text-align: center;
    position: relative;
    user-select: none;
}

.radio-label:hover {
    background: #e9ecef;
    border-color: var(--aqua);
}

.radio-label.selected {
    background: var(--aqua);
    color: white;
    border-color: var(--aqua);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

/* Кнопки в фильтрах */
.filter-btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    width: 100%;
}

.search-btn {
    background: linear-gradient(135deg, var(--aqua) 0%, #00acc1 100%);
    color: white;
}

.search-btn:hover {
    background: linear-gradient(135deg, #00acc1 0%, #0097a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.clear-btn {
    background: linear-gradient(135deg, var(--gray-btn) 0%, #5a6268 100%);
    color: white;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Карточки рыб */
.fish-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.fish-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
}

.fish-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(13, 71, 161, 0.2);
}

.fish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--deep-blue), var(--aqua));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.fish-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e6f7ff 0%, #b3e5fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    overflow: hidden;
}

.fish-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.1));
}

.fish-content {
    padding: 25px;
}

.fish-name {
    font-size: 1.4rem;
    color: var(--deep-blue);
    margin-bottom: 5px;
    font-weight: 700;
}

.fish-latin {
    font-size: 1rem;
    color: var(--gray-btn);
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-latin {
    background: none;
    border: none;
    color: var(--aqua);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.copy-latin:hover {
    background: #e6f7ff;
    color: var(--deep-blue);
}

.fish-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--off-white);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 120px;
}

.stat i {
    color: var(--aqua);
    font-size: 1rem;
}

.fish-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Кнопки в карточках */
.btn-group {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.btn-details {
    background: linear-gradient(135deg, var(--aqua) 0%, #00acc1 100%);
    color: white;
}

.btn-details:hover {
    background: linear-gradient(135deg, #00acc1 0%, #0097a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-google {
    background: linear-gradient(135deg, var(--gray-btn) 0%, #5a6268 100%);
    color: white;
}

.btn-google:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-back {
    background: linear-gradient(135deg, var(--gray-btn) 0%, #5a6268 100%);
    color: white;
    margin-bottom: 25px;
    width: auto;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.btn-back:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
}

/* Детальная информация */
.detail-view {
    width: 100%;
    display: none;
}

/* Сообщения */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--deep-blue);
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px var(--shadow);
    animation: fadeIn 0.5s ease;
}

.no-results i {
    font-size: 4rem;
    color: var(--aqua);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    color: #856404;
}

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

/* Футер */
.footer {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
}

/* Уведомление о копировании */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Мобильная адаптация */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    .filter-panel {
        width: 100%;
    }
    
    .fish-grid {
        grid-template-columns: 1fr;
    }
    
    .fish-stats {
        flex-direction: column;
    }
    
    .stat {
        width: 100%;
        justify-content: center;
    }
    
    .filter-group .filter-btn {
        width: 100%;
    }
    
    h1, .subtitle {
        padding-right: 0;
    }
    
    .header-buttons {
        position: static;
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .fish-image {
        height: 180px;
        font-size: 3.5rem;
    }
    
    .filter-group > div {
        flex-direction: column;
    }
    
    .header-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .help-btn, .telegram-btn {
        width: 100%;
        justify-content: center;
    }
}
[file content end]