/*
Theme Name: Developer Starter BD Child
Theme URI: https://github.com/legendary-lion/developer-starter-bd
Description: Child theme for Developer Starter BD. Add your customizations here.
Author: Legendary Lion
Author URI: https://legendarylion.com
Template: developer-starter-bd
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: developer-starter-bd-child
*/

/* ==========================================================================
   Child Theme Styles
   Add your custom CSS below this line
   ========================================================================== */

/* ==========================================================================
   Blog Enhancements - Works with Breakdance Templates
   ========================================================================== */

/* --------------------------------------------------------------------------
   Post Card Hover Effects
   Apply class 'ds-post-card' to your Post Loop item div in Breakdance
   -------------------------------------------------------------------------- */
.ds-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ds-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Post thumbnail zoom on hover */
.ds-post-card .ds-post-thumbnail {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.ds-post-card .ds-post-thumbnail img {
    transition: transform 0.5s ease;
}

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

/* --------------------------------------------------------------------------
   Category Badges
   Apply class 'ds-category-badge' to category links in Breakdance
   -------------------------------------------------------------------------- */
.ds-category-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ds-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Alternative category badge styles - add these classes for variety */
.ds-category-badge--outline {
    background: transparent;
    border: 2px solid currentColor;
    color: #667eea;
}

.ds-category-badge--dark {
    background: #1a1a2e;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Post Meta Styling
   Apply class 'ds-post-meta' to your meta container in Breakdance
   -------------------------------------------------------------------------- */
.ds-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
}

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

.ds-post-meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Read More Link/Button
   Apply class 'ds-read-more' to your Read More element in Breakdance
   -------------------------------------------------------------------------- */
.ds-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.ds-read-more::after {
    content: '\2192';
    transition: transform 0.3s ease;
}

.ds-read-more:hover {
    gap: 12px;
}

.ds-read-more:hover::after {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Single Post Styles
   -------------------------------------------------------------------------- */

/* Hero section with featured image background */
.ds-single-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.ds-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
}

.ds-single-hero > * {
    position: relative;
    z-index: 2;
}

/* Post title styling for single posts */
.ds-single-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Content area - optimal reading width */
.ds-single-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.ds-single-content p {
    margin-bottom: 1.5em;
}

.ds-single-content h2,
.ds-single-content h3,
.ds-single-content h4 {
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.ds-single-content img {
    border-radius: 12px;
    margin: 2em 0;
}

.ds-single-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 24px;
    margin: 2em 0;
    font-style: italic;
    font-size: 1.1em;
    color: #4b5563;
}

/* --------------------------------------------------------------------------
   Author Box
   Apply class 'ds-author-box' to author container in Breakdance
   -------------------------------------------------------------------------- */
.ds-author-box {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: #f9fafb;
    border-radius: 16px;
    margin: 48px 0;
}

.ds-author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.ds-author-box-content h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ds-author-box-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Related Posts Grid
   -------------------------------------------------------------------------- */
.ds-related-posts {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid #e5e7eb;
}

.ds-related-posts h3 {
    font-size: 24px;
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Post Navigation (Prev/Next)
   Apply class 'ds-post-nav' to navigation container
   -------------------------------------------------------------------------- */
.ds-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.ds-post-nav-item {
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease, transform 0.3s ease;
}

.ds-post-nav-item:hover {
    background: #f3f4f6;
    transform: translateY(-4px);
}

.ds-post-nav-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.ds-post-nav-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}

.ds-post-nav-item--next {
    text-align: right;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .ds-post-nav {
        grid-template-columns: 1fr;
    }

    .ds-post-nav-item--next {
        text-align: left;
    }

    .ds-author-box {
        flex-direction: column;
        text-align: center;
    }

    .ds-author-box img {
        margin: 0 auto;
    }
}

/* --------------------------------------------------------------------------
   Loading Animation for Post Cards (optional)
   Add class 'ds-animate-in' and use with Intersection Observer
   -------------------------------------------------------------------------- */
.ds-animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ds-animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.ds-animate-in:nth-child(2) { transition-delay: 0.1s; }
.ds-animate-in:nth-child(3) { transition-delay: 0.2s; }
.ds-animate-in:nth-child(4) { transition-delay: 0.3s; }
.ds-animate-in:nth-child(5) { transition-delay: 0.4s; }
.ds-animate-in:nth-child(6) { transition-delay: 0.5s; }
