/*
Theme Name: 101VPN Theme
Theme URI: https://101vpn.com
Author: WebDev Team
Author URI: https://101vpn.com
Description: Professional VPN review and cybersecurity blog theme with modern design, slider, and dynamic content.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 101vpn
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, full-width-template, post-formats, theme-options, translation-ready

101VPN Theme - Modern VPN review and cybersecurity blog theme built with Tailwind CSS.
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Base Reset & Typography */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #0a2642;
    --primary-light: #1a4a7c;
    --accent: #10B981;
    --gold: #F59E0B;
    --background-light: #ffffff;
    --background-dark: #111921;
    --surface-light: #ffffff;
    --surface-dark: #1e293b;
    --hero-gradient-start: #f0f7ff;
    --hero-gradient-end: #e8f4f8;
}

html {
    scroll-behavior: smooth;
}

body,
html body,
body.wp-singular,
body.single,
body.single-post,
body.page,
body.archive,
body.home {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0e141a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Force light theme everywhere - override any dark backgrounds */
.bg-slate-900,
.bg-gray-900,
.bg-zinc-900,
.bg-neutral-900,
.bg-stone-900,
.bg-black,
[class*="bg-slate-9"],
[class*="bg-gray-9"],
[class*="bg-zinc-9"],
[class*="bg-neutral-9"],
[class*="bg-stone-9"],
[class*="bg-background-dark"] {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
}

/* Override dark text colors to be visible on light background */
.text-white,
.text-slate-100,
.text-gray-100 {
    /* Keep white text only in specific components like buttons */
}

/* Override dark gradient backgrounds */
[class*="from-slate-9"],
[class*="from-gray-9"],
[class*="to-slate-9"],
[class*="to-gray-9"],
[class*="from-primary"],
[class*="to-primary"] {
    --tw-gradient-from: #f0f9ff !important;
    --tw-gradient-to: #e0f2fe !important;
}

/* Override primary color gradients (for newsletter section etc.) */
.bg-gradient-to-r.from-primary,
.bg-gradient-to-l.from-primary,
.bg-gradient-to-b.from-primary,
.bg-gradient-to-t.from-primary,
[class*="bg-gradient"][class*="from-primary"] {
    background: linear-gradient(to right, #f0f9ff, #e0f2fe) !important;
}

/* WordPress Required Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Utility Classes */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Material Icons Style */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

.material-symbols-outlined.filled {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* Custom Scrollbar for Light Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* Snap Scroll */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

/* Transitions */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Prose Styles for Article Content */
.prose {
    max-width: 65ch;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.prose h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.5em;
    font-weight: 700;
}

.prose h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-size: 1.25em;
    font-weight: 600;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--accent);
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.75rem;
}

.prose blockquote {
    font-style: italic;
    border-left: 4px solid var(--accent);
    padding-left: 1em;
    margin-left: 0;
    color: #64748b;
}

.prose code {
    background-color: #f1f5f9;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
}

/* Post Navigation */
.navigation.pagination {
    margin: 2rem 0;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.navigation.pagination .page-numbers:hover {
    background-color: #f8fafc;
}

.navigation.pagination .page-numbers.current {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author img {
    border-radius: 9999px;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--primary);
}

.comment-content p {
    margin: 0;
    color: #475569;
}

.comment-metadata {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Comment Form */
.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 38, 66, 0.1);
}

.comment-form .submit {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.comment-form .submit:hover {
    background-color: #0f3457;
}

/* Widgets */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* =============================================
   Bootstrap-style VPN Comparison Cards Styling
   HIGH SPECIFICITY to override Tailwind CSS
   ============================================= */

/* Card container - Using multiple selectors for high specificity */
div.card.mb-3.shadow,
.card.mb-3.shadow,
article .card.mb-3.shadow,
main .card.mb-3.shadow,
.prose .card.mb-3.shadow,
body .card.mb-3.shadow {
    display: block !important;
    background-color: #fff !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid #e2e8f0 !important;
}

/* Card header */
div.card-header.bg-dark,
.card-header.bg-dark,
.card .card-header.bg-dark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: #fff !important;
    padding: 1rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    display: block !important;
}

div.card-header.bg-dark.text-center,
.card-header.bg-dark.text-center {
    text-align: center !important;
}

div.card-header.bg-dark.text-white,
.card-header.bg-dark.text-white {
    color: #fff !important;
}

div.card-header.bg-dark.fw-bold,
.card-header.bg-dark.fw-bold {
    font-weight: 700 !important;
}

/* Card body */
div.card-body,
.card-body,
.card .card-body {
    padding: 1.5rem !important;
    display: block !important;
}

/* Bootstrap Grid System - HIGH SPECIFICITY */
div.row,
.row,
.card div.row,
.card .row,
.card-body div.row,
.card-body .row,
body div.row,
body .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -0.75rem !important;
    margin-left: -0.75rem !important;
}

div.row.align-items-center,
.row.align-items-center,
.card .row.align-items-center,
.card-body .row.align-items-center {
    align-items: center !important;
}

div.row.pb-2,
.row.pb-2 {
    padding-bottom: 0.5rem !important;
}

div.row.border-bottom,
.row.border-bottom,
.card .row.border-bottom,
.card-body .row.border-bottom {
    border-bottom: 1px solid #e2e8f0 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
}

div.row.border-bottom:last-of-type,
.row.border-bottom:last-of-type,
.card .row:last-of-type,
.card-body .row:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Bootstrap Columns - HIGH SPECIFICITY */
div.col-lg-3,
.col-lg-3,
.card .col-lg-3,
.card-body .col-lg-3,
.row .col-lg-3,
.row > .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
    width: 25% !important;
}

div.col-lg-6,
.col-lg-6,
.card .col-lg-6,
.card-body .col-lg-6,
.row .col-lg-6,
.row > .col-lg-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
    width: 50% !important;
}

/* Text utilities - HIGH SPECIFICITY */
.text-center,
.card .text-center,
div.text-center {
    text-align: center !important;
}

.text-danger,
span.text-danger,
.card .text-danger {
    color: #dc2626 !important;
}

.text-success,
i.text-success,
.card .text-success {
    color: #16a34a !important;
}

.text-warning,
.card .text-warning {
    color: #f59e0b !important;
}

.text-muted,
small.text-muted,
.card .text-muted {
    color: #6b7280 !important;
}

.fw-bold,
p.fw-bold,
.card .fw-bold {
    font-weight: 700 !important;
}

.fs-5,
p.fs-5,
.card .fs-5 {
    font-size: 1.25rem !important;
}

.fs-6,
.card .fs-6 {
    font-size: 1rem !important;
}

/* d-inline-block utility */
.d-inline-block,
div.d-inline-block {
    display: inline-block !important;
}

.justify-content-center {
    justify-content: center !important;
}

/* Bootstrap Icons - Using Unicode equivalents */
i.bi,
.bi {
    display: inline-block !important;
    vertical-align: middle !important;
    font-style: normal !important;
}

i.bi-star-fill::before,
.bi-star-fill::before {
    content: "★" !important;
    color: #f59e0b !important;
    font-size: 1rem !important;
}

i.bi-star-half::before,
.bi-star-half::before {
    content: "☆" !important;
    color: #f59e0b !important;
    font-size: 1rem !important;
}

i.bi-check::before,
.bi-check::before,
i.bi-check.text-success::before,
.bi-check.text-success::before {
    content: "✓" !important;
    color: #16a34a !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    margin-right: 0.25rem !important;
}

i.bi-trophy::before,
.bi-trophy::before,
i.bi-trophy.text-danger::before {
    content: "🏆" !important;
    font-size: 1rem !important;
}

i.bi-trophy.text-warning::before,
.bi-trophy.text-warning::before {
    content: "🏆" !important;
}

/* VPN Logo in cards - HIGH SPECIFICITY */
.card .row img,
.card-body .row img,
.card .col-lg-3 img,
div.card div.row img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 60px !important;
    object-fit: contain !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* VPN name styling */
.card .row p.fw-bold,
.card-body .row p.fw-bold,
.card p.fw-bold.fs-5 {
    font-size: 1.1rem !important;
    color: var(--primary) !important;
    margin-bottom: 0.5rem !important;
}

/* Feature list in VPN cards */
.card .row ul,
.card-body .row ul,
ul.list-unstyled,
ul.feature-ul {
    list-style: none !important;
    padding: 0 !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.card .row ul li,
.card-body .row ul li,
ul.list-unstyled li,
ul.feature-ul li {
    padding: 0.25rem 0 !important;
    font-size: 0.9rem !important;
    color: #475569 !important;
    border-bottom: none !important;
    list-style: none !important;
}

/* text-start utility */
.text-start,
ul.text-start {
    text-align: left !important;
}

/* lh-1 utility (line-height: 1) */
.lh-1,
div.lh-1 {
    line-height: 1 !important;
}

/* CTA Button styling */
.card .row a.btn,
.card .row a[class*="btn-"],
.card-body a.btn {
    display: inline-block !important;
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%) !important;
    color: #fff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.card .row a.btn:hover,
.card .row a[class*="btn-"]:hover,
.card-body a.btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

/* Ranking badge */
.card .row span.badge,
.card .row .badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

/* padding/margin utilities for row children */
.row.py-2,
div.row.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.row.pt-2,
div.row.pt-2 {
    padding-top: 0.5rem !important;
}

/* mb-1 utility */
.mb-1,
p.mb-1 {
    margin-bottom: 0.25rem !important;
}

/* Responsive adjustments for VPN cards */
@media (max-width: 991.98px) {
    div.col-lg-3,
    .col-lg-3,
    .card .col-lg-3,
    .row .col-lg-3,
    div.col-lg-6,
    .col-lg-6,
    .card .col-lg-6,
    .row .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .card .row img,
    .card-body .row img {
        max-height: 50px !important;
        margin: 0 auto 0.5rem !important;
    }
    
    .card .row ul,
    ul.text-start {
        text-align: left !important;
    }
}

/* Small margin and padding utilities */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* List styling in content */
.card ul.list-unstyled,
.card ul.mb-0 {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.card ul li small {
    font-size: 0.875rem;
}

/* Additional link styling for VPN affiliate links */
.card a.text-decoration-none {
    text-decoration: none;
}

.card a.text-decoration-none:hover {
    text-decoration: underline;
}
