/* Homepage Custom Styles */

:root {
    --primary-color: #0d6efd;
    /* Bootstrap Primary */
    --primary-light: #e9ecef;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-body: #f8f9fa;
}

body {
    background-color: var(--bg-body);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
}

/* Accessibility override: standard primary #0d6efd fails 4.5:1 contrast on white */
.text-primary,
.btn-link {
    color: #0a58ca !important;
}

/* btn-outline-primary: Bootstrap default #0d6efd is ~3:1 on white (fails WCAG AA).
   #0054a3 achieves ~7:1 ratio. */
.btn-outline-primary {
    --bs-btn-color: #0054a3;
    --bs-btn-border-color: #0054a3;
    --bs-btn-hover-bg: #0054a3;
    --bs-btn-hover-border-color: #0054a3;
    --bs-btn-active-bg: #003d7a;
    --bs-btn-active-border-color: #003d7a;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Search Bar */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
    background: white;
    padding: 0.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
}

.search-input {
    border: none;
    flex-grow: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-right: 0.25rem;
}

.search-btn:hover {
    background-color: #0b5ed7;
}

/* Hero Cards */
.hero-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #dee2e6;
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.icon-purple {
    background-color: #f3f0ff;
    color: #7950f2;
}

.icon-blue {
    background-color: #e7f5ff;
    color: #228be6;
}

.hero-card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.hero-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Terminal Card */
.terminal-card {
    background: #1e293b;
    color: #38bdf8;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    border: none;
}

.terminal-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

.code-line {
    margin-bottom: 0.25rem;
    display: block;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #38bdf8;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Category Sections - Two Column Layout */
.tools-section {
    padding: 5rem 0;
    border-bottom: 1px solid #eee;
}

.tools-section:last-of-type {
    border-bottom: none;
}

.section-gray {
    background-color: #fafafa;
}

.section-white {
    background-color: #ffffff;
}

.section-blue {
    background-color: #f8f9ff;
}

.section-purple {
    background-color: #faf8ff;
}

.section-green {
    background-color: #f8fdf8;
}

.section-warm {
    background-color: #fffbf5;
}

/* Section Inner: left info + right tools */
.section-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left: Section Info */
.section-info {
    position: sticky;
    top: 2rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    border: 2px solid;
}

.section-info h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-info p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.section-illustration {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.section-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right: 3-column Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Tool Card - Vertical Layout matching reference */
.tool-card-home {
    background: white;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    min-height: 140px;
    position: relative;
}

.tool-card-home:hover {
    border-color: #d0d5dd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    color: inherit;
}

.tool-card-home.coming-soon {
    opacity: 0.55;
}

.tool-card-home.coming-soon:hover {
    box-shadow: none;
    cursor: default;
}

/* Card Header: icon left, arrow right */
.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tool-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.tool-card-arrow {
    color: #c0c5cf;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.tool-card-home:hover .tool-card-arrow {
    color: #6c63ff;
}

.tool-card-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 0.35rem;
}

.tool-card-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.45;
}

.badge-soon {
    font-size: 0.6rem;
    background: #f3f4f6;
    color: #9ca3af;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 4px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 991.98px) {
    .section-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-info {
        position: static;
    }

    .section-illustration {
        display: none;
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .hero-section  { padding: 3.5rem 0 2.5rem; }
    .hero-title    { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: 2rem; }
}

@media (max-width: 575.98px) {
    .hero-section  { padding: 2.5rem 0 1.5rem; }
    .hero-title    { font-size: 1.75rem; letter-spacing: -0.01em; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.5rem; }

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

    .tools-section {
        padding: 3rem 0;
    }
}

/* (homepage tool-card styles moved to .tool-card-home above) */

/* Live Preview Bar - Hidden for now or simplified */
/* Live Preview Bar */
.live-preview-bar {
    background: white;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 800px;
    width: 100%;
    border: 1px solid #e9ecef;
}

.preview-pill {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
}

.preview-input {
    border: none;
    outline: none;
    width: 100%;
    color: var(--text-dark);
    font-family: inherit;
    background: transparent;
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: transparent;
    opacity: 0.5;
}