/* Gradient Generator Tool - Styles */
/* Author: Gradient Generator Tool Plugin */

.ggt-gradient-generator {
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ggt-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.ggt-title {
    color: #333;
    font-size: 24px;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggt-title i {
    color: #6c5ce7;
}

/* Controls Section */
.ggt-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* Color Controls */
.ggt-color-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ggt-color-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.ggt-color-group label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
    font-size: 14px;
}

.ggt-color-picker {
    width: 40px;
    height: 40px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
    background: #fff;
}

.ggt-color-text {
    width: 90px;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    text-transform: uppercase;
}

.ggt-position-label {
    color: #6c757d;
    font-size: 13px;
    margin-left: 5px;
}

.ggt-position-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
}

.ggt-remove-color {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    margin-left: auto;
}

.ggt-remove-color:hover {
    background: #c82333;
}

/* Additional Colors */
.ggt-additional-colors {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Option Groups */
.ggt-option-group {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ggt-option-group label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
    font-size: 14px;
}

.ggt-select {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    max-width: 400px;
}

/* Buttons */
.ggt-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ggt-add-color-btn {
    background: #28a745;
    color: white;
    align-self: flex-start;
}

.ggt-add-color-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.ggt-generate-btn {
    background: #6c5ce7;
    color: white;
}

.ggt-generate-btn:hover {
    background: #5a4bd1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.ggt-reverse-btn {
    background: #ffc107;
    color: #333;
}

.ggt-reverse-btn:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.ggt-random-btn {
    background: #17a2b8;
    color: white;
}

.ggt-random-btn:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.ggt-copy-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
}

.ggt-copy-btn:hover {
    background: #218838;
}

.ggt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Preview Section */
.ggt-preview-section {
    margin-bottom: 30px;
}

.ggt-preview-section h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggt-preview-section h3 i {
    color: #6c5ce7;
}

.ggt-preview-box {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: background 0.3s ease;
    min-height: 200px;
}

/* Output Section */
.ggt-output-section h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggt-output-section h3 i {
    color: #6c5ce7;
}

.ggt-code-output {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #2d3748;
    border-radius: 8px;
    overflow-x: auto;
    flex-wrap: wrap;
}

.ggt-code-output code {
    flex: 1;
    color: #68d391;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    min-width: 200px;
}

.ggt-copy-success {
    margin-top: 10px;
    padding: 10px 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ggt-container {
        padding: 20px 15px;
    }
    
    .ggt-title {
        font-size: 20px;
    }
    
    .ggt-color-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ggt-color-group label {
        min-width: auto;
    }
    
    .ggt-option-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ggt-option-group label {
        min-width: auto;
    }
    
    .ggt-select {
        max-width: 100%;
        width: 100%;
    }
    
    .ggt-actions {
        flex-direction: column;
    }
    
    .ggt-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ggt-code-output {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ggt-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ggt-container {
        padding: 15px 10px;
    }
    
    .ggt-title {
        font-size: 18px;
    }
    
    .ggt-preview-box {
        min-height: 150px;
    }
}
