/**
 * BiniQo YT Theme Styles (v1.1)
 */

:root {
    --primary: #003366;
    --primary-dark: #001a33;
    --accent: #FFD700;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f4f7f9;
    --white: #ffffff;
    --black: #0f172a;
    --red: #ff0000;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Global Reset & Overflow Control */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; position: relative; }
body { 
    font-family: 'Hind Siliguri', sans-serif; 
    background-color: var(--bg); 
    color: var(--text); 
    margin: 0; 
    line-height: 1.8; 
    word-wrap: break-word;
    font-size: 18px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }
.main-content-wrapper { display: flex; gap: 30px; margin: 40px 0; }
.site-main { flex: 1; min-width: 0; }
.site-sidebar { width: 320px; flex-shrink: 0; }

.post-container { background: #fff; padding: 40px; border-radius: 15px; box-shadow: var(--shadow); }
.entry-title { color: var(--primary); font-size: 32px; margin-bottom: 15px; line-height: 1.3; margin-top: 0; }
.entry-meta { color: var(--text-light); margin-bottom: 30px; font-size: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.meta-author { margin-left: 20px; }
.entry-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.tags-label { font-weight: 700; color: var(--primary); }

/* Sidebar Widget */
.sidebar-widget { background: #fff; padding: 20px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 30px; }
.widget-title { font-size: 18px; color: var(--primary); margin-top: 0; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sidebar-post-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.sidebar-post-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-post-item a { display: flex; gap: 12px; text-decoration: none; color: var(--text); }
.sidebar-post-thumb { width: 70px; height: 60px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-info h4 { font-size: 14px; margin: 0; line-height: 1.4; font-weight: 600; }
.sidebar-post-item a:hover h4 { color: var(--primary); }

@media (max-width: 992px) {
    .main-content-wrapper { flex-direction: column; }
    .site-sidebar { width: 100%; }
}

/* Content Safety - No overflow */
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* AdSense Responsive Containers */
.adsbygoogle {
    display: block;
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
}
.ad-container {
    min-height: 90px;
    margin: 20px 0;
    clear: both;
}
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 20px 0; 
    display: block; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
}
pre, code { white-space: pre-wrap; word-break: break-all; }

/* Header Styles */
.site-header { 
    background: var(--primary); 
    color: var(--white); 
    padding: 10px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}
.header-main { display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; }
.header-right { display: flex; align-items: center; gap: 20px; }

.logo a { 
    color: var(--white); 
    font-size: 24px; 
    font-weight: 800; 
    text-decoration: none; 
    letter-spacing: -0.5px;
}

/* Navigation */
.menu-toggle { display: none; }
.menu-container ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; }
.menu-container a { 
    color: var(--white); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 16px; 
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s; 
}
.menu-container a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }

/* Currency Box - Attractive & Boxed */
.biniqo-currency-box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin: 30px 0;
    overflow: hidden;
}
.currency-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.header-title { font-size: 20px; font-weight: 700; }
.live-time { font-size: 14px; font-weight: 400; margin-bottom: 5px; color: var(--accent); }
.live-date { opacity: 0.9; }
.live-clock { font-weight: 700; }
.header-base { background: rgba(255,255,255,0.15); padding: 5px 15px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.currency-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}
.currency-item {
    background: #fff;
    padding: 20px 15px;
    text-align: center;
    transition: 0.3s;
}
.currency-item:hover { background: #f8fafc; transform: translateY(-2px); z-index: 1; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.item-top { margin-bottom: 8px; }
.item-code { display: block; font-weight: 800; color: var(--primary); font-size: 16px; }
.item-name { display: block; font-size: 12px; color: var(--text-light); }
.item-bottom { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.item-val { font-size: 22px; font-weight: 800; color: #10b981; }
.item-unit { font-size: 14px; font-weight: 600; color: var(--text-light); }
.currency-footer { padding: 12px; text-align: center; font-size: 12px; color: var(--text-light); background: #f8fafc; border-top: 1px solid var(--border); }

/* Tools Section */
.biniqo-tools-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.biniqo-tools-section h3 { margin-top: 0; color: var(--primary); font-size: 20px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; margin-bottom: 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.tools-grid a { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: #f8fafc; 
    padding: 15px; 
    border-radius: 10px; 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 600; 
    transition: 0.3s;
    border: 1px solid var(--border);
}
.tools-grid a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* Related Posts in Content */
.premium-related-posts { margin: 30px 0; background: #fff; padding: 20px; border-radius: 12px; border-left: 5px solid var(--primary); }
.premium-related-posts h3 { font-size: 18px; margin-bottom: 15px; color: var(--primary); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.related-card a { text-decoration: none; color: var(--text); display: block; }
.related-thumb { height: 100px; background: #eee; border-radius: 8px; overflow: hidden; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info h4 { font-size: 14px; margin: 0; line-height: 1.4; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* YouTube CTA - Small & Professional */
.youtube-cta-box {
    background: #fff;
    border: 2px dashed var(--red);
    border-radius: 12px;
    padding: 20px;
    margin: 30px auto;
    max-width: 450px;
    text-align: center;
}
.cta-icon { font-size: 36px; color: var(--red); margin-bottom: 12px; }
.cta-text h4 { margin: 0 0 8px; color: var(--red); font-size: 17px; font-weight: 700; }
.cta-text p { margin: 0 0 15px; font-size: 13px; color: #4b5563; line-height: 1.5; }
.cta-link { 
    background: var(--red); 
    color: #fff !important; 
    padding: 8px 20px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px;
    display: inline-block;
    transition: 0.2s;
}
.cta-link:hover { opacity: 0.9; transform: scale(1.02); }

/* Footer - Premium Black */
.biniqo-footer {
    background: var(--black);
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 15px; }
.footer-desc { font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.yt-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    background: var(--red); 
    color: #fff !important; 
    padding: 10px 20px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px;
}
.footer-heading { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 16px; transition: 0.2s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 16px; }
.contact-list i { color: var(--accent); }
.footer-copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.footer-copyright strong { color: #fff; }

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}
.scroll-to-top.show { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--accent); color: var(--primary); transform: translateY(-5px); }

/* Improved Comments */
.comments-section { background: #f8fafc; padding: 30px; border-radius: 15px; border: 1px solid var(--border); }
.comment-reply-title { font-size: 22px; color: var(--primary); margin-bottom: 20px; display: block; }
.comment-form input, .comment-form textarea { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    margin-bottom: 15px; 
    font-family: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,51,102,0.1); }
.submit { 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 12px 30px; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s;
}
.submit:hover { background: var(--primary-dark); transform: scale(1.02); }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: #fff; padding: 20px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.comment-author img { border-radius: 50%; margin-right: 10px; }
.comment-metadata { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }

/* Search Visibility */
.mobile-search-wrapper { display: none; }
@media (min-width: 769px) {
    .desktop-search { display: block; }
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-main { flex-direction: row; }
    .header-left { order: 1; }
    .header-right { order: 2; flex-direction: row-reverse; gap: 10px; }
    .logo a { font-size: 20px; }
    
    .menu-toggle { display: block; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 5px; }
    .menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        z-index: 1001;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .menu-container.active { display: block; }
    .mobile-search-wrapper { display: block; margin-bottom: 15px; }
    .desktop-search { display: none; }
    .menu-container ul { flex-direction: column; gap: 5px; }
    .menu-container a { 
        display: block; 
        padding: 15px; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        font-size: 18px;
        color: #fff;
    }
    .menu-container a:last-child { border-bottom: none; }
    .menu-container ul { display: block; }
    
    .currency-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr; gap: 30px; }
    .youtube-cta-box { margin: 20px 15px; }
}

@media (max-width: 480px) {
    .currency-grid-v2 { grid-template-columns: repeat(2, 1fr); }
    .header-title { font-size: 18px; }
}


/* Tools Showcase Section */
.biniqo-tools-showcase {
    background: transparent;
    padding: 0;
    margin: 30px 0;
}

.tools-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tool-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: 0;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 51, 102, 0.3);
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
}

.tool-desc {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Responsive Tools Grid */
@media (max-width: 768px) {
    .tools-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .tool-card {
        padding: 25px 15px;
    }
    
    .tool-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .tool-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .tool-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tools-showcase-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tool-card {
        padding: 20px 15px;
    }
    
    .tool-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .tool-title {
        font-size: 15px;
    }
    
    .tool-desc {
        font-size: 12px;
    }
}


/* YouTube Subscribe Button (Chat Plugin Style) */
.yt-subscribe-floating {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.yt-subscribe-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--red);
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid var(--red);
    white-space: nowrap;
    min-width: 45px;
    height: 35px;
}

.yt-subscribe-link:hover {
    background: #cc0000;
    border-color: #cc0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.yt-subscribe-link:active {
    transform: translateY(0px);
}

.yt-subscribe-link i {
    font-size: 14px;
}

.yt-subscribe-text {
    display: none;
}

/* Responsive YouTube Subscribe Button */
@media (max-width: 768px) {
    .yt-subscribe-floating {
        bottom: 20px;
        left: 20px;
    }
    
    .yt-subscribe-link {
        padding: 7px 10px;
        font-size: 10px;
        gap: 3px;
        min-width: 40px;
        height: 32px;
    }
    
    .yt-subscribe-link i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .yt-subscribe-floating {
        bottom: 15px;
        left: 15px;
    }
    
    .yt-subscribe-link {
        padding: 6px 8px;
        font-size: 9px;
        gap: 2px;
        border-radius: 25px;
        min-width: 35px;
        height: 30px;
    }
    
    .yt-subscribe-link i {
        font-size: 11px;
    }
    
    .yt-subscribe-text {
        display: none;
    }
}

/* Adjust Scroll to Top position when Subscribe button is visible */
.scroll-to-top {
    bottom: 30px;
    right: 30px;
}

.scroll-to-top.show {
    bottom: 30px;
    right: 30px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top.show {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-to-top.show {
        bottom: 15px;
        right: 15px;
    }
}
