/* ==========================================================================
   Favicon Generator - Tool Styles
   ========================================================================== */

/* Hero Section */
.hero-large {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.benefit svg {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tool Container */
.tool-main {
    padding: 3rem 0;
    background: var(--surface);
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Input Section */
.input-section {
    background: var(--surface-elevated);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.input-section h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Input Type Tabs */
.input-type-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.input-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-tab:hover {
    background: var(--surface-elevated);
    color: var(--text-primary);
}

.input-tab.active {
    background: var(--primary-600);
    color: white;
}

.input-tab svg {
    opacity: 0.8;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--surface);
}

.file-upload-area:hover {
    border-color: var(--primary-500);
    background: var(--surface-elevated);
}

.file-upload-area.drag-over {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.upload-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-specs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.upload-icon {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.upload-icon.success-icon {
    color: var(--success-600, #22c55e);
}

/* Emoji Input */
.emoji-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.emoji-selector {
    margin-bottom: 1rem;
}

.emoji-selector input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 1.125rem;
    text-align: center;
}

.emoji-suggestions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.emoji-option {
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1.5rem;
}

.emoji-option:hover {
    background: var(--surface-elevated);
}

/* Text Input */
.text-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.text-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 1.125rem;
    text-align: center;
    font-weight: 600;
}

.input-hint {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* Customization Section */
.customization-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.customization-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.settings-grid {
    display: grid;
    gap: 2rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-weight: 500;
    color: var(--text-primary);
}

/* Background Options */
.background-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.color-input {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Slider Input */
.slider-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-input input[type="range"] {
    flex: 1;
}

.slider-value {
    min-width: 3rem;
    text-align: right;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Generate Button */
.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Output Section */
.output-section {
    background: var(--surface-elevated);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.output-header {
    text-align: center;
    margin-bottom: 2rem;
}

.output-header h2 {
    margin-bottom: 0.5rem;
    color: var(--success-600);
    font-size: 1.5rem;
}

.output-header p {
    color: var(--text-secondary);
}

/* Preview Grid */
.favicon-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.favicon-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.favicon-preview:hover {
    transform: translateY(-2px);
}

.favicon-preview img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    image-rendering: pixelated;
}

.favicon-size {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.favicon-format {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.favicon-download {
    margin-top: 0.5rem;
}

.favicon-download button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Download Section */
.download-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Implementation Guide */
.implementation-guide {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.implementation-guide h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.code-block {
    background: var(--surface-code);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-code);
    white-space: pre;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--surface);
}

.features-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    background: var(--primary-100);
    color: var(--primary-600);
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--surface-elevated);
}

.faq-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 600;
}

.faq-grid {
    display: grid;
    gap: 2rem;
}

.faq-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.faq-item h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Error Messages */
.error-message {
    color: var(--error-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--error-50);
    border: 1px solid var(--error-200);
    border-radius: 4px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-200);
    border-top: 2px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-section,
    .output-section {
        padding: 1.5rem;
    }
    
    .input-type-tabs {
        grid-template-columns: 1fr;
    }
    
    .download-section {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .background-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Similar Tools Section */
.similar-tools {
    padding: 3rem 0;
    background: var(--surface-elevated);
    margin-top: 2rem;
}

.similar-tools h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.similar-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.similar-tool-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.similar-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.similar-tool-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.similar-tool-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .file-upload-area.drag-over {
        background: var(--primary-900);
        border-color: var(--primary-400);
    }
    
    .feature-icon {
        background: var(--primary-900);
        color: var(--primary-400);
    }
    
    .similar-tool-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}