/*
 * Master Stylesheet for TopTenAIAgents.co.uk
 * Version: 1.0
 * Date: 21 June 2025
 * This file contains all custom styles and theme overrides for the site.
*/

/* --- GLOBAL STYLES & DEFAULTS --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb; /* gray-50 */
    color: #374151; /* gray-700 */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: #2563eb; /* blue-600 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8; /* blue-700 */
    text-decoration: underline;
}

/* --- LAYOUT & SECTION STYLING --- */
.section-title {
    color: #111827; /* gray-900 */
    font-weight: 800; /* extrabold */
}

.glassmorphic-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 70%, #3b82f6 100%);
    color: white;
}

/* --- CARD COMPONENT STYLES --- */
.feature-card, .blog-card, .list-card, .category-card, .review-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.feature-card:hover, .blog-card:hover, .list-card:hover, .category-card:hover, .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.blog-card-image-container, .list-card-image-container {
    height: 200px;
    background-color: #e5e7eb;
}
.blog-card-image-container img, .list-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content, .list-card-content, .review-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- BUTTON STYLES --- */
.cta-button {
    background-color: #f59e0b; 
    color: #422006; 
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border-radius: 9999px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
}
.cta-button:hover {
    background-color: #d97706;
    transform: scale(1.05);
}
.cta-button-card {
    background-color: #3b82f6; 
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    padding: 0.5rem 1rem; 
    border-radius: 9999px; 
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    display: inline-block; 
    margin-top: auto; 
}
.cta-button-card:hover {
    background-color: #2563eb; 
    transform: scale(1.05);
}

/* --- CONTENT & TYPOGRAPHY RESTORATION --- */
main p, .post-content p, .review-content p {
    margin-bottom: 1.25rem; /* Equivalent to mb-5 in Tailwind */
    line-height: 1.75;
}

.post-content h2, .review-content h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d1d5db; /* Default border color */
}

/* --- ANIMATION --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE IMPROVEMENTS --- */
/* Make images responsive by default */
img {
    max-width: 100%;
    height: auto;
}

/* Make tables responsive */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Improve mobile typography */
@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.25rem !important;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* --- THEME OVERRIDE FOR SPECIFIC PAGE CATEGORIES --- */
/* Example: For a review page in the "Lead Generation" category, the body tag should have class="page-theme-lead-gen" */

.page-theme-lead-gen .review-content h2 { border-bottom-color: #10b981; }
.page-theme-sme .review-content h2 { border-bottom-color: #8b5cf6; }
.page-theme-customer-service .review-content h2 { border-bottom-color: #ef4444; }
/* ... etc. for all other themes ... */
/* Custom Styles for Search Result Highlighting */
mark, .search-query-highlight {
    background-color: #dbeafe; /* A light blue background */
    color: #1e40af; /* A dark blue text color */
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}