/**
 * Home Page Styles - CrawlRabbit
 * Styles specific to the homepage (main search, crawl results, stats)
 */

/* ========== Main Search Section ========== */
.main-search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 25px auto 15px;
    padding: 0 20px;
    max-width: 900px;
}

.search-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.search-title-text {
    padding: 10px;
    margin: 0 auto;
    text-align: center;
}

.main-search-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    gap: 8px;
    margin-bottom: 10px;
}

.main-search-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 4px;
    border: 2px solid #3498db;
    font-size: 16px;
    outline: none;
    transition: all 0.2s;
}

.main-search-input:hover {
    border-color: #3498db;
}

.main-search-input:focus {
    border-color: #3498db;
}

.main-crawl-button {
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.main-crawl-button:hover {
    background-color: #2980b9;
}

.main-crawl-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-hint {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

.crawl-tagline {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
}

.value-proposition {
    font-size: 16px;
    color: #444;
    padding: 0 20px 12px;
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.learn-more-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.learn-more-link:hover {
    text-decoration: underline;
}

/* ========== Crawl Info & Results ========== */
.crawl-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.crawl-info h3 {
    margin-top: 0;
    color: #2c3e50;
}

.crawl-info p {
    margin: 8px 0;
}

.crawl-info strong {
    color: #3498db;
}

/* Notification Form */
.notify-form {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.notify-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.notify-form-inline {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.notify-form input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.notify-form button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.notify-form button:hover {
    background-color: #218838;
}

/* ========== Stats Section ========== */
.stats {
    text-align: center;
    margin: 20px auto;
    font-size: 15px;
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    max-width: 900px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stats span {
    margin: 0 5px;
    font-weight: bold;
    color: #3498db;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .main-search-section {
        margin: 20px auto 15px;
        padding: 0 15px;
    }

    .search-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .search-title-text {
        font-size: 14px;
        padding: 8px;
    }

    .main-search-container {
        flex-direction: column;
        gap: 10px;
    }

    .main-search-input, .main-crawl-button {
        width: 100%;
        max-width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }

    .crawl-info {
        padding: 15px;
    }

    .notify-form-inline {
        flex-direction: column;
        gap: 10px;
    }

    .notify-form input[type="email"],
    .notify-form button {
        width: 100%;
    }

    .stats {
        font-size: 13px;
        padding: 12px 10px;
        margin: 15px 15px;
        line-height: 1.6;
    }

    .stats span {
        display: inline-block;
        margin: 0 4px;
    }

    .value-proposition {
        font-size: 14px;
        padding: 0 15px 10px;
        line-height: 1.5;
    }
}
