/* Public Tools & SEO Pages Styling - Bulink Brand Aesthetics (Version 1) */

:root {
    --primary: #10e760;
    --primary-dark: #0cba4d;
    --primary-light: rgba(16, 231, 96, 0.15);
    --accent: #3cde52;
    --bg-dark: #030712;
    --card-dark: #0b0f19;
    --card-light: #ffffff;
    --text-main: #0f172a;
    --text-muted: #9ca3af;
    --text-light: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 35px rgba(16, 231, 96, 0.2);
    --gradient: linear-gradient(135deg, #25a712 0%, #3cde52 100%);
}

body.public-tools-page {
    background-color: var(--bg-dark);
    color: #f8fafc;
    font-family: 'Wix Madefor Display', 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Public Header */
.public-header {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.public-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.public-logo img {
    height: 40px;
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 8px;
}

.public-nav-link:hover, .public-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Locale Switcher */
.locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 3px;
    margin-right: 4px;
}

.locale-switcher form {
    display: flex;
    align-items: center;
    margin: 0;
}

.locale-btn {
    background: none;
    border: none;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    color: #9ca3af;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.locale-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.locale-btn.active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.public-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.public-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.public-btn-primary {
    background: var(--gradient);
    color: #0b0d12;
    padding: 9px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 231, 96, 0.35);
}

.public-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 231, 96, 0.45);
}

/* Tool Hero Section */
.tool-hero-section {
    padding: 60px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tool-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.tool-hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Widget Card Container */
.widget-card-outer {
    background: #0b0f19;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 12px;
    max-width: 1060px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

/* Widget Header Tabs */
.widget-tabs-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    padding: 4px;
}

.widget-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 20px 20px 0 0;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #94a3b8;
    transition: all 0.25s ease;
    text-decoration: none;
}

.widget-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.widget-tab-btn.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.widget-tab-icon {
    font-size: 1.2rem;
}

/* Main Widget Body Card */
.widget-main-card {
    background: #ffffff;
    color: var(--text-main);
    border-radius: 0 24px 24px 24px;
    padding: 40px;
    text-align: left;
}

.widget-main-card.tab-qr-active {
    border-radius: 24px 0 24px 24px;
}

/* Short Link Form Styling */
.shortener-box {
    max-width: 780px;
    margin: 0 auto;
}

.shortener-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.shortener-sub {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.form-label-bold {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 8px;
}

.shortener-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shortener-input {
    flex: 1;
    min-width: 280px;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafc;
}

.shortener-input:focus {
    border-color: #10e760;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 231, 96, 0.15);
}

.shortener-btn {
    padding: 16px 32px;
    background: var(--gradient);
    color: #0b0d12;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(16, 231, 96, 0.35);
}

.shortener-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 231, 96, 0.45);
}

/* Result Card */
.shortener-result-card {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.shortener-result-url {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
    word-break: break-all;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.btn-action-copy {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-action-copy:hover {
    background: #1e293b;
}

.btn-action-qr {
    background: #e2e8f0;
    color: #1e293b;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-action-qr:hover {
    background: #cbd5e1;
}

/* QR Code Studio Layout */
.qr-studio-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

@media (max-width: 900px) {
    .qr-studio-grid {
        grid-template-columns: 1fr;
    }
}

.qr-config-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.qr-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-step-num {
    background: rgba(16, 231, 96, 0.2);
    color: #047857;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Option Chips Grid */
.chip-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chip-btn {
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.chip-btn.active {
    border-color: #10e760;
    background: rgba(16, 231, 96, 0.12);
    color: #065f46;
}

/* Color Circle Swatches */
.color-swatch-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.color-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-circle:hover {
    transform: scale(1.1);
}

.color-circle.active {
    border-color: #0f172a;
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.color-custom-input {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

/* Custom Logo Uploader */
.logo-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-file-input {
    display: none;
}

.btn-upload-logo {
    padding: 10px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.btn-upload-logo:hover {
    border-color: #10e760;
    color: #047857;
    background: #ffffff;
}

.logo-preview-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
}

/* QR Preview Box (Right Column) */
.qr-preview-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 100px;
}

.qr-canvas-wrapper {
    background: #ffffff;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
    max-width: 280px;
}

.qr-canvas-wrapper canvas {
    display: block;
    width: 240px;
    height: 240px;
    border-radius: 8px;
}

.download-btn-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-download-png {
    flex: 1;
    padding: 14px 20px;
    background: var(--gradient);
    color: #0b0d12;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 231, 96, 0.3);
}

.btn-download-png:hover {
    box-shadow: 0 6px 16px rgba(16, 231, 96, 0.4);
}

.btn-download-svg {
    padding: 14px 20px;
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-svg:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

/* Feature Showcase & SEO Content */
.seo-content-section {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.seo-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.seo-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.2s ease;
}

.seo-feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
}

.seo-feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.seo-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.seo-feature-desc {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Cross-link CTA Banner */
.cross-tool-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border: 1px solid rgba(16, 231, 96, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cross-banner-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.cross-banner-desc {
    color: #a7f3d0;
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.faq-answer {
    color: #94a3b8;
    font-size: 0.95rem;
}
