/* ============================================================
   iAttitude Blog - Standalone Stylesheet
   Completely independent from main website CSS
   ============================================================ */

:root {
    --brand-color: #e74c3c;
    --brand-dark: #c0392b;
    --brand-gradient: linear-gradient(135deg, #e74c3c, #c0392b);
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-color); }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand-color); color: #fff; }

/* ===== NAVBAR ===== */
.blog-navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.blog-navbar .navbar-brand {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
}

.blog-navbar .brand-text { color: var(--dark-bg); }
.blog-navbar .brand-accent { color: var(--brand-color); }
.blog-navbar .brand-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-navbar .nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: var(--transition);
}

.blog-navbar .nav-link:hover,
.blog-navbar .nav-link.active {
    color: var(--brand-color) !important;
    background: rgba(231,76,60,0.08);
}

.blog-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.blog-navbar .dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.blog-navbar .dropdown-item:hover {
    background: rgba(231,76,60,0.08);
    color: var(--brand-color);
}

.btn-search-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-search-icon:hover {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.show { display: flex; }

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.search-close:hover { opacity: 1; }

.search-form { display: flex; gap: 10px; }

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding: 15px 0;
    font-size: 28px;
    color: #fff;
    outline: none;
    font-weight: 300;
}

.search-input::placeholder { color: rgba(255,255,255,0.4); }

.search-submit {
    background: var(--brand-color);
    border: none;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover { background: var(--brand-dark); transform: scale(1.05); }

/* ===== FEATURED SECTION (moved to blog-card.css) ===== */

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-bg);
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
}

/* ===== BLOG GRID (moved to blog-card.css) ===== */

/* ===== PAGINATION ===== */
.blog-pagination .page-link {
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    margin: 0 3px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.blog-pagination .page-link:hover {
    background: rgba(231,76,60,0.1);
    color: var(--brand-color);
}

.blog-pagination .page-item.active .page-link {
    background: var(--brand-color);
    color: #fff;
}

/* ===== SIDEBAR ===== */
.blog-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
}

.widget-title i { color: var(--brand-color); }

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child { border-bottom: none; }

.category-list a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--brand-color);
    padding-left: 4px;
}

.category-list i { font-size: 10px; color: var(--text-muted); }

.popular-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

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

.popular-img {
    width: 70px;
    height: 55px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-info h6 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.popular-info h6 a { color: var(--text-primary); }
.popular-info h6 a:hover { color: var(--brand-color); }

.popular-date {
    font-size: 12px;
    color: var(--text-muted);
}

.recent-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}

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

.recent-item h6 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.recent-item h6 a { color: var(--text-primary); }
.recent-item h6 a:hover { color: var(--brand-color); }

.recent-date {
    font-size: 12px;
    color: var(--text-muted);
}

.newsletter-widget .btn-brand {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
}

.newsletter-widget .btn-brand:hover {
    background: var(--brand-dark);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
}

.breadcrumb-item {
    font-size: 13px;
}

.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item a:hover { color: var(--brand-color); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ===== ARTICLE DETAIL ===== */
.blog-article {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-header {
    padding: 32px 32px 0;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark-bg);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item i { margin-right: 6px; color: var(--brand-color); }

.article-hero {
    padding: 24px 32px;
}

.article-hero img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.article-excerpt {
    padding: 0 32px 24px;
}

.article-excerpt .lead {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    border-left: 3px solid var(--brand-color);
    padding-left: 20px;
}

.article-content {
    padding: 0 32px 32px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h2 { font-family: var(--font-heading); font-size: 28px; margin: 30px 0 16px; }
.article-content h3 { font-family: var(--font-heading); font-size: 22px; margin: 24px 0 12px; }
.article-content h4 { font-weight: 700; font-size: 18px; margin: 20px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    border-left: 4px solid var(--brand-color);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 17px;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content img { border-radius: var(--radius-sm); margin: 16px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content th, .article-content td { border: 1px solid var(--border-color); padding: 10px 14px; }
.article-content th { background: var(--bg-light); font-weight: 600; }

/* Tags */
.article-tags {
    padding: 0 32px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-secondary) !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tag-badge:hover {
    background: var(--brand-color);
    color: #fff !important;
}

/* Share */
.share-section {
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 16px;
    transition: var(--transition);
}

.share-btn:hover { transform: translateY(-3px); }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

/* Comments */
.comments-section {
    padding: 0 32px 32px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child { border-bottom: none; }

.comment-avatar {
    font-size: 36px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.comment-body strong { font-size: 14px; }
.comment-date { font-size: 12px; color: var(--text-muted); margin-left: 10px; }
.comment-body p { font-size: 14px; color: var(--text-secondary); }

.comment-form .btn-brand {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-weight: 600;
}

.comment-form .btn-brand:hover { background: var(--brand-dark); }

/* Related Section */
.related-section { background: var(--bg-light); }

/* ===== FOOTER ===== */
.blog-footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.blog-footer h5 { color: #fff; font-weight: 700; font-size: 20px; }
.blog-footer h5 .brand-text { color: #fff; }
.blog-footer h5 .brand-accent { color: var(--brand-color); }
.blog-footer h6 { color: #fff; font-weight: 600; margin-bottom: 16px; }

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

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--brand-color); padding-left: 4px; }

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

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

.social-link:hover { background: var(--brand-color); transform: translateY(-3px); }

.newsletter-form .btn-brand {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
}

.newsletter-form .btn-brand:hover { background: var(--brand-dark); }

.footer-bottom { border-top-color: rgba(255,255,255,0.1) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .article-title { font-size: 28px; }
    .article-header,
    .article-hero,
    .article-excerpt,
    .article-content,
    .article-tags,
    .share-section,
    .comments-section { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 767px) {
    body { padding-top: 60px; }
    .article-title { font-size: 22px; }
    .article-meta { gap: 12px; font-size: 12px; }
    .search-input { font-size: 20px; }
}
