/* Tech Stack Detector — styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #0a0f0a;
    --bg2: #111811;
    --bg3: #18231a;
    --bg4: #1f2e20;
    --border: #1e2e1f;
    --border2: rgba(255, 255, 255, 0.04);
    --text: #d8f0da;
    --text2: #4a8050;
    --text3: #2a4a30;
    --primary: #00b894;
    --primary2: #55efc4;
    --primary3: #007a64;
    --red: #ff7675;
    --orange: #fdcb6e;
    --blue: #74b9ff;
    --purple: #a29bfe;
    --radius: 12px;
    --t: all 0.2s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(ellipse 60% 40% at 5% 5%, rgba(0, 184, 148, 0.07), transparent), radial-gradient(ellipse 50% 30% at 95% 90%, rgba(85, 239, 196, 0.03), transparent), linear-gradient(rgba(30, 46, 31, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 46, 31, 0.3) 1px, transparent 1px);
    background-size: auto, auto, 40px 40px, 40px 40px;
    z-index: 0;
}

/* Header */
header {
    background: rgba(10, 15, 10, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.hdr {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #00b894, #007a64);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 0 16px rgba(0, 184, 148, 0.25);
}

.brand-title {
    font-size: 14px;
    font-weight: 700;
}

h1.brand-title {
    display: inline;
}

.brand-sub {
    font-size: 10px;
    color: var(--text3);
}

/* Main */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Search */
.search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 15, 10, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 10px;
    backdrop-filter: blur(12px);
}

.search-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.search-inp {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    padding: 4px 0;
}

.search-inp::placeholder {
    color: var(--text3);
}

.url-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ex-label {
    font-size: 11px;
    color: var(--text3);
}

.ex-btn {
    padding: 3px 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--bg2);
    font-size: 11px;
    cursor: pointer;
    transition: var(--t);
    color: var(--text2);
}

.ex-btn:hover {
    border-color: var(--primary);
    color: var(--primary2);
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 30px;
    color: var(--text2);
    font-size: 13px;
}

.spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Result card */
.result-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border2);
    flex-wrap: wrap;
}

.site-favicon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.site-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary2);
}

.result-sub {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}

.result-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

/* Results grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border2);
}

.category {
    background: var(--bg2);
    padding: 14px 16px;
}

.category-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-icon {
    font-size: 14px;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    border: 1px solid var(--border2);
}

.tech-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 3px;
}

.tech-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.tech-ver {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text3);
    margin-left: auto;
}

.tech-conf {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: var(--border2);
    overflow: hidden;
    flex-shrink: 0;
}

.tech-conf-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--primary);
}

.no-tech {
    font-size: 12px;
    color: var(--text3);
    font-style: italic;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 14px;
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-sub {
    font-size: 13px;
    color: var(--text2);
    max-width: 420px;
    margin: 0 auto 16px;
}

.note {
    font-size: 11px;
    color: var(--text3);
    max-width: 440px;
    margin: 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--t);
}

.btn:hover {
    border-color: var(--primary);
    color: var(--primary2);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 7px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #009d7f;
}

/* Toast */
.toast-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.toast {
    background: var(--bg2);
    border: 1px solid rgba(0, 184, 148, 0.3);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text);
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.22s ease;
}

.toast.show {
    transform: none;
    opacity: 1;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px
}