/* 
* WildLife Wonders - Main Stylesheet
* Theme: Nature and Wildlife Blog
* Version: 1.0
* 2023
*/

/* ===== BASE STYLES ===== */
:root {
    --color-primary: #2e7d32;       /* Forest Green */
    --color-secondary: #f9a825;     /* Amber */
    --color-accent: #c05c39;        /* Terra Cotta */
    --color-light: #f5f5f5;         /* Off White */
    --color-dark: #263238;          /* Blue Grey Dark */
    --color-text: #37474f;          /* Blue Grey */
    --color-muted: #78909c;         /* Blue Grey Light */
    
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --transition-normal: all 0.3s ease;
    --shadow-small: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-large: 0 8px 24px rgba(0,0,0,0.12);
    
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;
    
    --container-width: 1200px;
    --header-height: 80px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
}

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

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

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-medium);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-small);
}

.btn:hover {
    background-color: #205723;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-muted);
    box-shadow: none;
}

.btn-tertiary:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
    box-shadow: var(--shadow-small);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5em;
}

ul, ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1em;
    font-style: italic;
    margin-bottom: 1.5em;
    color: var(--color-muted);
}

/* ===== HEADER STYLES ===== */
header {
    background-color: white;
    box-shadow: var(--shadow-small);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    box-shadow: var(--shadow-small);
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--color-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}

nav a:hover:after,
nav a.active:after {
    width: 100%;
}

nav a.active {
    color: var(--color-primary);
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: var(--color-primary);
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 120px 0;
    color: white;
    position: relative;
}

.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===== USER NOTIFICATION ===== */
.user-notification {
    background-color: rgba(46, 125, 50, 0.1);
    border-left: 5px solid var(--color-primary);
    padding: 20px;
    margin: 30px auto;
    max-width: 900px;
    border-radius: var(--border-radius-medium);
}

.notification-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-small);
}

.notification-content h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* ===== BLOG POSTS SECTION ===== */
.blog-posts {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: white;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
}

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

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-content {
    padding: 20px;
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition-normal);
}

.post-card:hover h3 {
    color: var(--color-primary);
}

.post-card p {
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary);
    gap: 5px;
}

.read-more .icon {
    transition: transform 0.3s ease;
}

.read-more:hover .icon {
    transform: translateX(3px);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

#newsletter-form {
    display: flex;
    gap: 10px;
}

#newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-medium);
    font-size: 1rem;
}

#newsletter-form .btn {
    background-color: var(--color-secondary);
    color: var(--color-dark);
}

#newsletter-form .btn:hover {
    background-color: #e69b00;
}

/* ===== FOOTER STYLES ===== */
footer {
    background-color: var(--color-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer-logo h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--color-secondary);
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--color-secondary);
    opacity: 1;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-contact p:hover {
    opacity: 1;
}

.footer-contact svg {
    margin-top: 4px;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.social-icons svg {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(38, 50, 56, 0.95);
    color: white;
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.cookie-content h3 {
    color: white;
    margin-bottom: 5px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-policy {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.cookie-policy a {
    color: var(--color-secondary);
}

.cookie-policy a:hover {
    text-decoration: underline;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    color: white;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* ===== ABOUT PAGE STYLES ===== */
.about-intro {
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.team {
    padding: 60px 0;
    background-color: rgba(46, 125, 50, 0.05);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    text-align: center;
    transition: var(--transition-normal);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-member img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.team-member h3 {
    margin-top: 20px;
    padding: 0 15px;
}

.team-member p {
    padding: 0 15px;
    margin-bottom: 15px;
}

.team-member p:first-of-type {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.social-links a {
    color: var(--color-muted);
}

.social-links a:hover {
    color: var(--color-primary);
}

.values {
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: white;
    border-radius: var(--border-radius-medium);
    padding: 30px;
    box-shadow: var(--shadow-small);
    text-align: center;
}

.value-icon {
    margin: 0 auto 20px;
    color: var(--color-primary);
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-section {
    padding: 60px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    background-color: var(--color-primary);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius-medium);
}

.contact-info h3 {
    color: white;
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.info-item a {
    color: white;
    opacity: 0.9;
}

.info-item a:hover {
    color: var(--color-secondary);
    opacity: 1;
}

.info-item h4 {
    color: var(--color-secondary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-form-container {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
}

.contact-form-container h3 {
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 5px;
}

.map-section {
    padding: 60px 0;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 30px;
}

.map-container {
    height: 450px;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

/* ===== BLOG POST STYLES ===== */
.post-content-page {
    padding: 60px 0;
}

.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
    color: var(--color-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-featured-image {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.post-featured-image figcaption {
    padding: 15px;
    background-color: rgba(46, 125, 50, 0.05);
    font-size: 0.9rem;
    color: var(--color-muted);
    text-align: center;
}

.post-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content img {
    border-radius: var(--border-radius-small);
    margin: 30px auto;
}

.post-content ul, .post-content ol {
    margin-bottom: 25px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-tags {
    max-width: 800px;
    margin: 0 auto 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(46, 125, 50, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: var(--transition-normal);
}

.post-tags a:hover {
    background-color: var(--color-primary);
    color: white;
}

.post-share {
    max-width: 800px;
    margin: 0 auto 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-share span {
    font-weight: 600;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: var(--color-text);
}

.post-share a:hover {
    background-color: var(--color-primary);
    color: white;
}

.author-bio {
    max-width: 800px;
    margin: 0 auto 60px;
    display: flex;
    gap: 30px;
    align-items: center;
    background-color: rgba(46, 125, 50, 0.05);
    padding: 30px;
    border-radius: var(--border-radius-medium);
}

.author-bio img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
    margin-bottom: 5px;
}

.author-info h4 {
    margin-bottom: 10px;
}

.author-info p {
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    color: var(--color-muted);
}

.author-social a:hover {
    color: var(--color-primary);
}

.post-navigation {
    max-width: 800px;
    margin: 0 auto 60px;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-previous, .nav-next {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-small);
    transition: var(--transition-normal);
}

.nav-previous:hover, .nav-next:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.nav-previous a, .nav-next a {
    display: flex;
    flex-direction: column;
    color: var(--color-text);
}

.nav-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-next a {
    align-items: flex-end;
}

.related-posts {
    max-width: 800px;
    margin: 0 auto;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-post {
    background-color: white;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: var(--transition-normal);
}

.related-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h3 {
    font-size: 1rem;
    padding: 15px;
    transition: var(--transition-normal);
}

.related-post:hover h3 {
    color: var(--color-primary);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius-medium);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-large);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-muted);
}

.close-modal:hover {
    color: var(--color-dark);
}

.thank-you-message {
    text-align: center;
}

.success-icon {
    color: var(--color-primary);
    margin: 0 auto 20px;
}

.thank-you-message p {
    margin-bottom: 25px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .about-content,
    .contact-wrapper,
    .author-bio {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next a {
        align-items: flex-start;
    }
    
    #newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    header {
        height: auto;
        position: relative;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .post-meta {
        gap: 15px;
    }
    
    .post-meta span {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
}
