/* Color Converter - Specific Styles */

.converter-hero {
    text-align: center;
    margin-bottom: 40px;
}

.converter-hero h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.converter-hero p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Converter Section */
.converter-section {
    margin-bottom: 60px;
}

.converter-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Color Preview Panel */
.color-preview-panel {
    background: var(--background-secondary);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
}

.color-display {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border-radius: var(--radius);
    border: 4px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: border-color 0.3s ease;
}

.color-preview-large {
    width: 100%;
    height: 100%;
    background: #6366F1;
    transition: background-color 0.3s ease;
}

.color-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Converter Input Panel */
.converter-input-panel {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.converter-input {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.converter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.converter-input::placeholder {
    color: var(--text-secondary);
}

.converter-convert-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* Converter Output Panel */
.converter-output-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.format-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s ease;
}

.format-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.format-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.format-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.format-value-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.format-output {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--background-secondary);
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    cursor: text;
}

.format-output:focus {
    outline: none;
    border-color: var(--primary-color);
}

.copy-btn {
    padding: 12px 20px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Info Section */
.converter-info-section {
    margin-bottom: 60px;
}

.converter-info-section h3 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Formats Explained Section */
.formats-explained-section {
    margin-bottom: 60px;
}

.formats-explained-section h3 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.format-info-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s ease;
}

.format-info-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.format-info-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.format-info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.format-example {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: var(--background-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .converter-hero h2 {
        font-size: 28px;
    }

    .converter-hero p {
        font-size: 16px;
    }

    .color-preview-panel {
        padding: 30px 20px;
    }

    .color-display {
        width: 150px;
        height: 150px;
    }

    .converter-input-panel {
        padding: 20px;
    }

    .converter-output-panel {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .formats-grid {
        grid-template-columns: 1fr;
    }

    .color-actions {
        flex-direction: column;
    }

    .color-actions .btn {
        width: 100%;
    }
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.converter-input.processing {
    animation: pulse 1s infinite;
}
