/* ========================================
   AnglerMaps.nl Custom Theme
   Belo-Zelen-Blauw Palette
   ======================================== */

:root {
    /* Color Palette - Fishing Theme */
    --primary-color: #2c7a7b;        /* Teal/Turquoise */
    --primary-light: #e6f7f7;
    --primary-dark: #1a4d4e;

    --secondary-color: #38a169;      /* Green */
    --secondary-light: #e8f5e9;
    --secondary-dark: #2d6e4b;

    --accent-color: #4299e1;         /* Blue */
    --accent-light: #e6f4fb;
    --accent-dark: #2b6cb0;

    --neutral-50: #f8fafb;
    --neutral-100: #f1f5f8;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e0;
    --neutral-400: #a0aec0;
    --neutral-500: #718096;
    --neutral-600: #4a5568;
    --neutral-700: #2d3748;
    --neutral-800: #1a202c;

    --text-color: #2d3748;
    --text-muted: #718096;

    --success-color: #38a169;
    --warning-color: #dd6b20;
    --error-color: #e53e3e;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ========================================
   Base Overrides & Typography
   ======================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
}

/* ========================================
   Header & Navigation
   ======================================== */

.menu-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.menu-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
}

.menu-header nav ul {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.menu-header nav ul li {
    margin: 0;
}

.menu-header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color var(--transition-fast);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-header nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.logo-link {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-link svg {
    color: white;
}

@media (max-width: 768px) {
    .menu-header nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .menu-header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu-header nav a {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 5rem 1rem 8rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1600&h=900&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.button-primary,
.button-secondary {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.button-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--neutral-50);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem 5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: 5rem 1rem;
    background: var(--neutral-50);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--neutral-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.875rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .features-section {
        padding: 3rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   Statistics Section
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 4rem 1rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    animation: fadeInUp 0.8s ease-out;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 1rem;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ========================================
   Map Preview Section
   ======================================== */

.map-preview-section {
    padding: 5rem 1rem;
    background: white;
}

.map-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.map-preview-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.map-preview-text p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.map-preview-text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.map-preview-text ul li {
    padding: 0.625rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.map-preview-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.map-preview-visual {
    position: relative;
}

.map-placeholder {
    background: var(--neutral-100);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.map-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .map-preview-section {
        padding: 3rem 1rem;
    }

    .map-preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-preview-text h2 {
        font-size: 1.75rem;
    }
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    padding: 4rem 1rem;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.cta-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    color: var(--text-color);
}

.cta-form input[type="email"]:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.cta-form button {
    padding: 0.875rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.cta-form button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form button {
        width: 100%;
    }
}

/* ========================================
   Cards & Grid System
   ======================================== */

.row {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.g-4 {
    gap: 1.5rem;
}

.col-md-6 {
    grid-column: span 1;
}

.col-lg-4 {
    grid-column: span 1;
}

.col-lg-3 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .row:has(.col-lg-4) {
        grid-template-columns: repeat(3, 1fr);
    }

    .row:has(.col-lg-3) {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: white;
    border-radius: 0.875rem;
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
}

.card.h-100 {
    height: 100%;
}

.card.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.stretched-link {
    position: relative;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: '';
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background: var(--neutral-800);
    color: var(--neutral-300);
    padding: 3rem 1rem 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-col h4,
.footer-col h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-col p {
    line-height: 1.7;
    margin: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.625rem;
}

.footer-col a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-700);
    color: var(--neutral-400);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.bg-light {
    background-color: var(--neutral-50);
}

.text-muted {
    color: var(--text-muted);
}

.text-decoration-none {
    text-decoration: none;
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.5rem;
}

.small {
    font-size: 0.875rem;
}

/* ========================================
   Markdown Content
   ======================================== */

.markdown-body {
    line-height: 1.7;
    color: var(--text-color);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-body p {
    margin-bottom: 1.25rem;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.markdown-body a:hover {
    color: var(--primary-dark);
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.markdown-body code {
    background: var(--neutral-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.markdown-body pre {
    background: var(--neutral-100);
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.markdown-body pre code {
    background: none;
    padding: 0;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .menu-header,
    .site-footer,
    .hero-section,
    .cta-section {
        display: none;
    }

    .card {
        break-inside: avoid;
    }
}
/* ========================================
   Pagination v2 — простые круглые кнопки
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

/* На всякий случай убиваем маркеры у li */
.pagination li {
    list-style: none;
}

.pagination li::marker {
    content: '';
}

/* Кнопки-страницы */
.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 2.5rem;
    height: 2.5rem;
    padding: 0;

    border-radius: 50%;
    border: 1px solid var(--neutral-200);
    background-color: #ffffff;
    color: var(--text-color);

    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;

    transition:
            background-color var(--transition-fast),
            color var(--transition-fast),
            border-color var(--transition-fast),
            box-shadow var(--transition-fast),
            transform var(--transition-fast);
}

/* Стрелки в таких же кружках, просто символ внутри чуть меньше */
.pagination .page-link span[aria-hidden="true"] {
    font-size: 0.85rem;
}

/* Hover / focus */
.pagination .page-link:hover,
.pagination .page-link:focus-visible {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 0 0 1px rgba(44, 122, 123, 0.12);
    transform: translateY(-1px);
    outline: none;
}

/* Активная страница */
.pagination .page-item.active .page-link,
.pagination .page-link[aria-current="page"] {
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
    transform: none;
}

/* Не даём ховеру ломать active */
.pagination .page-item.active .page-link:hover,
.pagination .page-link[aria-current="page"]:hover {
    transform: none;
}

/* Disabled (First / Prev / Next / Last) */
.pagination .page-item.disabled .page-link,
.pagination .page-link[aria-disabled="true"] {
    background-color: var(--neutral-100);
    border-color: var(--neutral-200);
    color: var(--neutral-400);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination .page-link {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.85rem;
    }
}
/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    padding: 4rem 1rem;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* сама форма */

.cta-form {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto;
}

/* поле ввода e-mail */

.cta-form input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #ffffff;
    color: var(--text-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 0; /* перекрываем стандартный отступ Pico */
}

.cta-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.cta-form input[type="email"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
    box-shadow: var(--shadow-lg);
}

/* кнопка */

.cta-form button {
    padding: 0.9rem 1.9rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    margin-bottom: 0; /* тоже убираем нижний отступ */
    transition:
            background var(--transition-fast),
            transform var(--transition-fast),
            box-shadow var(--transition-fast);
}

.cta-form button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* мобильная версия: инпут над кнопкой */

@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form button {
        width: 100%;
    }
}
