/* Color Channel Analyzer Tool Styles */
/* Location: assets/css/color-channel-analyzer.css */

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Tool Container */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 5;
}

/* Tool Header */
.tool-header {
    text-align: center;
    background: rgba(0, 17, 0, 0.95);
    border: 2px solid #0f0;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.tool-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #0f0;
    text-shadow: 0 0 15px #0f0, 0 0 30px #0f0;
}

.tool-subtitle {
    font-size: 1.2em;
    color: #00ffff;
    margin-bottom: 15px;
}

.tool-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #0f0;
    border-radius: 20px;
    color: #0f0;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tool Description */
.tool-description {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.tool-description h2 {
    color: #0ff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #0ff;
}

.tool-description p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.use-cases {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.use-cases h3 {
    color: #0f0;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.use-cases ul {
    list-style: none;
    padding: 0;
}

.use-cases li {
    padding: 8px 0;
    color: #0f0;
    border-left: 2px solid #0f0;
    padding-left: 15px;
    margin: 8px 0;
}

.use-cases strong {
    color: #0ff;
}

/* Upload Section */
.upload-section {
    background: rgba(0, 17, 0, 0.9);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.upload-section h2 {
    color: #0f0;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
}

.upload-area {
    background: rgba(0, 0, 0, 0.5);
    border: 3px dashed #0f0;
    border-radius: 10px;
    padding: 50px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.upload-area.drag-over {
    background: rgba(0, 255, 0, 0.1);
    border-color: #0ff;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-text {
    font-size: 1.2em;
    color: #0f0;
    font-weight: bold;
    margin-bottom: 10px;
}

.upload-hint {
    color: #888;
    font-size: 0.9em;
}

.btn-secondary {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    color: #0ff;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Preview Section */
.preview-section,
.channel-output {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.preview-section h2,
.channel-output h2 {
    color: #0f0;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
    text-align: center;
}

.image-preview,
.output-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.image-preview canvas,
.output-display canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #0f0;
    border-radius: 5px;
}

.image-info {
    margin-top: 15px;
    color: #0ff;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

/* Channel Controls */
.channel-controls {
    background: rgba(0, 17, 0, 0.9);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.channel-controls h2 {
    color: #0f0;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
    text-align: center;
}

.control-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.channel-btn {
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #333;
    border-radius: 8px;
    color: #0f0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.channel-btn:hover {
    border-color: #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.channel-btn.active {
    background: rgba(0, 255, 0, 0.2);
    border-color: #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* Advanced Controls */
.advanced-controls {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.advanced-controls h3 {
    color: #0ff;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.control-group label {
    color: #0f0;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* LSB Label - Special styling */
.lsb-label {
    color: #ff0 !important;
    font-weight: bold;
}

/* LSB Hint Box */
.lsb-hint {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid #ff0;
    border-radius: 5px;
}

.lsb-hint p {
    color: #ff0;
    margin: 0;
}

.brightness-control {
    margin-top: 20px;
}

.brightness-control label {
    display: block;
    color: #0f0;
    margin-bottom: 10px;
    font-weight: bold;
}

.brightness-control input[type="range"] {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 5px;
    outline: none;
}

.brightness-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0f0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.brightness-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #0f0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#brightness-value {
    color: #0ff;
    font-weight: bold;
}

/* Channel Stats */
.channel-stats {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #0f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    font-family: 'Courier New', monospace;
    color: #0f0;
    font-size: 0.9em;
    line-height: 1.8;
}

.channel-stats strong {
    color: #0ff;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-primary {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #0f0;
    color: #0f0;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}

/* How It Works */
.how-it-works {
    background: rgba(0, 17, 0, 0.8);
    border: 1px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.how-it-works h2 {
    color: #0f0;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 15px #0f0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #0ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #0f0;
    margin: 0 auto 15px;
}

.step h3 {
    color: #0ff;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.step p {
    color: #ccc;
    font-size: 0.9em;
}

/* FAQ Section */
.faq-section {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.faq-section h2 {
    color: #0ff;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 15px #0ff;
}

.faq-item {
    background: rgba(0, 17, 0, 0.3);
    border-left: 3px solid #0f0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.faq-item h3 {
    color: #0f0;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.faq-item p {
    color: #ccc;
    line-height: 1.7;
}

/* Navigation */
.navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    color: #0ff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #0f0;
    padding: 20px;
    text-align: center;
    color: #0f0;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

.footer-note {
    color: #888;
    font-size: 0.8em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2em;
    }
    
    .control-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}