/* Website Screenshot Generator - Stili */

.wsg-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wsg-header {
    text-align: center;
    margin-bottom: 30px;
}

.wsg-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.wsg-header p {
    color: #666;
    font-size: 16px;
}

/* Form principale */
.wsg-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wsg-url-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.wsg-url-input:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Opzioni */
.wsg-options {
    margin-top: 20px;
}

.wsg-option-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wsg-custom-size {
    margin: 20px 0;
}

.wsg-size-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wsg-size {
    width: 120px;
}

/* Opzioni avanzate */
.wsg-advanced-options {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.wsg-advanced-options h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
}

.wsg-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsg-checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wsg-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

/* Slider */
.wsg-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    margin: 10px 0;
}

.wsg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.wsg-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

/* Pulsanti */
.wsg-capture-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.wsg-capture-btn:hover {
    background: #45a049;
}

.wsg-capture-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading */
.wsg-loading {
    text-align: center;
    padding: 40px;
}

.wsg-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    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); }
}

.wsg-progress {
    font-weight: bold;
    color: #4CAF50;
}

/* Risultati */
.wsg-results {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wsg-results h3 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 20px;
}

.wsg-preview {
    text-align: center;
    margin-bottom: 20px;
}

.wsg-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.wsg-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wsg-info-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.wsg-info-item:last-child {
    border-bottom: none;
}

.wsg-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wsg-download-btn,
.wsg-new-btn {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.wsg-download-btn {
    background: #2196F3;
    color: white;
}

.wsg-download-btn:hover {
    background: #1976D2;
}

.wsg-new-btn {
    background: #f0f0f0;
    color: #333;
}

.wsg-new-btn:hover {
    background: #e0e0e0;
}

/* Errori */
.wsg-error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #fcc;
}

/* Features */
.wsg-features {
    margin-top: 50px;
}

.wsg-features h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.wsg-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.wsg-feature {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.wsg-feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.wsg-feature h4 {
    margin: 10px 0;
    color: #444;
}

.wsg-feature p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wsg-container {
        padding: 10px;
    }
    
    .wsg-form {
        padding: 20px;
    }
    
    .wsg-option-row {
        grid-template-columns: 1fr;
    }
    
    .wsg-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .wsg-download-btn,
    .wsg-new-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wsg-feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}