/* Homepage Specific Styles */

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 64px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #0f172a;
}

.hero p {
    font-size: 20px;
    color: #64748b;
    margin: 0 0 32px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

/* Tools Grid */
.tools-section {
    margin-bottom: 64px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #3b82f6;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
}

.tool-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tool-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tool-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #3b82f6;
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 16px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 24px;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #e0f2fe;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #0284c7;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Tool-specific Components */

/* Statistics */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* Code Display */
.code-display {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Syntax Highlighting */
.json-key {
    color: #ff79c6;
}

.json-string {
    color: #f1fa8c;
}

.json-number {
    color: #bd93f9;
}

.json-boolean {
    color: #50fa7b;
}

.json-null {
    color: #8be9fd;
}

/* Dark Mode Specific for Tools */
@media (prefers-color-scheme: dark) {
    .hero h1 {
        color: #f0f0f0;
    }

    .hero p {
        color: #a0a0a0;
    }

    .stat-value {
        color: #60a5fa;
    }

    .tool-card {
        background: #1a1a1a;
    }

    .tool-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .tool-icon {
        background: #1e3a8a;
        color: #93bbfc;
    }

    .tool-name {
        color: #f0f0f0;
    }

    .tool-description {
        color: #a0a0a0;
    }

    .tool-tag {
        background: #2a2a2a;
        color: #a0a0a0;
    }

    .features-grid {
        background: #1a1a1a;
    }

    .feature-icon {
        background: #1e293b;
        color: #60a5fa;
    }

    .feature-title {
        color: #f0f0f0;
    }

    .feature-description {
        color: #a0a0a0;
    }

    .stat-item {
        background: #1a1a1a;
    }

    .code-display {
        background: #0a0a0a;
        color: #f0f0f0;
    }
}

/* Responsive Design for Tools */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-stats {
        gap: 24px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        padding: 32px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-wrap: wrap;
    }
}