/*
Theme Name: Premium Multi-Tool Resizer & Calculators Theme
Theme URI: https://example.com/multitool-resizer
Author: Antigravity
Description: A premium, fast, and feature-rich WordPress theme featuring search functionality, multi-resizers (PAN, SSC, RRB, Twitch), and calculators (Gap Insurance, Reverse Tax), with integrated blog grids.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: multitool-resizer
*/

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

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Custom grid background */
.bg-grid-pattern {
    background-size: 30px 30px;
    background-image: linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
}

/* Blur backdrop glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark-glass-panel {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* PAN Card Mockup Styles */
.pan-card {
    aspect-ratio: 1.586/1; /* Standard ID-1 card aspect ratio */
    background: linear-gradient(135deg, #a7f3d0 0%, #34d399 20%, #059669 60%, #064e3b 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.pan-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

/* Custom range input styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    transition: transform 0.1s ease;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    transition: transform 0.1s ease;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Pulsing accent animation */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .85;
        transform: scale(1.02);
    }
}

.pulse-glow {
    animation: pulse-subtle 2s infinite ease-in-out;
}

/* Custom scrollbar */
::-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;
}

/* Cropper JS adjustments */
.cropper-view-box,
.cropper-face {
    border-radius: 4px;
}

.cropper-line {
    background-color: #4f46e5;
}

.cropper-point {
    background-color: #4f46e5;
}

/* Shine effect for buttons */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
    transition: none;
}

.btn-shine:hover::after {
    left: 120%;
    transition: all 0.6s ease-in-out;
}

/* Custom Spacing & Mobile Margin Optimization */
header.relative {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
}

@media (min-width: 1024px) {
    header.relative {
        padding-top: 2.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

@media (max-width: 640px) {
    .px-4, 
    nav.px-4, 
    header.px-4, 
    main.px-4, 
    section.px-4 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
