/**
 * RLW.pt — Web Tools Suite
 * Stylesheet V1.0.0
 */

/* ═══════════════════════════════════════
   CSS Variables
   ═══════════════════════════════════════ */

:root {
    --orange: #e67e22;
    --orange-dark: #d35400;
    --orange-glow: rgba(230, 126, 34, 0.15);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #eab308;
    --warning-bg: rgba(234, 179, 8, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --nav-height: 62px;
    --max-width: 1100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="dark"] {
    --bg: #0b0d12;
    --bg-surface: #12151c;
    --bg-card: #181c25;
    --bg-card-hover: #1e2330;
    --bg-input: #12151c;
    --tx: #e8e8ec;
    --tx-secondary: #8b8fa3;
    --tx-muted: #555a6e;
    --brd: #252a36;
    --brd-hover: #353b4a;
    --tag-bg: rgba(230, 126, 34, 0.12);
    --tag-tx: #f0a050;
    --nav-bg: rgba(11, 13, 18, 0.88);
    --input-focus: rgba(230, 126, 34, 0.25);
    --grid-line: rgba(255, 255, 255, 0.025);
    --code-bg: #0f1117;
    --scrollbar-track: #12151c;
    --scrollbar-thumb: #2a2f3d;
}

[data-theme="light"] {
    --bg: #f0f1f5;
    --bg-surface: #f8f8fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f8;
    --bg-input: #ffffff;
    --tx: #1a1d26;
    --tx-secondary: #5a5e70;
    --tx-muted: #8b8fa0;
    --brd: #dfe1e8;
    --brd-hover: #c5c8d2;
    --tag-bg: rgba(230, 126, 34, 0.1);
    --tag-tx: #c46a1a;
    --nav-bg: rgba(240, 241, 245, 0.92);
    --input-focus: rgba(230, 126, 34, 0.2);
    --grid-line: rgba(0, 0, 0, 0.03);
    --code-bg: #f5f5f7;
    --scrollbar-track: #e8e8ec;
    --scrollbar-thumb: #c5c8d2;
}

/* ═══════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-heading);
    background: var(--bg);
    color: var(--tx);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--nav-height) - 120px);
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--orange-dark);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }


/* ═══════════════════════════════════════
   Navbar
   ═══════════════════════════════════════ */

.rlw-nav {
    position: sticky;
    top: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--brd);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 4vw, 3rem);
    z-index: 100;
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--tx);
    flex-shrink: 0;
}

.nav-byline {
    font-size: 0.72rem;
    color: var(--tx-muted);
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
    transition: color var(--transition);
    border-left: 1px solid var(--brd);
    padding-left: 12px;
}

.nav-byline:hover {
    color: var(--orange);
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--orange);
}

.nav-logo span {
    color: var(--tx);
    font-weight: 500;
}

.nav-center {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border: 1px solid var(--brd);
    border-radius: var(--radius-xs);
    color: var(--tx-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.nav-lang-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--brd);
    color: var(--tx-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* Tools dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--tx-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.nav-dropdown-btn:hover {
    color: var(--tx);
    border-color: var(--brd);
}

.nav-dropdown-arrow {
    font-size: 0.65rem;
    transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--brd);
    border-radius: var(--radius);
    padding: 16px;
    min-width: 560px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all 0.2s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tx-muted);
    padding: 0 8px 6px;
    white-space: nowrap;
}

.nav-dropdown-section + .nav-dropdown-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 5px 8px;
    color: var(--tx);
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--orange);
}


/* ═══════════════════════════════════════
   Hero (home page)
   ═══════════════════════════════════════ */

.hero {
    text-align: center;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tag-bg);
    color: var(--tag-tx);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 126, 34, 0.15);
    animation: fadeUp 0.6s ease both;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
    animation: fadeUp 0.6s ease 0.1s both;
}

.hero h1 .accent {
    color: var(--orange);
}

.hero > p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--tx-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeUp 0.6s ease 0.2s both;
}


/* ═══════════════════════════════════════
   Quick Search (home)
   ═══════════════════════════════════════ */

.quick-search {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    animation: fadeUp 0.6s ease 0.3s both;
}

.quick-search input {
    width: 100%;
    padding: 16px 60px 16px 50px;
    background: var(--bg-card);
    border: 1px solid var(--brd);
    border-radius: var(--radius);
    color: var(--tx);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.quick-search input::placeholder {
    color: var(--tx-muted);
    font-family: var(--font-heading);
}

.quick-search input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--input-focus);
}

.quick-search .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tx-muted);
}

.quick-search .search-go {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quick-search .search-go:hover {
    background: var(--orange-dark);
}


/* ═══════════════════════════════════════
   Tool Sections (home page grid)
   ═══════════════════════════════════════ */

.sections {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem) 4rem;
}

.section {
    margin-bottom: 3rem;
    animation: fadeUp 0.5s ease both;
}

.section:nth-child(1) { animation-delay: 0.4s; }
.section:nth-child(2) { animation-delay: 0.55s; }
.section:nth-child(3) { animation-delay: 0.7s; }

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.section-icon.network  { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.section-icon.convert  { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.section-icon.utils    { background: rgba(34, 197, 94, 0.12);  color: #4ade80; }

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-count {
    color: var(--tx-muted);
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 4px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--brd);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--tx);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    border-color: var(--brd-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.tool-card:hover::after {
    transform: scaleX(1);
}

.tool-card-icon {
    font-size: 1.3rem;
    opacity: 0.7;
}

.tool-card-name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.tool-card-desc {
    font-size: 0.85rem;
    color: var(--tx-secondary);
    line-height: 1.5;
}

.tool-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--tag-tx);
    background: var(--tag-bg);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-top: auto;
}

.tool-card.coming-soon {
    opacity: 0.45;
    pointer-events: none;
}

.tool-card.coming-soon .tool-card-tag {
    color: var(--tx-muted);
    background: var(--bg-surface);
}


/* ═══════════════════════════════════════
   Trust Bar
   ═══════════════════════════════════════ */

.trust-bar {
    max-width: var(--max-width);
    margin: 0 auto 3rem;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.trust-inner {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
    padding: 1.75rem 0;
    border-top: 1px solid var(--brd);
    border-bottom: 1px solid var(--brd);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tx-secondary);
    font-size: 0.95rem;
}

.trust-item i {
    color: var(--orange);
    font-size: 1.1rem;
}


/* ═══════════════════════════════════════
   Tool Page Layout
   ═══════════════════════════════════════ */

.tool-page {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.tool-page h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.tool-page > .tool-desc {
    color: var(--tx-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Input bar */
.tool-input-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
}

.tool-input-bar input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--brd);
    border-radius: var(--radius);
    color: var(--tx);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.tool-input-bar input::placeholder {
    color: var(--tx-muted);
    font-family: var(--font-heading);
}

.tool-input-bar input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--input-focus);
}

.btn-run {
    padding: 14px 24px;
    background: var(--orange);
    border: none;
    color: #fff;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-run:hover {
    background: var(--orange-dark);
}

.btn-run:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-run .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-run.loading .spinner {
    display: block;
}

.btn-run.loading .btn-text {
    display: none;
}

/* Results area */
.tool-results {
    display: none;
}

.tool-results.visible {
    display: block;
    animation: fadeUp 0.4s ease;
}

/* Result card */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--brd);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--brd);
    background: var(--bg-surface);
}

.result-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-card-body {
    padding: 16px 18px;
}

/* Record table */
.record-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.record-table th {
    text-align: left;
    padding: 8px 12px;
    color: var(--tx-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--brd);
}

.record-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--brd);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    word-break: break-all;
}

.record-table tr:last-child td {
    border-bottom: none;
}

.record-table tr:hover td {
    background: var(--bg-card-hover);
}

/* Tabs (for DNS record types) */
.result-tabs {
    display: flex;
    gap: 2px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--brd);
    background: var(--bg-surface);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.result-tab {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--tx-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.result-tab:hover {
    color: var(--tx);
    background: var(--bg-card);
}

.result-tab.active {
    color: var(--orange);
    background: var(--tag-bg);
    font-weight: 600;
}

.result-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--brd);
    border-radius: 9px;
    font-size: 0.7rem;
    margin-left: 4px;
}

.result-tab.active .result-tab-badge {
    background: var(--orange);
    color: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
}

.status-badge.success {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-badge.error {
    background: var(--error-bg);
    color: var(--error);
}

.status-badge.info {
    background: var(--info-bg);
    color: var(--info);
}

/* SSL big number */
.ssl-days {
    text-align: center;
    padding: 1.5rem 0;
}

.ssl-days-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.ssl-days-number.green  { color: var(--success); }
.ssl-days-number.yellow { color: var(--warning); }
.ssl-days-number.red    { color: var(--error); }

.ssl-days-label {
    font-size: 0.9rem;
    color: var(--tx-secondary);
    margin-top: 4px;
}

/* Detail grid (for SSL, WHOIS) */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--brd);
}

.detail-item {
    padding: 12px 16px;
    background: var(--bg-card);
}

.detail-item.full {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tx-muted);
    margin-bottom: 4px;
}

.detail-value {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    word-break: break-all;
}

/* Code block (WHOIS raw) */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--brd);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--tx-secondary);
    max-height: 400px;
    overflow-y: auto;
}

/* Copy button */
.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--brd);
    border-radius: var(--radius-xs);
    color: var(--tx-secondary);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-copy.copied {
    border-color: var(--success);
    color: var(--success);
}

/* Related tools */
.related-tools {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--brd);
}

.related-tools h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tx-muted);
    margin-bottom: 1rem;
}

.related-tools-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.related-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--brd);
    border-radius: var(--radius-sm);
    color: var(--tx);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.related-tool-link:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* Error message */
.tool-error {
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: none;
}

.tool-error.visible {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.3s ease;
}


/* ═══════════════════════════════════════
   Image Converter — Upload Zone
   ═══════════════════════════════════════ */

.upload-zone {
    border: 2px dashed var(--brd);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--orange);
    background: var(--orange-glow);
}

.upload-zone-icon {
    font-size: 2.5rem;
    color: var(--tx-muted);
    margin-bottom: 1rem;
}

.upload-zone-text {
    font-size: 1rem;
    color: var(--tx-secondary);
    margin-bottom: 0.5rem;
}

.upload-zone-hint {
    font-size: 0.82rem;
    color: var(--tx-muted);
}

.upload-zone input[type="file"] {
    display: none;
}

/* Convert options */
.convert-options {
    display: none;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: end;
}

.convert-options.visible {
    display: flex;
    flex-wrap: wrap;
}

.convert-option-group {
    flex: 1;
    min-width: 150px;
}

.convert-option-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tx-secondary);
    margin-bottom: 6px;
}

.convert-option-group select,
.convert-option-group input[type="range"] {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--brd);
    border-radius: var(--radius-sm);
    color: var(--tx);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.convert-option-group select:focus {
    border-color: var(--orange);
}

.quality-display {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--tag-tx);
    margin-left: 8px;
}

/* File info bar */
.file-info {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--brd);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.file-info.visible {
    display: flex;
}

.file-info-name {
    font-family: var(--font-mono);
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-info-size {
    color: var(--tx-muted);
    white-space: nowrap;
}

.file-info-remove {
    background: none;
    border: none;
    color: var(--tx-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.file-info-remove:hover {
    color: var(--error);
}

/* Download result */
.convert-result {
    display: none;
    text-align: center;
    padding: 2rem;
}

.convert-result.visible {
    display: block;
    animation: fadeUp 0.4s ease;
}

.convert-result .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--success);
    border: none;
    color: #fff;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.convert-result .btn-download:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.convert-sizes {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--tx-secondary);
}


/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */

.rlw-footer {
    text-align: center;
    padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    color: var(--tx-muted);
    font-size: 0.85rem;
    line-height: 2;
}

.footer-inner a {
    color: var(--orange);
    text-decoration: none;
}

.footer-inner a:hover {
    text-decoration: underline;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.25rem;
}


/* ═══════════════════════════════════════
   Animations
   ═══════════════════════════════════════ */

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

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


/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */

@media (max-width: 640px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .trust-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .tool-input-bar {
        flex-direction: column;
    }

    .btn-run {
        justify-content: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .nav-center {
        display: none;
    }

    .nav-byline {
        display: none;
    }

    .nav-dropdown-menu {
        min-width: unset;
        width: 220px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .convert-options {
        flex-direction: column;
    }
}
