/* Wotfard Bold font - make sure to place the font file in a 'fonts' folder */
@font-face {
    font-family: 'Wotfard';
    src: url('fonts/Wotfard-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Fallback fonts if Wotfard is not available */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-font: 'Wotfard', 'Inter', sans-serif;  /* Wotfard Bold with fallbacks */
    --secondary-font: 'Inter', sans-serif;
    --primary-blue: #3F5FA9;           /* Main brand color */
    --secondary-orange: #F79850;       /* Secondary brand color */
    --supportive-dark: #373435;        /* Supportive brand color */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #373435;           /* Using supportive color for primary text */
    --text-secondary: #64748b;
    --border-light: #e2e8f0;
    --hover-bg: #f1f5f9;
    --success: #10b981;
    --warning: #F79850;                /* Using secondary color for warning */
    --info: #3F5FA9;                   /* Using main color for info */
    --gradient: linear-gradient(135deg, #3F5FA9 0%, #5273BF 100%);  /* Gradient using main color */
    --gradient-alt: linear-gradient(135deg, #F79850 0%, #FBA968 100%);  /* Alternative gradient with secondary */
}
    --gradient: linear-gradient(135deg, #3F5FA9 0%, #5273BF 100%);  /* Gradient using main color */
    --gradient-alt: linear-gradient(135deg, #F79850 0%, #FBA968 100%);  /* Alternative gradient with secondary */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--secondary-font);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 60px; /* Space for fixed navbar */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-family: var(--primary-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-orange);  /* Orange for active/hover */
    background: rgba(247, 152, 80, 0.1);  /* Light orange background */
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    padding: 60px 0 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(25deg);
}

.hero h1 {
    font-family: var(--primary-font);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* Filters Section */
.filters {
    background: var(--bg-white);
    padding: 30px;
    margin: -20px 0 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:hover {
    border-color: var(--secondary-orange);  /* Orange on hover */
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(63, 95, 169, 0.1);  /* Shadow using brand color */
}

/* Quick filters */
.quick-filters {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.quick-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.quick-filter-btn:hover {
    border-color: var(--secondary-orange);
    color: var(--secondary-orange);
    background: var(--hover-bg);
}

.quick-filter-btn.active {
    background: var(--secondary-orange);
    color: white;
    border-color: var(--secondary-orange);
}

/* Comparison Area */
.comparison-area {
    position: relative;
    margin-bottom: 40px;
}

.category-section {
    margin-bottom: 40px;
}

.category-header {
    background: var(--bg-white);
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid var(--border-light);
}

.category-title {
    font-family: var(--primary-font);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 0 0 12px 12px;
}

.tool-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: var(--secondary-orange);  /* Using secondary color for hover */
}

.tool-card.selected {
    border: 2px solid var(--primary-blue);
    background: rgba(63, 95, 169, 0.05);  /* Light version of primary color */
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tool-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.tool-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--primary-font);
}

.tool-type {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tool-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-features {
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.75rem;
    margin: 4px 4px 4px 0;
    color: var(--text-secondary);
}

.tool-pricing {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
    font-weight: 600;
}

.price {
    font-size: 1.5rem;
    color: var(--secondary-orange);  /* Using secondary color for pricing */
}

.period {
    color: var(--text-secondary);
    font-weight: 400;
}

.tool-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 95, 169, 0.3);  /* Shadow using brand color */
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--secondary-orange);
    color: var(--secondary-orange);
}

/* Compare drawer */
.compare-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--primary-blue);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
}

.compare-drawer.active {
    transform: translateY(0);
}

.compare-content {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.compare-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--bg-light);
    font-weight: 600;
    position: sticky;
    top: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    position: absolute;
    top: 12px;
    right: 12px;
}

.badge-new {
    background: var(--success);
    color: white;
}

.badge-popular {
    background: var(--secondary-orange);  /* Using secondary color */
    color: white;
}

.badge-enterprise {
    background: var(--primary-blue);      /* Using primary color */
    color: white;
}

.badge-ai-first {
    background: var(--supportive-dark);   /* Using supportive color */
    color: white;
}

/* Content pages */
.content-page {
    background: var(--bg-white);
    padding: 40px;
    margin: 40px 0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    min-height: 400px;
}

.content-page h2 {
    font-family: var(--primary-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.content-page h3 {
    font-family: var(--primary-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 30px 0 15px;
}

.content-page p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-page ul {
    margin: 15px 0 15px 30px;
    color: var(--text-secondary);
}

.content-page ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content-page strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.category-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--secondary-orange);  /* Orange border on hover */
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    height: 80px;
    width: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-alt);  /* Using secondary gradient */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    font-family: var(--primary-font);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.category-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.category-card .category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    height: 80px;
    width: 80px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--bg-white);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-orange);  /* Orange on hover */
}

/* Loading states */
.loading {
    text-align: center;
    padding: 60px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No results message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results p {
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .quick-filters {
        flex-wrap: wrap;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Mobile navigation */
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 10px 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
}