/* 
  Canine Crown Premium Editorial CMS 
  Frontend CSS
*/
:root {
    --primary: #a01116; /* Maroon */
    --secondary: #000000; /* Black */
    --text-main: #222;
    --text-muted: #666;
    --bg-light: #fdfdfd;
    --bg-gray: #f8f8f8;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

.serif-font {
    font-family: 'Lora', serif; /* Good for post content */
}

/* Header */
header {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

header .logo {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
}

header .logo span {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

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

/* Control Area */
.filter-controls {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count-text {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.category-dropdown {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
    padding-bottom: 80px;
}

.post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #eee;
}

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

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

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

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.post-content {
    padding: 30px;
}

.post-meta {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.post-title h3 {
    font-size: 26px;
    margin-bottom: 20px;
    transition: var(--transition);
    line-height: 1.35;
    display: block;
    color: var(--secondary);
    font-weight: 800;
}

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

.post-excerpt {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.7;
    font-weight: 400;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more-btn::after {
    content: '→';
    margin-left: 8px;
    transition: var(--transition);
}

.post-card:hover .read-more-btn::after {
    transform: translateX(5px);
    color: var(--primary);
}

/* Single Post View */
.single-post-hero {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
}

.single-post-hero h1 {
    font-size: 52px;
    margin-bottom: 30px;
}

.single-featured-image {
    width: 100%;
    height: 550px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 60px;
}

.post-body-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.8;
}

.post-body-content h2 { margin: 40px 0 20px 0; }
.post-body-content p { margin-bottom: 25px; color: #444; }

/* Footer */
footer {
    background: var(--secondary);
    color: #fff;
    padding: 80px 0 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    font-weight: 500;
}

.footer-copyright {
    font-size: 13px;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    color: #fff;
}

.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 38px; }
    .single-post-hero h1 { font-size: 34px; }
    .single-featured-image { height: 300px; }
}
