/*
Theme Name: NextPay Tailwind
Theme URI: https://nirapay.com
Author: NextPay
Author URI: https://nirapay.com
Description: Tailwind-based theme inspired by the NextPay Next.js UI.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextpay-tailwind
*/

/* CSS Variables - Light Mode (matching NiraPay exactly) */
:root {
    color-scheme: light;
    --radius: 0.625rem;
    --background: #e0fbfc;
    --foreground: #293241;
    --card: #e0fbfc;
    --card-foreground: #293241;
    --popover: #ffffff;
    --popover-foreground: #293241;
    --primary: #3d5a80;
    --primary-foreground: #fafafa;
    --secondary: #98c1d9;
    --secondary-foreground: #293241;
    --muted: #e8f4f6;
    --muted-foreground: #64748b;
    --accent: #ee6c4d;
    --accent-foreground: #fafafa;
    --destructive: #dc2626;
    --border: #c5dce0;
    --input: #c5dce0;
    --ring: #3d5a80;

    /* NiraPay specific */
    --black-gradient: linear-gradient(144.39deg, #ffffff -278.56%, #6d6d6d -78.47%, #11101d 91.61%);
    --card-shadow: 0px 20px 100px -10px rgba(66, 71, 91, 0.1);
}

/* CSS Variables - Dark Mode (matching NiraPay exactly) */
.dark {
    color-scheme: dark;
    --background: #1a1f35;
    --foreground: #fafafa;
    --card: #242a45;
    --card-foreground: #fafafa;
    --popover: #242a45;
    --popover-foreground: #fafafa;
    --primary: #60a5fa;
    --primary-foreground: #1a1f35;
    --secondary: #5a8ab5;
    --secondary-foreground: #fafafa;
    --muted: #2d3555;
    --muted-foreground: #a1a1aa;
    --accent: #ee6c4d;
    --accent-foreground: #fafafa;
    --destructive: #ef4444;
    --border: rgba(100, 116, 139, 0.2);
    --input: rgba(100, 116, 139, 0.25);
    --ring: #60a5fa;

    --black-gradient: linear-gradient(144.39deg, #242a45 0%, #1a1f35 100%);
    --card-shadow: 0px 20px 100px -10px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Glass - Darker background */
.header-glass {
    background: rgba(180, 210, 215, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.dark .header-glass {
    background: rgba(15, 18, 30, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Footer Glass - Same as Header */
.footer-glass {
    background: rgba(180, 210, 215, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
}

.dark .footer-glass {
    background: rgba(15, 18, 30, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

/* Font */
.font-poppins {
    font-family: "Poppins", "Inter", sans-serif;
}

/* Text Gradient - NiraPay Style */
.text-gradient {
    background: radial-gradient(64.18% 64.18% at 71.16% 35.69%,
            #def9fa 0.89%,
            #bef3f5 17.23%,
            #9dedf0 42.04%,
            #7de7eb 55.12%,
            #5ce1e6 71.54%,
            #33bbcf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Blue Gradient Background */
.bg-blue-gradient {
    background: linear-gradient(157.81deg,
            #def9fa -43.27%,
            #bef3f5 -21.24%,
            #9dedf0 12.19%,
            #7de7eb 29.82%,
            #5ce1e6 51.94%,
            #33bbcf 90.29%);
}

/* Black Gradient */
.bg-black-gradient {
    background: linear-gradient(144.39deg, #ffffff -278.56%, #6d6d6d -78.47%, #11101d 91.61%);
}

.bg-black-gradient-2 {
    background: linear-gradient(-168.39deg, #ffffff -278.56%, #6d6d6d -78.47%, #11101d 91.61%);
}

.bg-gray-gradient {
    background: linear-gradient(153.47deg, rgba(255, 255, 255, 0) -341.94%, #14101d 95.11%);
}

.bg-discount-gradient {
    background: linear-gradient(125.17deg, #272727 0%, #11101d 100%);
}

/* NiraPay Box Shadow */
.box-shadow {
    box-shadow: 0px 20px 100px -10px rgba(66, 71, 91, 0.1);
}

.dark .box-shadow {
    box-shadow: 0px 20px 100px -10px rgba(0, 0, 0, 0.4);
}

/* Blur Gradients */
.blue__gradient {
    background: linear-gradient(180deg, rgba(188, 165, 255, 0) 0%, #214d76 100%);
    filter: blur(123px);
}

.pink__gradient {
    background: linear-gradient(90deg, #f4c4f3 0%, #fc67fa 100%);
    filter: blur(900px);
}

.white__gradient {
    background: rgba(255, 255, 255, 0.6);
    filter: blur(750px);
}

/* Feature Card - NiraPay Style */
.feature-card {
    background: transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--black-gradient);
    box-shadow: var(--card-shadow);
}

/* Blog Card - Glassmorphism Style */
.blog-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 12px 24px -8px rgba(61, 90, 128, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(61, 90, 128, 0.3);
}

.dark .blog-card {
    background: rgba(36, 42, 69, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark .blog-card:hover {
    background: rgba(36, 42, 69, 0.8);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 12px 24px -8px rgba(96, 165, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 165, 250, 0.4);
}

/* Glass Container */
.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.dark .glass {
    background: rgba(36, 42, 69, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Glass Input */
.glass-input {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.15);
}

.dark .glass-input {
    background: rgba(45, 53, 85, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-input:focus {
    background: rgba(45, 53, 85, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Sidebar Animation */
.sidebar {
    -webkit-animation: slide-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation: slide-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@-webkit-keyframes slide-top {
    0% {
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes slide-top {
    0% {
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* Theme Toggle Button */
.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--muted);
}

/* Scrollbar - NiraPay Style */
::-webkit-scrollbar {
    width: 0.2rem;
    height: 0.6rem;
}

::-webkit-scrollbar-thumb {
    background: #b3b5b7;
    border-radius: 10rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #939597;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), hsl(210, 50%, 40%));
    color: var(--primary-foreground);
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(61, 90, 128, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 90, 128, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1.5px solid var(--border);
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    background: var(--muted);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Tag/Badge Styles */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary), hsl(210, 50%, 45%));
    color: var(--primary-foreground);
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(61, 90, 128, 0.25);
}

.tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(61, 90, 128, 0.35);
}

.tag.glass {
    background: rgba(61, 90, 128, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary);
    border: 1px solid rgba(61, 90, 128, 0.2);
    box-shadow: none;
}

.tag.glass:hover {
    background: rgba(61, 90, 128, 0.25);
    box-shadow: 0 4px 12px rgba(61, 90, 128, 0.2);
}

.dark .tag {
    background: linear-gradient(135deg, var(--primary), hsl(210, 60%, 55%));
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.dark .tag:hover {
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.dark .tag.glass {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.25);
    color: var(--primary);
}

.dark .tag.glass:hover {
    background: rgba(96, 165, 250, 0.3);
}

/* Pagination */
.pagination-item [class*="page-numbers"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--foreground);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-item a.page-numbers:hover {
    background: rgba(61, 90, 128, 0.1);
    color: var(--primary);
}

.pagination-item span.current {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 2px 8px rgba(61, 90, 128, 0.3);
}

.pagination-item a.prev,
.pagination-item a.next {
    font-weight: 600;
    gap: 0.25rem;
}

.dark .pagination-item a.page-numbers:hover {
    background: rgba(96, 165, 250, 0.15);
}

.dark .pagination-item span.current {
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

/* Line Clamp */
.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;
}