/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://miningwatchdog.io
Author: Muhammad Nouman Ali
Template: twentytwentyfive
Description: Child theme to customize header/footer with Laravel layout.
Version: 1.0
*/

/* Import parent styles (kept minimal, parent enqueues needed styles too) */
/* Additional child theme styles can be added here */

/* --- moved from header.php: design CSS for header/hero/blog/footer --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%); color: #ffffff; min-height: 100vh; }
.header { background: #ffffff; padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.header-container { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; font-size: 24px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-mining, .logo-watchdog { font-size: 24px; font-weight: 800; color: #7c3aed; text-transform: lowercase; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: #1f2937; text-decoration: none; font-size: 16px; font-weight: 500; transition: color 0.3s; }
.nav a:hover { color: #7c3aed; }
.header-right { display: flex; align-items: center; gap: 16px; }
.search-container { position: relative; }
.search-input { padding: 8px 40px 8px 16px; border: 1px solid #e5e7eb; border-radius: 6px; width: 280px; font-size: 14px; outline: none; transition: border-color 0.3s; }
.search-input:focus { border-color: #7c3aed; }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #7c3aed; cursor: pointer; }
.btn-login { background: #7c3aed; color: white; padding: 8px 24px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.btn-login:hover { background: #6d28d9; }
.btn-signup { background: transparent; color: #1f2937; padding: 8px 24px; border: 2px solid #e5e7eb; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-signup:hover { border-color: #7c3aed; color: #7c3aed; }
.hero { text-align: center; padding: 80px 24px 60px; background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(91, 33, 182, 0.05) 100%); position: relative; overflow: hidden; }
.hero h1 { font-size: 56px; font-weight: 800; margin-bottom: 16px; background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradientShift 3s ease infinite; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero p { font-size: 20px; color: #9ca3af; max-width: 600px; margin: 0 auto; }
.blog-container { max-width: 1400px; margin: 0 auto; padding: 60px 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 32px; margin-top: 40px; }
.blog-card { background: rgba(255, 255, 255, 0.05); border-radius: 16px; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(124, 58, 237, 0.2); opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.blog-card:nth-child(1) { animation-delay: 0.1s; } .blog-card:nth-child(2) { animation-delay: 0.2s; } .blog-card:nth-child(3) { animation-delay: 0.3s; } .blog-card:nth-child(4) { animation-delay: 0.4s; } .blog-card:nth-child(5) { animation-delay: 0.5s; } .blog-card:nth-child(6) { animation-delay: 0.6s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3); border-color: rgba(124, 58, 237, 0.5); }
.blog-image { width: 100%; height: 240px; object-fit: cover; transition: transform 0.6s ease; position: relative; overflow: hidden; }
.blog-image::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.6s; }
.blog-card:hover .blog-image { transform: scale(1.1); }
.blog-card:hover .blog-image::before { left: 100%; }
.blog-content { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.blog-category { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.blog-date, .blog-read-time { color: #9ca3af; font-size: 14px; }
.blog-author { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(124, 58, 237, 0.2); }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.author-name { color: #e5e7eb; font-size: 14px; font-weight: 500; }
.blog-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: #ffffff; line-height: 1.3; }
.blog-excerpt { color: #9ca3af; font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; color: #a78bfa; text-decoration: none; font-weight: 600; font-size: 14px; transition: gap 0.3s; }
.read-more:hover { gap: 12px; }
.footer { background: #0f1419; padding: 60px 24px 24px; margin-top: 80px; border-top: 1px solid rgba(124, 58, 237, 0.2); }
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; margin-bottom: 48px; }
.footer-column h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: #ffffff; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #9ca3af; text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-column ul li a:hover { color: #7c3aed; }
.footer-contact { margin-top: 24px; }
.footer-contact h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #ffffff; }
.footer-contact p { color: #9ca3af; font-size: 13px; line-height: 1.6; }
.footer-contact a { color: #9ca3af; text-decoration: none; }
.footer-contact a:hover { color: #7c3aed; }
.social-icons { display: flex; gap: 16px; margin-top: 16px; }
.social-icon { width: 36px; height: 36px; background: rgba(124, 58, 237, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9ca3af; text-decoration: none; transition: all 0.3s; }
.social-icon:hover { background: #7c3aed; color: white; transform: translateY(-2px); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(124, 58, 237, 0.2); }
.footer-bottom p { color: #6b7280; font-size: 13px; line-height: 1.8; }
.footer-bottom a { color: #9ca3af; text-decoration: none; }
.footer-bottom a:hover { color: #7c3aed; }
@media (max-width: 768px) { .nav { display: none; } .search-input { width: 200px; } .hero h1 { font-size: 36px; } .blog-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- end moved CSS --- */

/* Additional rules for single post and utility classes */
.post-share .btn { border-radius: 999px; }
.post-navigation .btn { font-weight: 600; }

/* Ensure single post pages keep the dark theme and white text */
body.single { background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%) !important; color: #ffffff !important; }
body.single .blog-container { color: #ffffff; }
body.single .blog-title { color: #ffffff; }
body.single .blog-excerpt, body.single .blog-content, body.single .author-meta { color: #e5e7eb; }
body.single .author-box { background: rgba(255,255,255,0.02); }

/* Respect user's OS/browser theme preference */
@media (prefers-color-scheme: light) {
	body { background: #ffffff; color: #111827; }
	.header { background: #ffffff; }
	.menu-a { color: #2C2450 !important; }
	.hero { background: linear-gradient(135deg, #6803FF 0%, #F85A3C 100%); }
	.hero h1 { color: #ffffff; }
	.blog-card { background: #ffffff; color: #111827; }
	.blog-title { color: #2C2450; }
	.blog-excerpt { color: #666; }
	.footer { background: #F8FAFC; color: #111827; }
	.footer a { color: #111827 !important; }
}


/* --------------------------------------------------------------
   3‑COLUMN BLOG GRID – DARK THEME
   -------------------------------------------------------------- */
.mw-blog-page { max-width:1200px; margin:0 auto; padding:0 20px; font-family:system-ui,sans-serif; }

.blog-hero {
    text-align:center; padding:80px 20px;
    background:linear-gradient(135deg,#0a0a0a,#1a1a2e); color:#fff;
}
.blog-hero h1 { font-size:48px; margin:0 0 16px; }
.blog-hero p  { font-size:18px; color:#aaa; max-width:700px; margin:0 auto; }

.blog-grid-wrapper { padding:40px 0; }
.blog-grid {
    display:grid; gap:32px;
    grid-template-columns:1fr;
}
@media (min-width:768px) { .blog-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1100px){ .blog-grid { grid-template-columns:repeat(3,1fr); } }

.blog-card {
    background:#151515; border:1px solid #222; border-radius:12px;
    overflow:hidden; transition:transform .3s,box-shadow .3s;
}
.blog-card:hover { transform:translateY(-4px); box-shadow:0 8px 20px rgba(0,102,204,.15); }

.blog-image-wrap { position:relative; }
.blog-image { width:100%; height:200px; object-fit:cover; }
.blog-category {
    position:absolute; top:12px; left:12px;
    background:#0066cc; color:#fff; padding:4px 10px;
    border-radius:4px; font-size:12px; font-weight:600;
}

.blog-content { padding:20px; }
.blog-title { margin:0 0 8px; font-size:20px; font-weight:600; }
.blog-title a { color:#fff; text-decoration:none; }
.blog-title a:hover { color:#0066cc; }

.blog-excerpt { color:#bbb; font-size:15px; line-height:1.6; margin-bottom:16px; }

.blog-meta { display:flex; justify-content:space-between; align-items:center; font-size:14px; color:#999; }
.blog-author { display:flex; align-items:center; gap:10px; }
.author-avatar {
    width:36px; height:36px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-weight:600; font-size:12px;
}
.blog-actions { display:flex; align-items:center; gap:12px; }
.read-time { color:#777; }
.read-more { color:#0066cc; text-decoration:none; font-weight:500; display:flex; align-items:center; gap:4px; }
.read-more:hover { color:#fff; }
.read-more svg { width:16px; height:16px; }

.mw-pagination { margin-top:40px; text-align:center; }
.mw-pagination a, .mw-pagination span {
    padding:10px 16px; margin:0 4px;
    background:#1a1a1a; color:#aaa; border:1px solid #333;
    border-radius:6px; text-decoration:none;
}
.mw-pagination a:hover, .mw-pagination .current {
    background:#0066cc; color:#fff; border-color:#0066cc;
}