/* ==========================================================================
   ZapLink - Modern Enterprise Design System & Responsive Stylesheet
   ========================================================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --accent: #06b6d4;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --hover-shadow: 0 20px 35px -5px rgba(79, 70, 229, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --bg-main: #0b0f19;
    --bg-secondary: #111827;
    --bg-surface: #1e293b;
    --border-color: #334155;
    --primary-light: rgba(79, 70, 229, 0.15);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
    --hover-shadow: 0 20px 35px -5px rgba(79, 70, 229, 0.25);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover {
    color: var(--primary-hover);
}

.site-width-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.my-20 { margin-top: 20px; margin-bottom: 20px; }
.my-25 { margin-top: 25px; margin-bottom: 25px; }
.my-30 { margin-top: 30px; margin-bottom: 30px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }
.py-60 { padding-top: 60px; padding-bottom: 60px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.inline-block { display: inline-block; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-success { color: #10b981; }

/* Header & Navigation */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .site-header {
    background-color: rgba(17, 24, 39, 0.9);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

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

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
:root:not([data-theme="dark"]) .sun-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon { display: block; }

.btn-nav-cta {
    background: var(--primary);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Ad Containers (AdSense Policy Compliant) */
.ad-container {
    width: 100%;
    margin: 15px auto;
    text-align: center;
    clear: both;
}

.ad-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ad-placeholder {
    background: var(--bg-secondary);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 90px;
}

.ad-placeholder-icon {
    color: var(--text-muted);
}

.ad-placeholder-title {
    font-size: 14px;
    font-weight: 600;
}

.ad-placeholder-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px;
    background: radial-gradient(circle at top, var(--primary-light) 0%, transparent 70%);
}

.hero-container {
    text-align: center;
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
}

/* Shortener Card */
.shortener-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.input-group-main {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 8px;
    transition: var(--transition);
}

.input-group-main:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input-icon {
    padding: 0 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.main-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    padding: 10px 4px;
}

.btn-shorten {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-shorten:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.alias-toggle-wrapper {
    margin-top: 15px;
}

.btn-toggle-alias {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.alias-input-box {
    margin-top: 10px;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    max-width: 400px;
}

.alias-prefix {
    font-size: 14px;
    color: var(--text-muted);
}

.alias-input-box input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
    margin-left: 4px;
}

/* Result Box */
.result-box {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #10b981;
}

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

.result-url-bar input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    outline: none;
}

.btn-copy, .btn-qr-trigger {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-copy:hover, .btn-qr-trigger:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-copy.copied {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.qr-preview-box {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
}

.qr-canvas-wrap {
    display: inline-block;
    padding: 16px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.qr-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-action-sm {
    background: var(--primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-action-sm.outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Stats Counter */
.stats-counter-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-blue { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.icon-amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.icon-cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent); }
.icon-rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

.feature-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Editorial Section */
.editorial-section {
    padding: 70px 0;
}

.editorial-content-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--card-shadow);
}

.editorial-content-box h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.editorial-content-box p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.editorial-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.highlight-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.highlight-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.highlight-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Knowledge Preview */
.knowledge-preview-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.btn-view-all {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.category-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.read-time {
    font-size: 13px;
    color: var(--text-muted);
}

.article-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.article-title a {
    color: var(--text-primary);
}

.article-title a:hover {
    color: var(--primary);
}

.article-snippet {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.author-name {
    font-size: 13px;
    color: var(--text-muted);
}

.read-more-link {
    font-size: 14px;
    font-weight: 600;
}

/* FAQ Accordion */
.faq-section {
    padding: 70px 0;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    font-size: 20px;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Safe Redirect Page (go.php) */
.redirect-container {
    max-width: 760px;
    margin: 0 auto;
}

.redirect-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.shield-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.redirect-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.redirect-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.dest-info-box {
    margin: 25px 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.domain-highlight {
    font-weight: 700;
    color: var(--primary);
}

.countdown-wrapper {
    margin: 25px 0;
}

.timer-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    animation-name: progressAnim;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes progressAnim {
    from { width: 0%; }
    to { width: 100%; }
}

.btn-proceed {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-proceed.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    background: var(--text-muted);
}

.redirect-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

.redirect-education-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    font-size: 14px;
    color: var(--text-secondary);
}

.redirect-education-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.redirect-education-box ul {
    margin-top: 10px;
    padding-left: 20px;
}

.redirect-education-box li {
    margin-bottom: 6px;
}

/* Legal & Blog Pages */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.prose-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.prose-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.prose-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.prose-content ul, .prose-content ol {
    margin: 14px 0 20px 24px;
    color: var(--text-secondary);
}

.prose-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
}

.contact-info-card, .contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--card-shadow);
}

.info-block {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* Blog & Article Reader */
.blog-layout-grid, .article-layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
}

.blog-search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
}

.btn-search {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 600;
    cursor: pointer;
}

.category-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pill.active, .pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.widget-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    margin-bottom: 10px;
}

.widget-list a {
    color: var(--text-secondary);
    font-size: 14px;
}

.widget-list a:hover {
    color: var(--primary);
}

/* Single Article */
.single-article-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.single-article-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.25;
}

.article-lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name-bold {
    display: block;
    font-weight: 700;
    font-size: 15px;
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
}

.article-body-prose h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 36px 0 16px;
    color: var(--text-primary);
}

.article-body-prose h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.article-body-prose p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.article-body-prose ul, .article-body-prose ol {
    margin: 16px 0 24px 28px;
    color: var(--text-secondary);
}

.article-body-prose li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.share-box-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-share-icon {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff !important;
}

.btn-share-icon.twitter { background: #0f1419; }
.btn-share-icon.facebook { background: #1877f2; }
.btn-share-icon.linkedin { background: #0a66c2; }
.btn-share-icon.whatsapp { background: #25d366; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.related-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0;
}

.related-card a {
    color: var(--text-primary);
}

.related-card a:hover {
    color: var(--primary);
}

.category-badge-sm {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.read-time-sm {
    font-size: 12px;
    color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .sep {
    margin: 0 4px;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 40px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 14px 0 20px;
    line-height: 1.6;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-bottom-links a {
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cookie-decline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-layout-grid, .article-layout-grid { grid-template-columns: 1fr; }
    .editorial-highlights-grid { grid-template-columns: 1fr; }
    .stats-counter-strip { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: flex; }
    .hero-title { font-size: 34px; }
    .input-group-main { flex-direction: column; padding: 12px; gap: 10px; }
    .main-input { width: 100%; }
    .btn-shorten { width: 100%; }
    .result-url-bar { flex-direction: column; }
    .btn-copy, .btn-qr-trigger { width: 100%; justify-content: center; padding: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; justify-content: flex-end; }
    .flex-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
