/*
============================================================
    TECHSPHERE - MAIN STYLESHEET (COMPILED)
============================================================
    This is the complete, compiled CSS file for the entire
    website. It fixes all visibility issues in dark mode.
    Replace your old style.css content with this.
============================================================
*/

/* --- 1. Global Styles & Base Typography --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb; /* bg-gray-50 */
    color: #1f2937; /* text-gray-800 */
    transition-property: color, background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.dark body {
    background-color: #111827; /* dark:bg-gray-900 */
    color: #f3f4f6; /* dark:text-gray-100 */
}

/* Base styles for articles using the 'prose' class */
.prose h1, .prose h2, .prose h3 {
    color: #111827;
}
.dark .prose h1, .dark .prose h2, .dark .prose h3 {
    color: #ffffff;
}
.prose a {
    color: #2563eb; /* text-blue-600 */
    text-decoration: none;
}
.dark .prose a {
    color: #60a5fa; /* dark:text-blue-400 */
}
.prose a:hover {
    text-decoration: underline;
}
.prose code {
    background-color: #e5e7eb;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}
.dark .prose code {
     background-color: #374151;
}

/* --- 2. Navigation & Header --- */
.nav-link {
    color: #4b5563; /* text-gray-600 */
    font-weight: 600;
    transition: color 200ms ease-in-out;
}
.dark .nav-link {
    color: #d1d5db; /* dark:text-gray-300 */
}
.nav-link:hover {
    color: #3b82f6; /* hover:text-blue-500 */
}
.dark .nav-link:hover {
    color: #60a5fa; /* dark:hover:text-blue-400 */
}

.mobile-nav-link {
    display: block;
    color: #4b5563;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}
.dark .mobile-nav-link {
    color: #d1d5db;
}
.mobile-nav-link:hover {
    background-color: #f3f4f6;
}
.dark .mobile-nav-link:hover {
    background-color: #1f2937;
}

/* --- 3. Reusable Components --- */

/* Article Cards (Homepage & Category Pages) */
.article-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 300ms ease-in-out;
}
.dark .article-card {
    background-color: #1f2937; /* dark:bg-gray-800 */
}
.article-card:hover {
    transform: translateY(-0.5rem);
}
.article-card-title {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #111827;
}
.dark .article-card-title {
    color: #ffffff;
}
.article-card-title a {
    color: inherit;
    text-decoration: none;
}
.article-card-title a:hover {
    text-decoration: underline;
}
.article-card-excerpt {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #4b5563;
}
.dark .article-card-excerpt {
    color: #9ca3af;
}

/* Form Styles (Contact & Newsletter) */
.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #374151;
}
.dark .form-label {
    color: #d1d5db;
}
.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: box-shadow 150ms ease-in-out;
}
.dark .form-input {
    background-color: #374151;
    border-color: #4b5563;
}
.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: transparent;
    --tw-ring-color: #3b82f6;
    box-shadow: 0 0 0 2px var(--tw-ring-color);
}


/* --- 4. Ad Placeholders (Sitewide) --- */
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: 2px dashed #d1d5db;
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    border-radius: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    min-height: 90px;
}
.dark .ad-slot {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #9ca3af;
}
.ad-slot-header { max-width: 100%; }
@media (min-width: 768px) {
    .ad-slot-header { max-width: 728px; }
}
.ad-slot-sidebar { min-height: 250px; }
.ad-slot-inline { min-height: 200px; }
.ad-slot-bottom { min-height: 250px; max-width: 100%; }
@media (min-width: 1024px) {
    .ad-slot-bottom { max-width: 970px; }
}


/* --- 5. Page-Specific Styles --- */

/* Post Page: Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 0.25rem; /* 4px */
    z-index: 50;
    width: 0%;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: width 75ms ease-out;
}

/* Post Page: Callout Block */
.callout {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left-width: 4px;
    border-radius: 0 0.25rem 0.25rem 0;
    background-color: #eff6ff;
    border-color: #3b82f6;
}
.dark .callout {
    background-color: #1e293b; /* slate-800 */
    border-color: #60a5fa;
}
.callout h4 {
    font-weight: 700;
    color: #1f2937;
}
.dark .callout h4 {
    color: #ffffff;
}
.callout p {
    margin-top: 0.5rem !important; /* Overrides prose */
    color: #374151;
}
.dark .callout p {
    color: #d1d5db;
}

/* --- 6. Funnel-Specific Styles (page2 & page3) --- */
#start-timer-btn:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
}
.dark #start-timer-btn:disabled {
    background-color: #1e40af; /* dark:bg-blue-800 */
}