/* Super SEO Toolkit - Bootstrap Enhanced Professional Styles */

/* Custom CSS Variables */
:root {
    --sst-primary: #1e40af;
    --sst-primary-dark: #1e3a8a;
    --sst-secondary: #64748b;
    --sst-accent: #0ea5e9;
    --sst-success: #059669;
    --sst-warning: #d97706;
    --sst-danger: #dc2626;
    --sst-light: #f8fafc;
    --sst-dark: #0f172a;
    --sst-border: #e2e8f0;
    --sst-text: #334155;
    --sst-text-muted: #64748b;
    --sst-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --sst-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Bootstrap Variable Overrides */
:root {
    --bs-primary: var(--sst-primary);
    --bs-primary-rgb: 30, 64, 175;
    --bs-secondary: var(--sst-secondary);
    --bs-success: var(--sst-success);
    --bs-warning: var(--sst-warning);
    --bs-danger: var(--sst-danger);
    --bs-light: var(--sst-light);
    --bs-dark: var(--sst-dark);
    --bs-body-color: var(--sst-text);
    --bs-border-color: var(--sst-border);
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--bs-font-sans-serif);
    color: var(--sst-text);
    line-height: 1.6;
    background-color: #ffffff;
}

.text-muted {
    color: var(--sst-text-muted) !important;
}

/* Header Styles */
.navbar {
    box-shadow: var(--sst-shadow);
    background: #ffffff !important;
    border-bottom: 1px solid var(--sst-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--sst-primary) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--sst-text) !important;
    transition: color 0.2s ease;
    margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: var(--sst-primary) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--sst-primary) 0%, var(--sst-primary-dark) 100%);
    color: white;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Search Section */
.search-section {
    background: var(--sst-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--sst-border);
}

.search-container .form-control {
    border: 2px solid var(--sst-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.search-container .form-control:focus {
    border-color: var(--sst-primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25), 0 4px 12px rgba(30, 64, 175, 0.15);
    transform: translateY(-1px);
}

/* Enhanced Tool Cards - Clean Modern Design */
.tool-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    opacity: 1;
    transform: translateY(0);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    border-color: var(--sst-primary);
}

.tool-card .card-body {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
}

.tool-card .tool-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sst-primary) 0%, var(--sst-primary-dark) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.25);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.35);
}

.tool-card .tool-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

.tool-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tool-card:hover .card-title {
    color: var(--sst-primary);
}

.tool-card .card-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-card .btn-primary {
    background: linear-gradient(135deg, var(--sst-primary) 0%, var(--sst-primary-dark) 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tool-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.tool-card .badge {
    background: rgba(74, 144, 226, 0.1) !important;
    color: var(--sst-primary) !important;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tool-card:hover .badge {
    background: var(--sst-primary) !important;
    color: white !important;
}

/* Category Sections */
.category-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.category-section h2 {
    color: #1a202c;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.category-section .text-muted {
    color: #64748b !important;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-section .btn-outline-primary {
    border-color: var(--sst-primary);
    color: var(--sst-primary);
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-section .btn-outline-primary:hover {
    background: var(--sst-primary);
    border-color: var(--sst-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.25);
}

/* Filter Tabs Enhancement */
.bg-light {
    background: #f8fafc !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.d-flex.flex-wrap.gap-2 .btn {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-radius: 12px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.d-flex.flex-wrap.gap-2 .btn-primary {
    background: var(--sst-primary);
    border-color: var(--sst-primary);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.d-flex.flex-wrap.gap-2 .btn-outline-primary {
    border-color: rgba(74, 144, 226, 0.3);
    color: var(--sst-primary);
}

.d-flex.flex-wrap.gap-2 .btn-outline-primary:hover {
    background: var(--sst-primary);
    border-color: var(--sst-primary);
    transform: translateY(-1px);
}

.tool-card:hover .btn {
    color: white !important;
    border-color: var(--sst-primary) !important;
}

.tool-card:hover .btn-primary {
    background: var(--sst-primary-dark) !important;
    color: white !important;
}

.tool-card:hover .btn-outline-primary {
    background: var(--sst-primary) !important;
    color: white !important;
}

.tool-card-header {
    background: var(--sst-light);
    padding: 1.5rem;
    border-bottom: 1px solid var(--sst-border);
    text-align: center;
    transition: all 0.4s ease;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--sst-primary);
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.tool-icon i {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.tool-card-body {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card h5 {
    color: var(--sst-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.tool-card p {
    color: var(--sst-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.tool-card .badge {
    transition: all 0.3s ease;
}

/* Enhanced individual tool items hover effects */
.tool-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.tool-item:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(14, 165, 233, 0.05));
    transform: translateX(8px);
    border-left: 3px solid var(--sst-primary);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.tool-item a {
    text-decoration: none;
    color: var(--sst-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.tool-item:hover a {
    color: var(--sst-primary);
    font-weight: 500;
}

.tool-item .tool-icon-small {
    width: 32px;
    height: 32px;
    background: var(--sst-primary);
    color: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tool-item:hover .tool-icon-small {
    background: linear-gradient(135deg, var(--sst-primary), var(--sst-accent));
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

/* Staggered animation for tool lists */
.tool-list {
    counter-reset: tool-counter;
}

.tool-list .tool-item {
    counter-increment: tool-counter;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--animation-delay, 0) * 0.1s);
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse effect for featured tools */
.featured-tool .tool-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--sst-primary), var(--sst-accent), var(--sst-primary));
    border-radius: 0.875rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-tool .tool-card:hover::after {
    opacity: 0.7;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Smooth loading animation for card grids */
.tool-grid {
    display: grid;
    gap: 1.5rem;
}

.tool-grid .tool-card {
    animation: slideInCard 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

@keyframes slideInCard {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Category Sections */
.category-section {
    padding: 3rem 0;
}

.category-section:nth-child(even) {
    background: var(--sst-light);
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--sst-primary), var(--sst-accent));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.category-header h2 {
    color: var(--sst-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--sst-accent);
    transition: width 0.6s ease;
}

.category-header:hover h2::after {
    width: 100%;
}

.category-header p {
    color: var(--sst-text-muted);
    font-size: 1.1rem;
    position: relative;
    animation: subtle-fade-in 0.8s ease;
}

@keyframes subtle-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple Clean Breadcrumb Styles */
.breadcrumb {
    background: transparent !important;
    padding: 0.5rem 0 !important;
    margin-bottom: 1rem !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.breadcrumb-item,
.custom-breadcrumb .breadcrumb-item,
.tool-header .breadcrumb .breadcrumb-item {
    color: var(--sst-primary) !important;
    font-weight: 400 !important;
}

.breadcrumb-item a,
.custom-breadcrumb .breadcrumb-item a,
.tool-header .breadcrumb .breadcrumb-item a {
    color: var(--sst-primary) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline !important;
}

.breadcrumb-item a:hover,
.custom-breadcrumb .breadcrumb-item a:hover,
.tool-header .breadcrumb .breadcrumb-item a:hover {
    color: var(--sst-primary) !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.breadcrumb-item.active,
.custom-breadcrumb .breadcrumb-item.active,
.tool-header .breadcrumb .breadcrumb-item.active {
    color: var(--sst-primary) !important;
    font-weight: 400 !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/" !important;
    color: var(--sst-primary) !important;
    margin: 0 0.5rem !important;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "→";
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.breadcrumb:hover .breadcrumb-item+.breadcrumb-item::before {
    transform: none;
    color: var(--sst-primary);
}

/* Buttons */
.btn-primary {
    background: var(--sst-primary);
    border: 1px solid var(--sst-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--sst-primary-dark);
    border-color: var(--sst-primary-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--sst-primary);
    border: 1px solid var(--sst-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--sst-primary);
    border-color: var(--sst-primary);
    color: white;
    transform: translateY(-1px);
}

/* Tool Page Styles */
.tool-header {
    background: var(--sst-primary);
    color: white;
    padding: 2rem 0;
}

/* Override tool-header color inheritance for breadcrumbs */
.tool-header .breadcrumb,
.tool-header .breadcrumb *,
.tool-header .breadcrumb-item,
.tool-header .breadcrumb-item * {
    color: var(--sst-primary) !important;
}

.tool-header .breadcrumb .breadcrumb-item.active,
.tool-header .breadcrumb .breadcrumb-item.active * {
    color: var(--sst-primary) !important;
}

.tool-header .breadcrumb a,
.tool-header .breadcrumb a * {
    color: var(--sst-primary) !important;
}

.tool-header .breadcrumb a:hover,
.tool-header .breadcrumb a:hover * {
    color: var(--sst-primary) !important;
}

.tool-breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
}

.tool-breadcrumb::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 1px;
}

.tool-breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tool-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.tool-main {
    padding: 3rem 0;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--sst-text);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--sst-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--sst-primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.form-text {
    color: var(--sst-text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Results Section */
.results-section {
    background: #ffffff;
    border: 1px solid var(--sst-border);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 2rem;
}

.results-header {
    background: var(--sst-light);
    padding: 1.5rem;
    border-bottom: 1px solid var(--sst-border);
}

.results-header h3 {
    color: var(--sst-primary);
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-body {
    padding: 1.5rem;
}

/* Alert Variants */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-danger {
    background: #fecaca;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Progress Bars */
.progress {
    height: 0.75rem;
    border-radius: 0.375rem;
    background: var(--sst-border);
}

.progress-bar {
    border-radius: 0.375rem;
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--sst-border);
}

.table th {
    background: var(--sst-light);
    color: var(--sst-text);
    font-weight: 600;
    border-bottom: 2px solid var(--sst-border);
}

/* Footer */
.footer {
    background: var(--sst-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

.footer .btn-footer {
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer .btn-primary.btn-footer:hover {
    background-color: var(--sst-accent);
    border-color: var(--sst-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer .btn-outline-light.btn-footer:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer .btn-outline-light {
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer .btn-outline-light:hover i {
    color: white !important;
}

.footer-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-badge:hover i {
    color: white !important;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    margin-top: 2rem;
    color: #9ca3af;
}

/* Utility Classes */
.text-primary {
    color: var(--sst-primary) !important;
}

.bg-light-custom {
    background: var(--sst-light) !important;
}

.border-primary {
    border-color: var(--sst-primary) !important;
}

.shadow-custom {
    box-shadow: var(--sst-shadow);
}

.shadow-lg-custom {
    box-shadow: var(--sst-shadow-lg);
}

/* Icon Styles */
.lucide {
    width: 1em;
    height: 1em;
    stroke-width: 2;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}

h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

a {
    color: var(--secondary-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-gold);
    text-decoration: underline;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gold-text {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    outline: none;
    position: relative;
    overflow: hidden;
}

.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-gold {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--black);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-gold);
    border: 2px solid var(--secondary-gold);
}

.btn-outline:hover {
    background: var(--secondary-gold);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--gray);
}

.btn-white:hover {
    background: var(--gray-light);
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));

    /* Loading States */
    .loading {
        opacity: 0.6;
        pointer-events: none;
    }

    .spinner-border-sm {
        width: 1rem;
        height: 1rem;
    }

    /* Responsive Utilities */
    @media (max-width: 576px) {
        .tool-header h1 {
            font-size: 1.75rem;
        }

        .hero {
            padding: 2rem 0;
        }

        .category-section {
            padding: 2rem 0;
        }

        .tool-card-header {
            padding: 1rem;
        }

        .tool-card-body {
            padding: 1rem;
        }
    }

    /* Custom Checkbox Styles */
    .form-check-input:checked {
        background-color: var(--sst-primary);
        border-color: var(--sst-primary);
    }

    .form-check-input:focus {
        border-color: var(--sst-primary);
        box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
    }

    /* Animations */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .fade-in {
        animation: fadeIn 0.5s ease;
    }

    /* Print Styles */
    @media print {

        .navbar,
        .footer,
        .btn {
            display: none !important;
        }

        .tool-main {
            padding: 0 !important;
        }
    }

    z-index: 999;
}

.ad-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ad-block {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}


/* Footer */
.footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-gold);
    text-decoration: none;
}

.support-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--black);
}

.footer-bottom {
    border-top: 1px solid var(--gray);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    color: var(--gray-light);
    margin-bottom: 0.5rem;
}

.footer-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--secondary-gold);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--black);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tool Page Styles */
.tool-header {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    padding: 2rem 0;
    text-align: center;
    color: var(--black);
}

.tool-header h1 {
    margin-bottom: 0.5rem;
}

.tool-breadcrumb {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.tool-breadcrumb::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--sst-primary), transparent);
    border-radius: 1px;
}

.tool-breadcrumb a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tool-breadcrumb a:hover {
    color: var(--sst-primary);
    text-shadow: 0 1px 3px rgba(30, 64, 175, 0.2);
}

.tool-main {
    padding: 3rem 0;
}

.tool-content {
    max-width: 800px;
    margin: 0 auto;
}

.result-section {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border-left: 4px solid var(--primary-gold);
}

.result-title {
    color: var(--black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
}

/* Status indicators */
.status-success {
    color: var(--success);
    background: rgba(40, 167, 69, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    font-weight: 500;
}

.status-warning {
    color: var(--warning);
    background: rgba(255, 193, 7, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    font-weight: 500;
}

.status-error {
    color: var(--error);
    background: rgba(220, 53, 69, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px var(--shadow);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-toggle {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-light);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .sidebar {
        display: none;
    }

    .tools-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .support-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input,
    .search-btn {
        border-radius: 0;
    }

    .search-input {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .search-btn {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    .tool-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .sidebar,
    .nav-toggle,
    .search-section {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* Enhanced Responsive Hover Effects */
@media (max-width: 768px) {

    /* Disable complex hover effects on mobile for better performance */
    .tool-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .tool-card:hover .tool-icon {
        transform: scale(1.05);
        background: var(--sst-primary);
    }

    .tool-item:hover {
        transform: translateX(4px);
    }

    /* Reduce animation duration on mobile */
    .tool-card,
    .tool-item,
    .tool-icon {
        transition-duration: 0.2s;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Simplify hover effects for touch devices */
    .tool-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .tool-card:hover::before {
        transform: scaleX(1);
    }

    .tool-item:hover {
        background: rgba(30, 64, 175, 0.05);
        transform: none;
        border-left: 3px solid var(--sst-primary);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tool-card {
        border: 2px solid;
    }

    .tool-card:hover {
        border-color: var(--sst-primary);
        box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .tool-card,
    .tool-item,
    .tool-icon,
    .badge {
        transition: none;
        animation: none;
    }

    .tool-card:hover {
        transform: none;
    }

    .tool-item:hover {
        transform: none;
    }
}