@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc; /* Tailwind slate-50 */
    color: #0f172a; /* Tailwind slate-900 */
}

/* Award Slider Styles (extracted from home.php) */
.proxyw-wrapper { 
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    padding: 40px 10px;
    border-bottom: 1px solid #e2e8f0;
}
.proxyw-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
}
.awards-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 15px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    max-width: 1280px;
    margin: 0 auto;
}
.awards-slider::-webkit-scrollbar { display: none; }
.award-card {
    min-width: 260px;
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    transition: .25s;
    position: relative;
}
.award-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.badge {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 10px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 30px;
    font-weight: 700;
}
.badge.gold { background: linear-gradient(135deg,#fbbf24,#d97706); }
.badge.blue { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.badge.green { background: linear-gradient(135deg,#10b981,#059669); }
.badge.purple { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.logo-box {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 1px solid #e5e7eb;
}
.logo-box img {
    max-width: 55px;
    max-height: 55px;
}
.award-type {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    margin: 6px 0;
}
.stars {
    color: #fbbf24;
    font-size: 12px;
    margin-bottom: 12px;
}
.visit-btn {
    width: 100%;
    background: #eef2ff;
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    display: inline-block;
    text-decoration: none;
    color: #0f172a;
}
.visit-btn:hover {
    background: #2563eb;
    color: #fff;
}

/* News Page Styles */
.news-header {
    background: #ffffff;
    padding: 60px 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}
.news-tabs-wrap {
    background: #f8fafc;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}
.news-tabs {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.news-tabs::-webkit-scrollbar { display: none; }
.news-tab-label {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
    margin-right: 10px;
}
.news-tab {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    background: transparent;
    transition: 0.2s;
    white-space: nowrap;
}
.news-tab:hover { color: #2563eb; }
.news-tab.active {
    background: #4A5699;
    color: #ffffff;
}
.news-grid {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.news-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.news-date {
    flex-shrink: 0;
    width: 100px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}
.news-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}
.news-logo {
    flex-shrink: 0;
    width: 160px;
    display: flex;
    justify-content: flex-end;
}
.news-accent { color: #e11d48; }

/* Review Page Decorative Slant */
.review-slant {
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 100%);
}

/* Tool Specific Styles */
.tool-progress-bar { width: 0%; }
.ua-result-list {
    scrollbar-width: thin;
    scrollbar-color: #374151 #111827;
}

/* Best Page Styles */
.best-header {
    background: #ffffff;
    padding: 60px 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}
.best-title {
    font-size: 56px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1px;
}
.best-tabs-wrap {
    background: #f8fafc;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}
.best-tabs {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.best-tabs::-webkit-scrollbar { display: none; }
.best-tab-label {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
    margin-right: 10px;
}
.best-tab {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: #4A5699;
    background: transparent;
    transition: 0.2s;
    white-space: nowrap;
}
.best-tab:hover { background: rgba(74, 86, 153, 0.05); }
.best-tab.active {
    background: #4A5699;
    color: #ffffff;
}
.best-grid {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.best-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    border: 1px solid transparent;
}
.best-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: #f1f5f9;
}
.best-image-wrap {
    background: #ffffff;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    position: relative;
    margin-bottom: 20px;
}
.best-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.best-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #94a3b8;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}
.best-badge[data-cat*="Scrapers"] { background: #94a3b8; }
.best-badge[data-cat*="Proxies"] { background: #64748b; }
.best-badge[data-cat*="Bots"] { background: #475569; }
.best-badge[data-cat*="Datasets"] { background: #cbd5e1; color:#334155; }
.best-badge[data-cat*="Extensions"] { background: #334155; }
.best-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    padding: 0 10px;
    transition: color 0.2s;
}
.best-card:hover .best-card-title { color: #e11d48; }

/* Legal Pages Styles */
.legal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.legal-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
    -webkit-mask-image: linear-gradient(to bottom, white, transparent);
    mask-image: linear-gradient(to bottom, white, transparent);
}
.legal-title {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    position: relative;
    z-index: 10;
}
.legal-subtitle {
    color: #94a3b8;
    font-size: 18px;
    max-width: 600px;
    margin: 15px auto 0;
    position: relative;
    z-index: 10;
}
.legal-content-wrap {
    background: #f8fafc;
    padding: 60px 20px 100px;
}
.legal-box {
    max-width: 900px;
    margin: -80px auto 0;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    padding: 50px 60px;
    position: relative;
    z-index: 20;
    border: 1px solid #f1f5f9;
}
.legal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 40px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}
.legal-meta-badge {
    background: #e0f2fe;
    color: #0284c7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
}
.prose-legal h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}
.prose-legal h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 15px;
}
.prose-legal p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}
.prose-legal ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #475569;
}
.prose-legal li {
    margin-bottom: 10px;
    line-height: 1.7;
}
.prose-legal a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.prose-legal a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Review Content Overrides */
.review-custom-list ul > li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}
.review-custom-list ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.4em;
    height: 0.4em;
    background-color: #3b82f6;
    border-radius: 50%;
}
.html-content p {
    margin-bottom: 1.25em;
    line-height: 1.75;
}

/* Latency Map Styles */
.latency-map-wrap { height: 600px; border-radius: 20px; overflow: hidden; }
.marker-latency {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Partner Page Styles */
.proxy5-wrap {
    background: linear-gradient(180deg,#f8fafc,#eef2f7);
    padding:80px 0;
}
.proxy5-container {
    max-width:1300px;
    margin:auto;
    padding:0 20px;
}
.proxy5-title {
    text-align:center;
    font-size:48px;
    font-weight:900;
    letter-spacing:-1px;
    color:#020617;
}
.proxy5-subtitle {
    text-align:center;
    max-width:900px;
    margin:14px auto 60px;
    color:#475569;
    font-size:18px;
    line-height:1.8;
}
.proxy5-partnership {
    background:linear-gradient(135deg,#ffffff,#f8fafc);
    border:1px solid #e5e7eb;
    border-radius:22px;
    padding:45px 40px;
    margin-bottom:70px;
    box-shadow:0 25px 60px rgba(0,0,0,.08);
    text-align:center;
}
.proxy5-partnership p {
    font-size:17px;
    color:#475569;
    line-height:1.9;
}
.proxy5-partnership strong { color:#0f4c75; }
.proxy5-contact {
    display:inline-block;
    margin-top:25px;
    background:linear-gradient(135deg,#1a87b1,#0f4c75);
    color:#fff;
    padding:16px 38px;
    border-radius:18px;
    text-decoration:none;
    font-weight:800;
    font-size:16px;
    box-shadow:0 10px 30px rgba(26,135,177,.4);
    transition: 0.2s;
}
.proxy5-contact:hover { transform:translateY(-2px); }
.proxy5-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:30px;
}
.proxy5-card {
    background:#fff;
    border-radius:22px;
    padding:28px 26px 30px;
    border:1px solid #e5e7eb;
    box-shadow:0 18px 40px rgba(0,0,0,.07);
    transition:.35s;
    position:relative;
}
.proxy5-card:hover {
    transform:translateY(-10px) scale(1.02);
    box-shadow:0 35px 70px rgba(0,0,0,.15);
}
.proxy5-logo-box {
    background:linear-gradient(135deg,#f1f5f9,#ffffff);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:18px;
    border-radius:14px;
    padding: 10px;
}
.proxy5-logo {
    max-height:128px;
    max-width:128px;
    object-fit: contain;
}
.proxy5-badges {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:12px;
}
.proxy5-badge {
    background:#e0f2fe;
    color:#075985;
    font-size:11px;
    font-weight:800;
    padding:6px 10px;
    border-radius:999px;
    text-transform:uppercase;
}
.proxy5-name {
    font-size:22px;
    font-weight:900;
    margin-bottom:8px;
}
.proxy5-desc {
    color:#64748b;
    font-size:14px;
    line-height:1.7;
    margin-bottom:16px;
}
.proxy5-link {
    display:block;
    text-align:center;
    background:linear-gradient(135deg,#1a87b1,#0f4c75);
    color:#fff;
    padding:13px 16px;
    border-radius:14px;
    text-decoration:none;
    font-weight:800;
    font-size:14px;
}
.proxy5-link:hover { opacity:.9; }

/* Map Node Specifics */
.latency-node-fast { background-color: #22c55e; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
.latency-node-med { background-color: #eab308; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 10px rgba(234, 179, 8, 0.5); }
.latency-node-slow { background-color: #ef4444; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
.leaflet-popup-content-wrapper { border-radius: 0.75rem !important; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important; }
.leaflet-popup-content { margin: 16px !important; font-family: 'Inter', sans-serif !important; }

/* Base custom classes to match the design prompt */
.text-primary {
    color: #2563eb;
}

.bg-primary {
    background-color: #2563eb;
}

.hover\:bg-primary-dark:hover {
    background-color: #1d4ed8;
}

.border-primary {
    border-color: #2563eb;
}

.focus\:ring-primary:focus {
    --tw-ring-color: #2563eb;
}

/* Cards */
.hover-card {
    transition: all 0.2s ease-in-out;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* FAQ Accordion Transition */
.faq-content {
    transition: max-height 0.3s ease-out;
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Custom Scrollbar for sidebars / tables */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ═══════════════════════════════════════════════ */
/* Social Share Bar                                */
/* ═══════════════════════════════════════════════ */
.share-bar {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.share-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.75rem;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--share-color, #475569);
    background: color-mix(in srgb, var(--share-color, #475569) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--share-color, #475569) 18%, transparent);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.share-btn:hover {
    background: var(--share-color, #475569);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--share-color, #475569) 30%, transparent);
}
.share-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.share-name {
    display: none;
}
@media (min-width: 640px) {
    .share-name { display: inline; }
}
@media (min-width: 1024px) {
    .share-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .share-icon { width: 18px; height: 18px; }
}
