﻿:root {
    --bg-main: #05060b;
    --bg-card: #0f121a;
    --bg-card-alt: #1c2030;
    --text-primary: #f6f7fb;
    --text-secondary: #b5bed1;
    --accent: #67f7ff;
    --accent-alt: #ff7af5;
    --glow: #7b5dff;
    --shadow: rgba(5, 6, 11, 0.75);
    --font-heading: "Poppins", "Inter", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(123, 93, 255, 0.35), transparent 65%);
    filter: blur(10px);
    z-index: -2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body::before {
    top: -120px;
    left: -80px;
}

body::after {
    bottom: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(103, 247, 255, 0.35), transparent 60%);
}

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

a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
}

.hero-banner {
    background: radial-gradient(circle at top right, rgba(103, 247, 255, 0.18), transparent 45%),
        linear-gradient(135deg, rgba(7, 11, 24, 0.85), rgba(24, 13, 38, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.75rem;
    padding: 2.75rem;
    margin-bottom: 2.75rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.search-wrapper {
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.tool-card {
    background: linear-gradient(160deg, rgba(14, 17, 26, 0.92), rgba(27, 20, 34, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 1.75rem;
    padding: 1.75rem;
    height: 100%;
    position: relative;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 247, 255, 0.35);
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.6);
}

.tool-card .tag {
    display: inline-flex;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(0, 170, 255, 0.15);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: var(--text-secondary);
}

.btn-gradient {
    background: linear-gradient(120deg, var(--accent), var(--accent-alt), var(--glow));
    border: none;
    color: #05060b;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 30px rgba(255, 122, 245, 0.35);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(103, 247, 255, 0.35);
}

.header-glass {
    background: rgba(5, 7, 16, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(103, 247, 255, 0.25);
    object-fit: cover;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.4rem 0.55rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0.35rem 0.4rem;
}

.search-bar input::placeholder {
    color: rgba(245, 247, 251, 0.55);
}

.search-bar--lg {
    padding: 0.5rem;
    box-shadow: inset 0 0 35px rgba(255, 122, 245, 0.2);
}

.search-bar--lg input {
    font-size: 1.05rem;
    padding: 0.75rem 0.8rem;
}

.search-bar--sm input {
    font-size: 0.85rem;
    padding: 0.4rem 0.2rem;
}

.btn-search-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    background-image: linear-gradient(180deg, rgba(5, 6, 11, 0.4), rgba(5, 6, 11, 0.8)),
        linear-gradient(120deg, var(--accent), var(--accent-alt));
    background-origin: border-box;
    box-shadow: 0 18px 40px rgba(8, 0, 29, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-search-glow::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0.4;
    pointer-events: none;
}

.btn-search-glow:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 50px rgba(8, 0, 29, 0.65);
}

.btn-label {
    letter-spacing: 0.02em;
}

.btn-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(5, 6, 11, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
}

.btn-icon::after {
    content: "";
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-left: 0;
    border-bottom: 0;
    transform: translateX(1px) rotate(45deg);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(103, 247, 255, 0.15);
    margin-bottom: 1rem;
}

.brand-mark__symbol {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(103, 247, 255, 0.35), rgba(255, 122, 245, 0.4));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #05060b;
    font-size: 1.1rem;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-mark__text {
    text-align: left;
}

.brand-mark__text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.brand-mark__text strong {
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.tool-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #05060b;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tool-logo--social {
    background: linear-gradient(135deg, #67f7ff, #7b5dff);
}

.tool-logo--dev {
    background: linear-gradient(135deg, #ff7af5, #ffc66b);
}

.tool-logo--image {
    background: linear-gradient(135deg, #7b5dff, #ff7af5);
}

.seo-article {
    background: rgba(7, 10, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.75rem;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
    line-height: 1.8;
}

.seo-article h2,
.seo-article h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.seo-article h2 {
    font-size: 2rem;
}

.seo-article h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
}

.seo-article p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.seo-article ul {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.ad-slot {
    background: rgba(10, 12, 22, 0.85);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 1.1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    font-size: 0.9rem;
    box-shadow: inset 0 0 30px rgba(123, 93, 255, 0.15);
}

.footer-glow {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), var(--glow), transparent);
    box-shadow: 0 0 35px var(--glow);
}

footer {
    background: rgba(5, 7, 16, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(103, 247, 255, 0.15), transparent 55%);
    opacity: 0.5;
    pointer-events: none;
}

.footer-links a {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0;
}

.footer-links a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent), var(--glow));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-links a:hover::after {
    opacity: 1;
}

.tool-section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.pill-filter button {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: transparent;
    padding: 0.4rem 1.1rem;
    margin: 0.25rem;
    transition: all 0.2s ease;
}

.pill-filter button.active,
.pill-filter button:hover {
    background: rgba(0, 170, 255, 0.15);
    border-color: var(--accent);
}

.tool-hero {
    background: linear-gradient(145deg, rgba(8, 123, 255, 0.2), rgba(141, 15, 20, 0.8));
    padding: 2.5rem 1.75rem;
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.tool-panel {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
}

textarea.form-control,
input.form-control,
select.form-select {
    background: rgba(10, 12, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 1rem;
}

textarea.form-control:focus,
input.form-control:focus,
select.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 170, 255, 0.15);
    outline: none;
}

.tool-output {
    min-height: 140px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

.copy-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: transparent;
}

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

@media (max-width: 767px) {
    .hero-banner {
        padding: 1.5rem;
    }

    .tool-card {
        border-radius: 1rem;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 1.25rem;
        padding: 0.65rem;
    }

    .btn-search-glow {
        width: 100%;
        text-align: center;
    }
}
