/*
Theme Name: Alria Hub Pro Ultimate
Theme URI: https://test.linkfly.in
Author: Aman Alria
Description: V12.0 FULL MASTER - Tighter Gaps, Smaller Titles (25%), Professional Contact Form, and Seamless White Background.
Version: 12.0
*/

/* =========================================
   1. MASTER ROOT & GLOBAL SETTINGS
   ========================================= */
:root {
    --primary: #10b981;       /* Emerald Green */
    --primary-dark: #059669;  /* Darker Green */
    --text-main: #0f172a;     /* Dark Slate */
    --text-muted: #64748b;    /* Cool Grey */
    --bg-light: #ffffff;      /* FULL WHITE BACKGROUND */
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow-hover: 0 20px 25px -5px rgba(16, 185, 129, 0.15), 0 10px 10px -5px rgba(16, 185, 129, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light); 
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#main-content { background: #ffffff; width: 100%; }
a { text-decoration: none; color: inherit; transition: 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   2. MASTER HEADER & MENU LOGIC
   ========================================= */
.glass-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 9999;
    height: 70px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
}

.header-inner {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

/* Fix: Desktop Hamburger Hide */
@media (min-width: 1024px) {
    #mobile-menu-btn { display: none !important; }
    .nav-links { display: block !important; margin-left: auto; }
}

@media (max-width: 1023px) {
    .nav-links { display: none; }
    #mobile-menu-btn { display: block !important; }
}

.nav-links ul { display: flex; gap: 25px; list-style: none; padding: 0; margin: 0; }
.nav-links a { font-weight: 600; color: var(--text-muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

#mobile-menu {
    display: none; position: fixed; top: 70px; left: 0; right: 0; 
    background: #fff; border-bottom: 4px solid var(--primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); z-index: 10001;
}

/* =========================================
   3. HERO SECTION (Full Green Gradient)
   ========================================= */
.hero { padding: 15px 20px 5px; text-align: center; background: #fff; } 

.hero h1 { 
    font-weight: 800; font-size: 2.4rem; margin-bottom: 5px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    word-wrap: break-word;
}

.hero-line { width: 35px; height: 3px; background: var(--primary); margin: 8px auto; border-radius: 10px; }

/* =========================================
   4. MASTER BLOG GRID & CARDS
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; padding-bottom: 50px; }

.blog-card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px; 
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--primary); }

.card-image-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f1f5f9; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.blog-card:hover .card-image-wrap img { transform: scale(1.08); }

/* V12 Fix: 20% Less Space between Meta/Title/Thumbnail */
.card-body { padding: 12px 16px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }

/* V12 Fix: 25% Smaller Title Size for better fit */
.card-title { 
    font-size: 1.05rem; font-weight: 800; margin: 0 0 8px 0; line-height: 1.35; 
    color: var(--text-main); word-wrap: break-word; overflow-wrap: break-word; 
}

/* V12 Fix: 50% Less Space below Author */
.card-footer { 
    margin-top: auto; padding: 10px 16px; border-top: 1px solid #f8fafc; 
    display: flex; justify-content: space-between; align-items: center; 
}
.author-wrapper { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; }
.author-wrapper img { width: 22px; height: 22px; border-radius: 50%; }

.btn-read-more { font-size: 0.8rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 4px; }

/* =========================================
   5. SINGLE POST MASTER
   ========================================= */
.single-article-box { max-width: 850px; margin: 0 auto; background: #fff; padding: 0; }

.entry-title { 
    font-size: 2.2rem; font-weight: 800; line-height: 1.25; color: #0f172a; 
    margin-bottom: 15px; word-wrap: break-word; overflow-wrap: break-word;
}

/* Reading Progress Bar */
#reading-progress { position: fixed; top: 0; left: 0; height: 4px; background: linear-gradient(90deg, #10b981, #34d399); z-index: 99999; }

/* Heartbeat Animation Fix */
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.shake-emoji { display: inline-block; animation: heartbeat 2s infinite ease-in-out; vertical-align: middle; }

/* =========================================
   6. MASTER FOOTER & PROFESSIONAL CONTACT FORM
   ========================================= */
.footer-wave-wrapper { background-color: #ffffff; line-height: 0; margin-bottom: -1px; }

.master-green-footer { background-color: #10b981; color: #fff; padding: 40px 0 60px; }

/* Contact Form V12 Fix */
.footer-contact-form input, .footer-contact-form textarea {
    width: 100%; padding: 10px 14px; margin-bottom: 10px;
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1); color: #fff; outline: none; font-size: 0.9rem;
}
.footer-contact-form textarea { height: 80px; resize: none; }
.footer-contact-form button {
    width: 100%; padding: 10px; background: #fff; color: var(--primary);
    border: none; border-radius: 8px; font-weight: 800; cursor: pointer; transition: 0.3s;
}
.footer-contact-form button:hover { background: #f0fdf4; transform: scale(1.02); }

/* Quick Links Fix Alignment */
.master-footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; text-align: center; }
.master-footer-links li { margin-bottom: 12px; }
.master-footer-links a { color: #fff; opacity: 0.9; font-size: 1rem; transition: 0.2s; }
.master-footer-links a:hover { opacity: 1; transform: translateX(8px); display: inline-block; }

/* Dark Bottom Bar */
.master-dark-footer { background: #064e3b; padding: 30px 0; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-bottom-flex-box { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }

/* =========================================
   7. MEDIA QUERIES (DESKTOP & MOBILE FIX)
   ========================================= */
@media (min-width: 768px) {
    .footer-master-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.2fr; gap: 50px; text-align: left; }
    .master-footer-links { text-align: left; }
    .footer-bottom-flex-box { flex-direction: row; }
}

@media (max-width: 767px) {
    .hero h1 { font-size: 2rem; }
    .footer-master-grid { text-align: center; gap: 40px; }
    .footer-bottom-flex-box { flex-direction: column; text-align: center; gap: 15px; }
}
