/* ============================================
   FAVICON EXTRACTOR - Modern Stylesheet
   Green Color Theme for ConvertICO
   With Dark Mode Support
   ============================================ */

/* CSS Variables - Light Mode (Default) */
:root {
    --transition-speed: 0.25s;
    
    /* Primary Colors - Green Theme */
    --primary: #339966;
    --primary-light: #E6F4ED;
    --primary-dark: #2D8659;
    --accent: #4DB380;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    
    /* Background Colors */
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    
    /* Text Colors */
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-primary: 0 4px 14px rgba(51, 153, 102, 0.25);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Checkerboard */
    --checker-light: #f0f0f0;
    --checker-dark: #e0e0e0;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary: #4DB380;
    --primary-light: rgba(77, 179, 128, 0.15);
    --primary-dark: #339966;
    --accent: #6BD99B;
    --success: #4ade80;
    --success-light: rgba(74, 222, 128, 0.15);
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.15);
    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.15);
    --info: #60a5fa;
    --info-light: rgba(96, 165, 250, 0.15);
    
    --bg: #0f172a;
    --bg-elevated: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border: #334155;
    --border-light: #475569;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5);
    --shadow-primary: 0 4px 14px rgba(77, 179, 128, 0.2);
    
    --checker-light: #334155;
    --checker-dark: #475569;
}

/* Base */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

/* Header */
.tool-header { 
    text-align: center; 
    margin-bottom: 2rem; 
}

.tool-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(51, 153, 102, 0.25);
    flex-shrink: 0;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.tool-icon-wrapper svg, 
.tool-icon-wrapper i { 
    width: 32px; 
    height: 32px; 
}

.tool-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    color: var(--primary);
    transition: color var(--transition-speed);
}

.tool-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    transition: color var(--transition-speed);
}

/* Main Tool Area */
.tool-main {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

/* Input Section */
.input-section {
    padding: 3rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    transition: all 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(51, 153, 102, 0.15);
}

.input-icon {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--transition-speed);
}

.input-icon svg,
.input-icon i {
    width: 24px;
    height: 24px;
}

.url-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    padding: 0.75rem 0;
    outline: none;
    min-width: 0;
    transition: color var(--transition-speed);
}

.url-input::placeholder {
    color: var(--text-muted);
}

.extract-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.extract-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.extract-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.extract-btn svg,
.extract-btn i {
    width: 18px;
    height: 18px;
}

.input-hints {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Popular Sites */
.popular-sites {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.popular-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.popular-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.popular-btn {
    padding: 0.375rem 0.875rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Loading Section */
.loading-section {
    padding: 4rem 2rem;
    text-align: center;
}

.loading-content {
    max-width: 300px;
    margin: 0 auto;
}

.loading-spinner {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.loading-spinner svg,
.loading-spinner i {
    width: 48px;
    height: 48px;
}

.loading-spinner .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.loading-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Results Section */
.results-section {
    padding: 2rem;
    animation: fadeIn 0.4s ease;
}

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

/* Site Info Card */
.site-info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    transition: background-color var(--transition-speed);
}

.site-preview {
    width: 80px;
    height: 80px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.main-favicon {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.site-details {
    flex: 1;
    min-width: 200px;
}

.site-details h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.25rem;
    transition: color var(--transition-speed);
}

.site-url {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    word-break: break-all;
}

.icon-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.site-actions {
    flex-shrink: 0;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    transition: color var(--transition-speed);
}

.section-header h3 svg,
.section-header h3 i {
    color: var(--primary);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-speed);
}

.view-btn {
    width: 36px;
    height: 36px;
	padding: 0px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    color: var(--text);
}

.view-btn.active {
    background: var(--bg-elevated);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Icons Grid */
.icons-section {
    margin-bottom: 1.5rem;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.icons-grid.list-view {
    grid-template-columns: 1fr;
}

.icon-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.icon-card:hover {
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.list-view .icon-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 0.875rem 1rem;
}

.icon-preview {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    background-image: 
        linear-gradient(45deg, var(--checker-light) 25%, transparent 25%),
        linear-gradient(-45deg, var(--checker-light) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--checker-light) 75%),
        linear-gradient(-45deg, transparent 75%, var(--checker-light) 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.list-view .icon-preview {
    width: 48px;
    height: 48px;
    margin: 0;
    flex-shrink: 0;
}

.icon-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-info {
    flex: 1;
    min-width: 0;
}

.icon-size {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.125rem;
    transition: color var(--transition-speed);
}

.icon-type {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icon-actions {
    margin-top: 0.75rem;
}

.list-view .icon-actions {
    margin-top: 0;
    flex-shrink: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.download-btn:hover {
    background: var(--primary-dark);
}

.list-view .download-btn {
    width: auto;
    padding: 0.5rem 1rem;
}

.download-btn svg,
.download-btn i {
    width: 14px;
    height: 14px;
}

/* No Icons */
.no-icons {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.no-icons svg,
.no-icons i {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-icons h4 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.no-icons p {
    margin: 0 0 1.5rem;
}

/* Categories Section */
.categories-section {
    margin-bottom: 1.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.category-card:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.category-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.category-icon.ico { background: #3399cc; }
.category-icon.png { background: #339966; }
.category-icon.svg { background: #e64e4e; }
.category-icon.apple { background: #64748b; }
.category-icon.android { background: #4DB380; }
.category-icon.ms { background: #3B82F6; }

.category-icon svg,
.category-icon i {
    width: 18px;
    height: 18px;
}

.category-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    transition: color var(--transition-speed);
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.category-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-thumb {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition-speed);
}

.category-thumb img {
    max-width: 24px;
    max-height: 24px;
}

.category-thumb.more {
    background: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    transition: border-color var(--transition-speed);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--danger-light);
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: var(--radius-md);
    margin: 1.5rem;
    font-weight: 500;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

/* Related Tools */
.related-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    flex-wrap: wrap;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.related-label { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-weight: 600; 
    color: var(--text); 
    font-size: 0.9rem; 
}

.related-label svg, 
.related-label i { 
    color: var(--primary); 
}

.related-links { 
    display: flex; 
    gap: 0.75rem; 
    flex-wrap: wrap; 
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-link:hover { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
}

.related-link svg, 
.related-link i { 
    width: 14px; 
    height: 14px; 
}

/* Info Sections */
.info-sections { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    margin-top: 2rem; 
}

.info-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.info-card h2 { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    font-size: 1.35rem; 
    color: var(--text); 
    margin: 0 0 1.5rem; 
}

.info-card h2 svg, 
.info-card h2 i { 
    color: var(--primary); 
    flex-shrink: 0; 
}

/* Steps List */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.steps-list li {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: 1.25rem;
    counter-increment: step;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.steps-list li:last-child {
    padding-bottom: 0;
}

.steps-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(1rem - 1px);
    top: 2rem;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.steps-list code {
    background: var(--bg-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    color: var(--primary);
}

.steps-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.steps-list a:hover {
    text-decoration: underline;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color var(--transition-speed);
}

.feature-icon.favicon-ico { background: #E0F2FE; color: #3399cc; }
.feature-icon.favicon-png { background: #E6F4ED; color: #339966; }
.feature-icon.favicon-svg { background: #FEE2E2; color: #e64e4e; }
.feature-icon.favicon-apple { background: #F1F5F9; color: #64748b; }
.feature-icon.favicon-android { background: #D1FAE5; color: #10B981; }
.feature-icon.favicon-ms { background: #DBEAFE; color: #3B82F6; }

[data-theme="dark"] .feature-icon.favicon-ico { background: rgba(51, 153, 204, 0.15); }
[data-theme="dark"] .feature-icon.favicon-png { background: rgba(51, 153, 102, 0.15); }
[data-theme="dark"] .feature-icon.favicon-svg { background: rgba(230, 78, 78, 0.15); }
[data-theme="dark"] .feature-icon.favicon-apple { background: rgba(100, 116, 139, 0.15); }
[data-theme="dark"] .feature-icon.favicon-android { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .feature-icon.favicon-ms { background: rgba(59, 130, 246, 0.15); }

.feature-content h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--text);
    transition: color var(--transition-speed);
}

.feature-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.use-case-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: background-color var(--transition-speed);
}

.use-case-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.use-case-tag.design { background: #FEF3C7; color: #D97706; }
.use-case-tag.development { background: #DBEAFE; color: #2563EB; }
.use-case-tag.bookmarks { background: #E6F4ED; color: #339966; }
.use-case-tag.documentation { background: #F3E8FF; color: #9333EA; }

[data-theme="dark"] .use-case-tag.design { background: rgba(217, 119, 6, 0.15); }
[data-theme="dark"] .use-case-tag.development { background: rgba(37, 99, 235, 0.15); }
[data-theme="dark"] .use-case-tag.bookmarks { background: rgba(51, 153, 102, 0.15); }
[data-theme="dark"] .use-case-tag.documentation { background: rgba(147, 51, 234, 0.15); }

.use-case-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* FAQ */
.faq-list { 
    display: grid; 
    gap: 0.75rem; 
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-speed);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.faq-question:hover { 
    background: var(--bg-tertiary); 
}

.faq-question span {
    flex: 1;
}

.faq-question svg, 
.faq-question i { 
    color: var(--primary); 
    transition: transform 0.3s ease; 
    flex-shrink: 0; 
}

.faq-item.open .faq-question svg, 
.faq-item.open .faq-question i { 
    transform: rotate(180deg); 
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
    background: var(--bg-elevated);
    transition: background-color var(--transition-speed);
}

.faq-item.open .faq-answer { 
    display: block; 
}

.faq-answer p { 
    margin: 0; 
    color: var(--text-secondary); 
    line-height: 1.7; 
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container { 
        padding: 1rem; 
    }
    
    .input-section {
        padding: 2rem 1.5rem;
    }
    
    .input-wrapper {
        flex-direction: column;
        padding: 1rem;
    }
    
    .input-icon {
        display: none;
    }
    
    .url-input {
        width: 100%;
        padding: 0.75rem;
        text-align: center;
    }
    
    .extract-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.75rem;
    }
    
    .site-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .site-details h2 {
        font-size: 1.1rem;
    }
    
    .icon-stats {
        justify-content: center;
    }
    
    .site-actions {
        width: 100%;
    }
    
    .site-actions .btn {
        width: 100%;
    }
    
    .icons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .results-section {
        padding: 1.5rem;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .related-tools { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .related-links { 
        justify-content: center; 
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-title { 
        font-size: 1.5rem; 
    }
    
    .tool-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .tool-icon-wrapper svg,
    .tool-icon-wrapper i {
        width: 24px;
        height: 24px;
    }
    
    .popular-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .popular-btn {
        width: 100%;
    }
    
    .icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .icon-card {
        padding: 0.75rem;
    }
    
    .icon-preview {
        width: 48px;
        height: 48px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { 
        animation-duration: 0.01ms !important; 
        transition-duration: 0.01ms !important; 
    }
}
