/* ============================================
   CSPBC TOOLS - CUSTOM STYLES
   (Tailwind handles most styling)
   ============================================ */

/* ---- Nav Link Desktop ---- */
.nav-link-desktop {
    display: flex; align-items: center;
    padding: 0.5rem 0.85rem; border-radius: 0.5rem;
    font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s ease; position: relative;
}
.nav-link-desktop:hover { background-color: #f3e8ff; }

/* ---- Gradient BG ---- */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ---- Card Hover ---- */
.card-hover { transition: all 0.3s ease; }
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ---- Notification Popup ---- */
.notification-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.notification-overlay.active { opacity: 1; visibility: visible; }
.notification-popup {
    background-color: white; border-radius: 12px;
    width: 90%; max-width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    transform: scale(0.8); transition: transform 0.3s ease; overflow: hidden;
}
.notification-overlay.active .notification-popup { transform: scale(1); }
.notification-image { width: 100%; height: 200px; object-fit: cover; }

/* ---- Social Buttons ---- */
.social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background-color: #4b5563; color: white;
    transition: all 0.3s ease;
}
.social-btn:hover { transform: translateY(-3px); }
.social-btn.facebook:hover   { background-color: #3b5998; }
.social-btn.twitter:hover    { background-color: #1da1f2; }
.social-btn.instagram:hover  { background-color: #e1306c; }
.social-btn.linkedin:hover   { background-color: #0077b5; }
.social-btn.youtube:hover    { background-color: #ff0000; }
.social-btn.telegram:hover   { background-color: #0088cc; }
.social-btn.whatsapp:hover   { background-color: #25D366; }

/* ---- MEGA MENU ---- */
.dropdown { position: relative; display: inline-block; }
.mega-menu {
    display: none; position: absolute;
    background-color: white; width: 620px;
    right: 0; top: 100%;
    box-shadow: 0px 10px 25px 0px rgba(0,0,0,0.15);
    z-index: 100; border-radius: 10px;
    padding: 20px; border: 1px solid #f3f4f6;
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease;
}
.dropdown:hover .mega-menu {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; opacity: 1; transform: translateY(0);
}
.mega-column h4 {
    color: #4b5563; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 12px;
    border-bottom: 2px solid #e5e7eb; padding-bottom: 5px; font-weight: 700;
}
.mega-column a {
    display: flex; align-items: center; padding: 8px 0;
    color: #6b7280; text-decoration: none; font-size: 0.9rem; transition: color 0.2s;
}
.mega-column a i { width: 24px; color: #9333ea; }
.mega-column a:hover { color: #9333ea; padding-left: 5px; }
.dropdown > a:after {
    content: '\f107'; font-family: 'Font Awesome 6 Free';
    font-weight: 900; margin-left: 5px; font-size: 0.8em; vertical-align: middle;
}

/* ---- Mobile Menu ---- */
.mobile-menu { display: none; }
@media (max-width: 768px) {
    .mobile-menu.active { display: block; }
}

/* ---- Scroll to Top ---- */
.scroll-top-btn {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: #9333ea; color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s; z-index: 900;
    box-shadow: 0 4px 15px rgba(147,51,234,0.4);
    border: none; cursor: pointer;
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: #7e22ce; transform: translateY(-3px); }

/* ---- Ad Container ---- */
.ad-container {
    background: #f9fafb; border: 1px solid #f3f4f6;
    border-radius: 8px; padding: 8px; margin: 1rem 0;
    text-align: center; min-height: 90px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ad-horizontal { min-height: 90px; }
.ad-vertical { min-height: 250px; }
.ad-auto { min-height: 100px; }

/* ---- Calculator Sections ---- */
.calc-section {
    background: white; border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6; overflow: hidden;
    margin-bottom: 1.5rem; scroll-margin-top: 80px;
}
.calc-section-header {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    padding: 1.25rem 1.5rem;
    display: flex; align-items: center; gap: 0.75rem;
    border-bottom: 1px solid #e9d5ff;
}
.calc-section-header i { font-size: 1.5rem; color: #9333ea; }
.calc-section-header h3 { font-size: 1.15rem; font-weight: 700; color: #1f2937; }
.calc-section-header p { font-size: 0.8rem; color: #6b7280; }
.calc-section-body { padding: 1.5rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media(max-width:768px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-input-group { margin-bottom: 1rem; }
.calc-input-group label {
    display: block; font-size: 0.8rem; font-weight: 600;
    color: #374151; margin-bottom: 0.35rem;
}
.calc-input-group input, .calc-input-group select {
    width: 100%; padding: 0.65rem 0.9rem;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: 0.9rem; color: #1f2937; background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-input-group input:focus, .calc-input-group select:focus {
    outline: none; border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147,51,234,0.1);
    background: white;
}
.calc-input-group select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem;
}
.calc-input-group select option { background: white; }

.calc-btn {
    width: 100%; padding: 0.7rem;
    background: #9333ea; color: white;
    border: none; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.calc-btn:hover { background: #7e22ce; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(147,51,234,0.3); }

.calc-result-area { min-height: 220px; }
.calc-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 220px; color: #d1d5db; text-align: center;
}
.calc-placeholder i { font-size: 2.5rem; margin-bottom: 0.5rem; }
.calc-placeholder p { font-size: 0.85rem; }

.result-cards { display: grid; gap: 0.65rem; }
.result-card {
    background: #f9fafb; border: 1px solid #f3f4f6;
    border-radius: 10px; padding: 0.85rem 1rem;
}
.result-card-label { font-size: 0.7rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.result-card-value { font-size: 1.3rem; font-weight: 800; color: #1f2937; margin-top: 0.15rem; }

/* ---- Scheme Full Card ---- */
.scheme-full-card {
    background: white; border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6; overflow: hidden;
    margin-bottom: 1.5rem; transition: all 0.3s;
}
.scheme-full-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateY(-3px); }
.scheme-full-header { padding: 1.5rem 1.75rem; color: white; }
.scheme-full-header h2 { font-size: 1.5rem; font-weight: 800; }
.scheme-full-header p { font-size: 0.9rem; opacity: 0.85; margin-top: 0.25rem; }
.scheme-full-body { padding: 1.5rem 1.75rem; }
.scheme-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.65rem; margin: 1rem 0; }
.scheme-detail-item { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 8px; padding: 0.75rem; }
.scheme-detail-label { display: block; font-size: 0.7rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.scheme-detail-value { font-size: 0.95rem; font-weight: 700; color: #1f2937; }
.scheme-features { border-top: 1px solid #f3f4f6; padding-top: 1rem; margin-top: 0.5rem; }
.scheme-features h4 { font-size: 0.95rem; font-weight: 700; color: #1f2937; margin-bottom: 0.6rem; }
.scheme-features li { font-size: 0.85rem; color: #4b5563; padding: 0.3rem 0 0.3rem 1.5rem; position: relative; }
.scheme-features li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: 700; }

/* ---- Auth Card ---- */
.auth-card {
    max-width: 440px; margin: 0 auto;
    background: white; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6; padding: 2.5rem;
}
.auth-card-wide { max-width: 560px; }
.auth-input-wrap { position: relative; }
.auth-input-wrap > i { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.auth-input-wrap input { padding-left: 2.5rem; }

/* ---- Content Page ---- */
.content-body h2 { font-size: 1.4rem; font-weight: 700; color: #1f2937; margin: 2rem 0 0.75rem; }
.content-body h2:first-child { margin-top: 0; }
.content-body p { font-size: 0.95rem; color: #4b5563; line-height: 1.8; margin-bottom: 1rem; }
.content-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.content-body li { font-size: 0.95rem; color: #4b5563; line-height: 1.8; margin-bottom: 0.25rem; }

/* ---- Download Items ---- */
.download-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: white; border: 1px solid #f3f4f6; border-radius: 10px;
    padding: 1.25rem 1.5rem; transition: all 0.3s;
}
.download-item:hover { border-color: #c084fc; box-shadow: 0 4px 15px rgba(147,51,234,0.1); }
@media(max-width:640px) { .download-item { flex-direction: column; align-items: stretch; } }

/* ---- Team Card ---- */
.team-card {
    background: white; border: 1px solid #f3f4f6; border-radius: 12px;
    padding: 2rem 1.5rem; text-align: center; transition: all 0.3s;
}
.team-card:hover { border-color: #c084fc; transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }

/* ---- Page Header ---- */
.page-header-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 0 2.5rem; text-align: center; color: white;
}
@media(max-width:768px) { .page-header-bar { padding: 4.5rem 0 2rem; } }

/* ---- Sidebar ---- */
.tools-sidebar-sticky { position: sticky; top: 80px; }
@media(max-width:1023px) { .tools-sidebar-sticky { position: static; } }
.sidebar-link {
    display: block; padding: 0.6rem 0.75rem; font-size: 0.85rem;
    color: #4b5563; border-radius: 6px; transition: all 0.2s; border: none; background: none; cursor: pointer; text-align: left; width: 100%;
}
.sidebar-link:hover { background: #f3e8ff; color: #9333ea; padding-left: 1rem; }

/* ---- Animate ---- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.calc-section { animation: fadeIn 0.5s ease; }