/**
 * Frontend Styles
 *
 * Styles for the Geekbench Scraper frontend shortcode.
 *
 * @package GeekbenchScraper
 * @since 1.0.0
 */

/* Container */
.geekbench-scraper-frontend {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Search Form */
.geekbench-search-form {
    margin-bottom: 25px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.geekbench-search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.geekbench-search-input:focus {
    outline: none;
}

.geekbench-search-button,
.geekbench-refresh-button {
    padding: 12px 24px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.geekbench-search-button:hover,
.geekbench-refresh-button:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geekbench-search-button:active,
.geekbench-refresh-button:active {
    transform: translateY(0);
}

.geekbench-refresh-button {
    background: #666;
}

.geekbench-refresh-button:hover {
    background: #444;
}

/* Controls */
.geekbench-controls {
    margin-bottom: 20px;
}

/* Messages */
.geekbench-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.geekbench-error p {
    margin: 0;
}

.geekbench-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 6px;
}

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

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.geekbench-loading p {
    color: #666;
    font-size: 16px;
}

/* Results Header */
.results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.results-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.75em;
    color: #1a1a1a;
    font-weight: 600;
}

.results-count {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .geekbench-search-input {
        width: 100%;
        min-width: 100%;
    }
    
    .geekbench-search-button,
    .geekbench-refresh-button {
        width: 100%;
    }
    
    .results-header h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .geekbench-scraper-frontend {
        margin: 20px 0;
    }
    
    .geekbench-search-input,
    .geekbench-search-button,
    .geekbench-refresh-button {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .results-header h3 {
        font-size: 1.2em;
    }
}

