/*
Theme Name: Catagecheck V2
Author: Antigravity
Description: A modern overhaul of catagecheck.com, optimized for Google Adsense.
Version: 1.0
*/

:root {
    --primary: #00ea7b;
    /* Neon Green */
    --primary-light: #6ff7b7;
    --secondary: #00d2ff;
    /* Cyan */
    --accent: #2ecc71;
    --accent-glow: rgba(46, 204, 113, 0.4);
    --background: #f0fdf4;
    --card-bg: #ffffff;
    --text: #1a202c;
    --text-muted: #4a5568;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --transition: all 0.3s ease;
    --glass: rgba(255, 255, 255, 0.9);
}

[data-theme='dark'] {
    --primary: #34d399;
    /* Bright Neon Green for Dark Mode */
    --primary-light: #059669;
    --secondary: #38bdf8;
    /* Bright Cyan */
    --accent: #2ecc71;
    --accent-glow: rgba(52, 211, 153, 0.3);
    --background: #0f172a;
    /* Deep Slate */
    --card-bg: #1e293b;
    /* Lighter Slate */
    --text: #f8fafc;
    /* White-ish */
    --text-muted: #cbd5e1;
    /* Light Gray */
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --glass: rgba(30, 41, 59, 0.95);
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--card-bg);
    border-bottom: none;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.theme-toggle {
    background: #e2e8f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: var(--transition);
    margin-left: 20px;
}

.theme-toggle:hover {
    transform: none;
    background: #cbd5e1;
    color: #1e293b;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary);
    border-bottom: none;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        justify-content: center;
        gap: 15px;
    }
}

.hero {
    padding: 80px 0 120px;
    text-align: center;
    background: linear-gradient(135deg, #70e1f5 0%, #ffd194 100%);
    /* Placeholder for Teal/Green if needed, but per request matching the fresh look */
    background: linear-gradient(100deg, #bbf7d0 0%, #22d3ee 50%, #818cf8 100%);
    /* More aligned with "Green/Teal" */
    margin-bottom: -60px;
    /* Overlap effect */
    color: #0f172a;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    border: none;
    transition: var(--transition);
}

.card:hover {
    transform: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.calc-tabs {
    display: flex;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.05);
    padding: 5px;
    border-radius: 12px;
}

.calc-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-muted);
}

.calc-tab.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.calc-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.calc-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
}

input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    background: var(--card-bg);
    color: var(--text);
    transition: var(--transition);
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.result-card {
    background: linear-gradient(135deg, var(--secondary), var(--primary-light));
    color: #fff;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 25px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px var(--accent-glow);
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    from {
        box-shadow: 0 10px 20px var(--accent-glow);
    }

    to {
        box-shadow: 0 15px 35px var(--accent-glow);
    }
}

[data-theme='light'] .result-card {
    color: #0f172a;
    background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
    border: 2px solid var(--primary);
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin: 10px 0;
    color: var(--primary);
}

.featured-profile {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.featured-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
}

.profile-content a:hover {
    color: var(--primary);
}

/* Page Content Styling */
article h2 {
    color: var(--primary);
    margin-top: 40px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

article ul {
    margin: 20px 0;
    padding-left: 20px;
}

article li {
    margin-bottom: 15px;
}

article a[target="_blank"] {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

article a[target="_blank"]:hover {
    transform: translateX(5px);
    opacity: 0.8;
}

article a[target="_blank"]:hover {
    transform: translateX(5px);
    opacity: 0.8;
}

/* Breed Encyclopedia Styles */
.breeds-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.breed-card {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 280px;
}

.breed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.breed-image-wrap {
    flex: 0 0 300px;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.breed-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.breed-card:hover .breed-image-wrap img {
    transform: scale(1.05);
}

.breed-card-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.breed-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
}

.breed-meta {
    background: rgba(210, 180, 140, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
    align-self: flex-start;
}

.breed-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.breed-info-label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 4px;
}

.breed-info-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .breed-card {
        flex-direction: column;
    }

    .breed-image-wrap {
        flex: 0 0 200px;
    }
}

.tp-of-the-day {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 300px;
    background: var(--accent);
    color: #fff;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}