:root {
    --primary-color: #2d5a27;
    --secondary-color: #4a7c44;
    --accent-color: #f1c40f;
    --text-color: #333;
    --bg-color: #f4f7f1;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-link-nav {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 15px;
    background: var(--primary-color);
    color: white !important;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.admin-link-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header.standard {
    background: var(--card-bg);
    padding: 40px 0;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.minimal {
    padding: 20px 0;
    background: none;
    box-shadow: none;
}

header.minimal .logo-area {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.minimal #site-logo {
    font-size: 2rem;
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

#site-logo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

#site-tagline {
    font-size: 1.1rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

#main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: #e2e8f0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: #4a5568;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.2);
}

/* Content Grid / List */
#content-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

#content-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#content-grid.list-view .animal-card {
    display: flex;
    height: 150px;
}

#content-grid.list-view .card-image {
    width: 250px;
    height: 100%;
}

#content-grid.list-view .card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.animal-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.animal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.animal-card:hover .card-image {
    transform: scale(1.05);
}

.card-info {
    padding: 25px;
}

.card-info h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.status-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    margin: 5px 0;
}

.scientific-name {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-category {
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal Styles */
#modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    background: var(--card-bg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    position: relative;
    overflow-y: auto;
    padding: 40px;
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    z-index: 10;
}

/* Animal Details Styling */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-media {
    position: relative;
}

.modal-image {
    width: 100%;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.play-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
}

/* Sound Wave Animation */
.sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
    margin-top: 15px;
}

.bar {
    width: 4px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 2px;
}

.animating .bar {
    animation: wave 1s infinite ease-in-out;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave {

    0%,
    100% {
        height: 5px;
    }

    50% {
        height: 30px;
    }
}

.detail-item {
    margin-bottom: 20px;
}

.detail-label {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    border-top: 3px solid var(--primary-color);
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
}

.accept-btn {
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* Legal Modal Utility */
.legal-view h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.legal-text {
    font-size: 1rem;
    color: #444;
}

/* Footer Styles */
footer.standard {
    background: #1a1a1a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

footer.compact {
    background: #f8f9fa;
    color: #333;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

footer.compact a {
    color: #666;
}

/* Ad Slots Styling */
.ad-container {
    width: 100%;
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    width: 100%;
    max-width: 970px;
    height: 90px;
    background: #f1f2f6;
    border: 2px dashed #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .ad-placeholder {
        height: 100px;
        font-size: 0.75rem;
    }
}

/* Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.submit-btn {
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: 10px;
}

.submit-btn:hover {
    background: #23471e;
}

.form-success {
    text-align: center;
    padding: 30px;
    color: var(--primary-color);
}

.form-success i {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    #site-logo {
        font-size: 2.5rem;
    }
}