/* SEOLumina - Simple Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 0;
    padding: 20px;
    background: white;
    border-radius: 0;
    box-shadow: none;
}

header h1 {
    color: #f97316;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

.search-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #f97316;
}

.input-group button {
    padding: 15px 30px;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.input-group button:hover {
    background: #ea580c;
}

.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results {
    display: none;
}

.results.show {
    display: block;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.metric-card h3 {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.metric-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #f97316;
}

.products-table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.products-table table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.products-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.products-table tr:hover {
    background: #f8fafc;
}

.product-link {
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
}

.product-link:hover {
    text-decoration: underline;
}

.price {
    font-weight: 600;
}

.price.free {
    color: #10b981;
}

.rating {
    color: #f59e0b;
}

.sales {
    color: #059669;
    font-weight: 500;
}

.error {
    background: #fee2e2;
    color: #dc2626;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.success {
    background: #d1fae5;
    color: #059669;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
    
    .products-table {
        overflow-x: auto;
    }
    
    .products-table table {
        min-width: 600px;
    }
}
