/* CleaningCodex - Main Stylesheet */
:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e3a53;
    --accent: #27ae60;
    --accent-light: #2ecc71;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f8f9fa;
    --bg-alt: #ecf0f1;
    --white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 10px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    margin: 0;
}

/* ─── Navbar ─── */
.navbar-cc {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}
.navbar-cc .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.navbar-cc .navbar-brand span {
    color: var(--accent);
}
.navbar-cc .nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition);
}
.navbar-cc .nav-link:hover,
.navbar-cc .nav-link.active {
    color: var(--primary);
    background: var(--bg);
}

/* ─── Hero ─── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}
.hero .btn-accent {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}
.hero .btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(39,174,96,0.3);
}
.hero .btn-outline-light {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

/* ─── Section ─── */
.section {
    padding: 4rem 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ─── Cards ─── */
.card-cc {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.card-cc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.card-cc .card-img-top {
    height: 200px;
    object-fit: cover;
}
.card-cc .card-body {
    padding: 1.5rem;
}
.card-cc .card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.card-cc .card-title a {
    color: inherit;
    text-decoration: none;
}
.card-cc .card-title a:hover {
    color: var(--primary);
}
.card-cc .card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}
.card-cc .card-text {
    color: #555;
    font-size: 0.95rem;
}
.card-cc .card-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* ─── Category Badge ─── */
.badge-category {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    background: var(--bg);
    color: var(--primary);
}
.badge-category:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

/* ─── Featured Ribbon ─── */
.featured-card {
    position: relative;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 1px var(--accent);
}
.featured-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(39,174,96,0.3);
}

/* ─── Podcast Card ─── */
.podcast-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
}
.podcast-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.podcast-card .episode-number {
    background: var(--primary);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.podcast-card h5 {
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.podcast-card h5 a {
    color: var(--text);
    text-decoration: none;
}
.podcast-card h5 a:hover {
    color: var(--primary);
}
/* ─── Video Thumbnail + Play Overlay ─── */
.video-thumb-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
}
.video-thumb-link img,
.video-thumb-link div {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.video-thumb-link:hover img,
.video-thumb-link:hover div {
    transform: scale(1.03);
}
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.play-overlay-sm {
    font-size: 2rem;
}
.video-thumb-link:hover .play-overlay {
    background: rgba(0,0,0,0.3);
    color: #fff;
}

/* ─── Single Post / Episode ─── */
.single-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
}
.single-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.single-header .meta {
    opacity: 0.85;
    font-size: 0.95rem;
}
.single-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-top: -2rem;
    position: relative;
    box-shadow: var(--shadow);
}
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.single-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}
.single-content h2, .single-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ─── Audio Player (single) ─── */
.audio-player-wrap {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.audio-player-wrap video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}

/* ─── Sidebar ─── */
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-widget h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}
.sidebar-widget .list-group-item {
    border: none;
    padding: 0.5rem 0;
}
.sidebar-widget .list-group-item a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.sidebar-widget .list-group-item a:hover {
    color: var(--primary);
}

/* ─── Footer ─── */
.footer-cc {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}
.footer-cc h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-cc a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.footer-cc a:hover {
    color: var(--white);
}
.footer-cc .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ─── Search ─── */
.search-form .form-control {
    border-radius: 8px 0 0 8px;
    border: 2px solid var(--border);
    padding: 0.6rem 1rem;
}
.search-form .btn {
    border-radius: 0 8px 8px 0;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

/* ─── Pagination ─── */
.pagination .page-link {
    color: var(--primary);
    border-radius: 8px !important;
    margin: 0 3px;
    border: 1px solid var(--border);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ─── Stats (hero) ─── */
.stat-item {
    text-align: center;
    padding: 1rem;
}
.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}
.stat-item .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ─── Utility ─── */
.btn-primary-cc {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-primary-cc:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-1px);
}

.text-primary-cc { color: var(--primary) !important; }
.bg-primary-cc { background: var(--primary) !important; }

/* ─── Share Buttons ─── */
.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 1rem 0;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-twitter:hover { background: #000; color: #fff; border-color: #000; }
.share-linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-email:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.share-copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 3rem 0; }
    .section { padding: 2.5rem 0; }
    .single-content { padding: 1.5rem; }
    .single-header h1 { font-size: 1.8rem; }
}
