/* Best For Pets - Public Site Style */

:root {
    --primary: #fecc02;
    --black: #000000;
    --white: #ffffff;
    --grey-light: #f8f9fa;
    --grey-border: #e9ecef;
    --text-muted: #6c757d;
    --text-main: #333333;
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --container-narrow: 800px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

.container.small {
    max-width: var(--container-narrow);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

/* Header */
.site-header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--grey-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    display: block;
    height: 52px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.btn-primary-small {
    background: var(--black);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.btn-primary-small:hover {
    background: var(--primary);
    color: var(--black);
}

/* Hero Section */
.hero-section {
    background: #fffdf5;
    padding: 100px 0;
    text-align: center;
}

.hero-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.hero-title {
    font-size: clamp(40px, 8vw, 64px);
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero-title span {
    position: relative;
    z-index: 1;
}

.hero-title span::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--primary);
    z-index: -1;
    opacity: 0.3;
}

.hero-text {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Bar */
.filter-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--grey-border);
    background: var(--white);
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.article-count strong {
    color: var(--black);
}

.filter-form {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-form select {
    appearance: none;
    border: 1px solid var(--grey-border);
    padding: 8px 40px 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.filter-form i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
}

/* Blog Grid */
.blog-grid-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--black);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-body {
    padding: 25px 0;
}

.card-date {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 15px;
    color: var(--text-main);
    opacity: 0.8;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more i {
    font-size: 12px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Single Post */
.post-header {
    padding: 80px 0 40px;
    text-align: center;
}

.post-meta {
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-category {
    color: var(--primary);
    margin-right: 15px;
}

.post-date {
    color: var(--text-muted);
}

.post-title {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 25px;
}

.post-excerpt {
    font-size: 20px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
}

.post-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
}

.post-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-featured-image {
    margin-bottom: 60px;
}

.post-featured-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.editorial-content {
    font-family: var(--font-body);
    font-size: 18px;
    margin-bottom: 60px;
}

.editorial-content h2, 
.editorial-content h3 {
    margin: 40px 0 20px;
}

.editorial-content p {
    margin-bottom: 25px;
}

.editorial-content blockquote {
    font-family: var(--font-serif);
    font-size: 26px;
    font-style: italic;
    border-left: 5px solid var(--primary);
    padding-left: 30px;
    margin: 40px 0;
    color: var(--black);
}

.post-tags {
    margin-bottom: 40px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--grey-light);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.post-share {
    padding: 40px 0;
    border-top: 1px solid var(--grey-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--grey-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.share-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--black);
}

/* Footer */
.site-footer {
    background: #000;
    color: white;
    padding: 24px 0;
    margin-top: 100px;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    border: 0;
    padding-top: 0;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}
