/* Котешки.bg — Main Stylesheet */
:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --accent-dark: #d35400;
    --bg-light: #faf9f6;
    --bg-card: #ffffff;
    --text: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --border: #e8e6e1;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header {
    background: var(--primary);
    color: #fff;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before { content: "🐱"; }

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

nav a:hover { color: #fff; }
nav a.active { color: var(--accent); font-weight: 600; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #4a6741 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/hero-pattern.svg') center/cover no-repeat;
    opacity: 0.05;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
    position: relative;
}

.hero .cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1em;
    position: relative;
}

.hero .cta-btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

.section-title {
    text-align: center;
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.05em;
}

/* ===== BREED GRID ===== */
.breed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.breed-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.breed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.breed-card .card-img {
    height: 200px;
    overflow: hidden;
    background: #f0ede8;
}

.breed-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.breed-card:hover .card-img img { transform: scale(1.05); }

.breed-card .card-body {
    padding: 20px;
}

.breed-card h3 {
    font-size: 1.15em;
    color: var(--primary);
    margin-bottom: 6px;
}

.breed-card .breed-origin {
    font-size: 0.85em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.breed-card .breed-desc {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breed-card .card-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent);
}

.breed-card .card-link::after { content: " →"; }

/* ===== BREED DETAIL PAGE ===== */
.breed-detail {
    padding: 48px 0;
}

.breadcrumb {
    font-size: 0.85em;
    color: var(--text-light);
    margin-bottom: 32px;
}

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

.breed-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.breed-hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.breed-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breed-hero-info h1 {
    font-size: 2.2em;
    color: var(--primary);
    margin-bottom: 8px;
}

.breed-hero-info .breed-alt-name {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breed-hero-info .breed-origin-tag {
    display: inline-block;
    background: #eef2f7;
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 20px;
}

.breed-hero-info .breed-desc {
    font-size: 1em;
    color: var(--text);
    line-height: 1.8;
}

/* ===== CHARACTERISTICS TABLE ===== */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.char-item {
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.char-item .char-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.char-item .char-value {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary);
}

/* ===== TEXT SECTIONS ===== */
.text-section {
    margin-bottom: 48px;
}

.text-section h2 {
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.text-section p {
    margin-bottom: 16px;
    color: var(--text);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 48px 24px 24px;
    margin-top: 64px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1em;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    margin-bottom: 6px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 12px; }
    nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .hero { padding: 48px 24px; }
    .hero h1 { font-size: 1.8em; }
    .breed-hero { grid-template-columns: 1fr; }
    .breed-grid { grid-template-columns: 1fr 1fr; }
    .char-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .breed-grid { grid-template-columns: 1fr; }
    .char-grid { grid-template-columns: 1fr; }
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.08); }