/* ===== Icon Tester Tool ===== */

/* --- Hero (explicit — no Tailwind dependency) --- */
.icon-tester-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0d2218 50%, #0a1628 100%);
    border-bottom: 1px solid rgba(0, 255, 65, 0.18);
    padding: 4rem 1.5rem;
}
.hero-inner {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.4);
    border-radius: 999px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* --- Tools Index page --- */
.tools-page-section {
    background: linear-gradient(135deg, #0a1628 0%, #0d2218 50%, #0a1628 100%);
    border-bottom: 1px solid rgba(0, 255, 65, 0.18);
    padding: 4rem 1.5rem;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}
.tool-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.18);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.tool-card:hover {
    border-color: rgba(0, 255, 65, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.08);
    transform: translateY(-2px);
}
.tool-card--coming-soon {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.tool-card-icon {
    font-size: 2rem;
    color: #00ff41;
}
.tool-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}
.tool-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
}
.tool-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00ff41;
    margin-top: 0.5rem;
}
.tool-card-soon-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #475569;
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

/* --- Stats counter row --- */
.icon-stat-card {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}
.icon-stat-card:hover {
    border-color: rgba(0, 255, 65, 0.45);
}
.icon-stat-value {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #00ff41;
    line-height: 1;
}
.icon-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Upload / Drop zone --- */
.drop-zone {
    border: 2px dashed rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(0, 255, 65, 0.02);
    position: relative;
}
.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.07);
}
.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.drop-zone-icon {
    font-size: 2.5rem;
    color: #00ff41;
    margin-bottom: 0.75rem;
}
.drop-zone-cta {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}
.drop-zone-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.35rem;
}
.upload-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 6px;
    color: #fbbf24;
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
    margin-top: 0.75rem;
}

/* Uploaded thumbnail */
.upload-thumb-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 10px;
    margin-top: 0.75rem;
}
.upload-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
}
.upload-meta {
    font-size: 0.82rem;
    color: #94a3b8;
}
.upload-meta strong {
    display: block;
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* --- Adjustments panel --- */
.adjustments-panel {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
.adjust-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.adjust-row:last-child {
    margin-bottom: 0;
}
.adjust-label {
    font-size: 0.82rem;
    color: #94a3b8;
    min-width: 110px;
    flex-shrink: 0;
}
.adjust-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 255, 65, 0.2);
    outline: none;
    cursor: pointer;
}
.adjust-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ff41;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}
.adjust-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ff41;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}
.adjust-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #00ff41;
    min-width: 38px;
    text-align: right;
}
.adjust-color {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0, 255, 65, 0.35);
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 2px;
}

/* --- Section titles (explicit — no Tailwind) --- */
.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1rem;
}
.section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0 0 0.6rem;
}
.tool-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
}
.adaptive-layers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 480px) {
    .adaptive-layers-row { grid-template-columns: 1fr; }
}

/* --- Preview tabs --- */
.preview-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    margin-bottom: 1.25rem;
}
.tab-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tab-btn:hover {
    color: #94a3b8;
}
.tab-btn.active {
    color: #00ff41;
    border-bottom-color: #00ff41;
}

/* --- Preview grid --- */
#ios-preview-container,
#android-preview-container,
#adaptive-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    min-height: 140px;
}

.icon-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.icon-preview-item canvas {
    display: block;
    border-radius: 4px;
}
.icon-preview-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.2;
    max-width: 80px;
}
.icon-preview-sublabel {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #475569;
    text-align: center;
}

.preview-idle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    color: #475569;
    font-size: 0.88rem;
    width: 100%;
}

/* --- Adaptive layers --- */
.adaptive-layer-upload {
    border: 1px dashed rgba(0, 255, 65, 0.25);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(0, 255, 65, 0.02);
    text-align: center;
    position: relative;
}
.adaptive-layer-upload:hover {
    border-color: rgba(0, 255, 65, 0.55);
    background: rgba(0, 255, 65, 0.05);
}
.adaptive-layer-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.adaptive-layer-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto 0.35rem;
    display: block;
}

/* --- Export button --- */
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: #00ff41;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s, box-shadow 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.export-btn:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}
.export-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* --- Best practices accordion --- */
.bp-section {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.12);
    border-radius: 10px;
    overflow: hidden;
}
.bp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.bp-header:hover {
    background: rgba(0, 255, 65, 0.04);
}
.bp-header .chevron {
    color: #00ff41;
    transition: transform 0.2s;
}
.bp-header.open .chevron {
    transform: rotate(180deg);
}
.bp-body {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}
.bp-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bp-body ul li {
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}
.bp-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00ff41;
    font-size: 0.7rem;
    top: 0.3rem;
}
.bp-body strong {
    color: #e2e8f0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .icon-stat-value { font-size: 1.5rem; }
    .adjust-label { min-width: 80px; }
    .export-btn { width: 100%; justify-content: center; }
    #ios-preview-container,
    #android-preview-container,
    #adaptive-preview-container { gap: 0.6rem; }
}
