/* ========================================
   MAIN STYLESHEET - Chicken Farm Website
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #D4A843;
    --primary-dark: #B8912E;
    --secondary: #5B7F3B;
    --secondary-dark: #4A6B2E;
    --bg: #FFF9F0;
    --bg-card: #FFFFFF;
    --text: #3D2E1C;
    --text-light: #7A6B5D;
    --border: #E8DDD0;
    --shadow: 0 2px 12px rgba(61, 46, 28, 0.08);
    --shadow-hover: 0 6px 24px rgba(61, 46, 28, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

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

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.95);
    padding: 5px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.lang-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--border);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5em;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Navigation */
.main-nav {
    background: var(--secondary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-nav .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-link {
    display: inline-block;
    padding: 14px 20px;
    color: white !important;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.15);
}

#dynamic-nav {
    display: contents;
}

/* Intro Section */
.intro {
    text-align: center;
    padding: 40px 0 20px;
}

.intro h2 {
    font-size: 2em;
    color: var(--secondary-dark);
    margin-bottom: 10px;
}

.intro p {
    color: var(--text-light);
    font-size: 1.1em;
}

/* Chicken Grid */
.chicken-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

.chicken-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: block;
}

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

.chicken-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--border);
}

.chicken-card-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    font-size: 4em;
}

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

.chicken-card-body h3 {
    font-size: 1.3em;
    color: var(--secondary-dark);
    margin-bottom: 8px;
}

.chicken-card-body p {
    color: var(--text-light);
    font-size: 0.95em;
}

.chicken-card-arrow {
    display: block;
    text-align: right;
    padding: 0 20px 15px;
    color: var(--primary);
    font-weight: bold;
}

/* Page Content */
.page-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.page-content h2 {
    font-size: 2em;
    color: var(--secondary-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.page-content .content-body {
    font-size: 1.05em;
    line-height: 1.8;
}

.page-content .content-body p {
    margin-bottom: 15px;
}

.page-content .content-body h3 {
    color: var(--secondary-dark);
    margin: 25px 0 10px;
}

.page-content .content-body ul, .page-content .content-body ol {
    margin: 10px 0 15px 25px;
}

.page-content .content-body li {
    margin-bottom: 5px;
}

.page-image-container {
    margin: 20px 0;
    text-align: center;
}

.page-image-container img {
    max-height: 400px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.95em;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-dark);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--border);
}

/* Sub-pages Section */
.sub-pages {
    margin: 20px 0 40px;
}

.sub-pages h3 {
    font-size: 1.5em;
    color: var(--secondary-dark);
    margin-bottom: 15px;
}

/* Page Navigation */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-danger {
    background: #E74C3C;
    color: white;
}

.btn-danger:hover {
    background: #C0392B;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

.footer p {
    opacity: 0.8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .emoji {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .chicken-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 25px;
    }

    .lang-switcher {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin: 10px auto;
        width: fit-content;
    }

    .main-nav .container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.4em;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .page-content {
        padding: 15px;
    }
}

/* ========================================
   WATERMARK LOGO
   ======================================== */

.watermark-logo {
    position: fixed;
    z-index: 50;
    opacity: 0.35;
    pointer-events: none;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.watermark-top-left {
    top: 20px;
    left: 20px;
}

.watermark-top-right {
    top: 20px;
    right: 20px;
}

.watermark-bottom-left {
    bottom: 20px;
    left: 20px;
}

.watermark-bottom-right {
    bottom: 20px;
    right: 20px;
}
