/* Custom CSS for AI Tools Hub */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #495057;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --text-light: #666666;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Base Styles with Enhanced Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 400;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Typography for Better Readability */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1.1rem;
    font-weight: 600;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    color: var(--text-dark);
}

/* Enhanced Text Classes */
.text-muted {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.text-light {
    color: var(--text-light) !important;
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Enhanced Paragraph Styling */
p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 400;
}

/* Enhanced List Styling */
ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Better Link Styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Enhanced Table Styling */
table {
    font-size: 0.95rem;
}

th {
    font-weight: 700;
    color: var(--text-dark);
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
}

td {
    color: var(--text-dark);
    font-weight: 400;
    vertical-align: middle;
}

/* Background Gradients */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

/* Navigation Improvements */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(13, 110, 253, 0.95) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: white !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--warning-color) !important;
    font-weight: 700;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--warning-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-stats {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.min-vh-50 {
    min-height: 50vh;
}

/* Enhanced Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.card-body {
    padding: 1.5rem;
}

.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
    border-color: var(--primary-color);
}

.category-card h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.category-card p {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.tool-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover::before {
    opacity: 1;
}

/* Enhanced Button Styling */
.btn {
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    padding: 0.6rem 1.2rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    border: none;
    color: var(--text-dark);
    font-weight: 700;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
    color: var(--text-dark);
}

/* Enhanced Badge Styling */
.badge {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
}

/* Enhanced Form Styling */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
}

/* Newsletter Form Enhancements */
.newsletter-form .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    font-size: 1rem;
}

.newsletter-form .btn {
    border: none;
    font-weight: 600;
}

/* Enhanced Icon Styling */
.category-icon i {
    transition: var(--transition);
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
}

.tool-icon i {
    transition: var(--transition);
}

.tool-card:hover .tool-icon i {
    transform: rotate(10deg) scale(1.1);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Section Styling */
section {
    padding: 4rem 0;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 3rem 0;
}

/* Enhanced Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stats-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

/* Enhanced Footer */
footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
}

footer h5, footer h6 {
    color: white;
    font-weight: 700;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* Content Area Enhancements */
.content h1, .content h2, .content h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.content strong {
    font-weight: 700;
    color: var(--text-dark);
}

.content em {
    font-style: italic;
    color: var(--text-muted);
}

/* Breadcrumb Enhancements */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item {
    font-size: 1rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 600;
}

/* List Group Enhancements */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.list-group-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Enhanced Category Navigation */
.category-nav-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    
    .content p {
        font-size: 1rem;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Utility Classes */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .newsletter-form,
    .adsense-sidebar,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: var(--text-dark) !important;
    }
} 