/* Modern KoraTools CSS */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563EB;
    --primary-hover: #1D4ED8;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-gray: #F3F4F6;
    --bg-light: #F9FAFB;
    --border-gray: #E5E7EB;
    --green: #10B981;
    --yellow: #F59E0B;
    --purple: #8B5CF6;
    --red: #EF4444;
    --orange: #F97316;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    padding: 16px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-text {
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-light);
}

.btn-request {
    padding: 10px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-request:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--bg-light) 0%, white 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 52px;
    font-size: 16px;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Filter Section */
.filter-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.filter-tabs::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 4px;
}

.filter-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Sections */
.featured-section,
.tools-section {
    padding: 60px 0;
}

.tools-section.bg-light {
    background: var(--bg-light);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}

.section-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.section-icon-center {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--bg-light);
    margin: 0 auto 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title-large {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Featured Tool */
.featured-tool {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 20px;
    transition: all 0.3s;
}

.featured-tool:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px);
}

.featured-tool-icon {
    flex-shrink: 0;
}

.featured-tool-content {
    flex: 1;
}

.featured-tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.featured-tool-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.featured-tool-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.featured-tool-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.featured-tool-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.2s;
}

.featured-tool-arrow:hover {
    background: var(--primary-blue);
}

.featured-tool-arrow:hover svg path {
    stroke: white;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tool-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.tool-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.tool-card-link {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: inherit;
}

.tool-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 1;
}

.tool-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-trending {
    background: #ECFDF5;
    color: var(--green);
}

.badge-popular {
    background: #EFF6FF;
    color: var(--primary-blue);
}

.badge-premium {
    background: #FEF3C7;
    color: var(--yellow);
}

.tool-icon {
    margin-bottom: 16px;
}

.tool-content {
    flex: 1;
}

.tool-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tool-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.tool-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

/* Large Tool Card */
.tool-card-large {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
}

.tool-card-large:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.tool-card-large-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.tool-icon-large {
    flex-shrink: 0;
}

.tool-card-large h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.tool-card-large p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool-arrow-link {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.2s;
}

.tool-arrow-link:hover {
    background: var(--primary-blue);
}

.tool-arrow-link:hover svg path {
    stroke: white;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    margin: 0 auto 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--bg-light);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--purple) 100%);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.btn-cta {
    padding: 16px 32px;
    background: white;
    color: var(--primary-blue);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* All Tools Section */
.all-tools-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.view-all-link {
    text-align: center;
    margin-top: 32px;
}

.link-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: gap 0.2s;
}

.link-primary:hover {
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-tool {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title-large {
        font-size: 28px;
    }
    
    .cta-card {
        padding: 48px 24px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 28px;
    }
}
