/*
Theme Name: HitPro TopUp - Premium Recharge & Gift Cards
Theme URI: https://hitpro-topup.com
Author: HitPro Digital
Author URI: https://hitpro-topup.com
Description: Theme WordPress premium pour la vente de recharges mobiles internationales, gift cards digitales et paiements de services. Integre Reloadly et DingConnect. Design fintech haut de gamme, mobile-first, multilingue et compatible WooCommerce.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hitpro-topup
Domain Path: /languages
Tags: e-commerce, woocommerce, fintech, recharge, gift-cards, mobile-first, responsive, multilingual, rtl-language-support, custom-header, custom-menu, featured-images, translation-ready
WC requires at least: 7.0
WC tested up to: 9.5
Update URI: hitpro-topup
*/

/* ========================================
   HitPro TopUp - CSS Variables & Base
   ======================================== */

:root {
    /* Primary Palette */
    --hp-primary: #0F172A;
    --hp-primary-light: #1E293B;
    --hp-primary-lighter: #334155;

    /* Accent Colors */
    --hp-violet: #7C3AED;
    --hp-violet-light: #8B5CF6;
    --hp-violet-dark: #6D28D9;
    --hp-emerald: #10B981;
    --hp-emerald-light: #34D399;
    --hp-emerald-dark: #059669;

    /* Neutrals */
    --hp-white: #FFFFFF;
    --hp-gray-50: #F8FAFC;
    --hp-gray-100: #F1F5F9;
    --hp-gray-200: #E2E8F0;
    --hp-gray-300: #CBD5E1;
    --hp-gray-400: #94A3B8;
    --hp-gray-500: #64748B;
    --hp-gray-600: #475569;
    --hp-gray-700: #334155;
    --hp-gray-800: #1E293B;
    --hp-gray-900: #0F172A;

    /* Status Colors */
    --hp-success: #10B981;
    --hp-warning: #F59E0B;
    --hp-error: #EF4444;
    --hp-info: #3B82F6;

    /* Typography */
    --hp-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --hp-font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --hp-section-padding: 80px 0;
    --hp-container-max: 1280px;
    --hp-radius-sm: 8px;
    --hp-radius-md: 12px;
    --hp-radius-lg: 16px;
    --hp-radius-xl: 24px;
    --hp-radius-full: 9999px;

    /* Shadows */
    --hp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --hp-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --hp-shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.12);
    --hp-shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15);
    --hp-shadow-violet: 0 8px 30px rgba(124, 58, 237, 0.25);
    --hp-shadow-emerald: 0 8px 30px rgba(16, 185, 129, 0.25);

    /* Transitions */
    --hp-transition-fast: 150ms ease;
    --hp-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --hp-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--hp-font-primary);
    color: var(--hp-gray-700);
    background-color: var(--hp-white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hp-font-primary);
    color: var(--hp-primary);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1em;
    color: var(--hp-gray-600);
}

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

a:hover {
    color: var(--hp-violet-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Container
   ======================================== */

.hp-container {
    max-width: var(--hp-container-max);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .hp-container {
        padding: 0 40px;
    }
}

/* ========================================
   Buttons
   ======================================== */

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--hp-font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--hp-radius-full);
    cursor: pointer;
    transition: all var(--hp-transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.hp-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--hp-transition);
}

.hp-btn:hover::after {
    opacity: 1;
}

.hp-btn-primary {
    background: var(--hp-violet);
    color: var(--hp-white);
    box-shadow: var(--hp-shadow-violet);
}

.hp-btn-primary:hover {
    background: var(--hp-violet-dark);
    color: var(--hp-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.35);
}

.hp-btn-secondary {
    background: var(--hp-white);
    color: var(--hp-primary);
    border: 2px solid var(--hp-gray-200);
}

.hp-btn-secondary:hover {
    border-color: var(--hp-violet);
    color: var(--hp-violet);
    transform: translateY(-2px);
}

.hp-btn-emerald {
    background: var(--hp-emerald);
    color: var(--hp-white);
    box-shadow: var(--hp-shadow-emerald);
}

.hp-btn-emerald:hover {
    background: var(--hp-emerald-dark);
    color: var(--hp-white);
    transform: translateY(-2px);
}

.hp-btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.hp-btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.hp-btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--hp-radius-md);
}

/* ========================================
   Cards
   ======================================== */

.hp-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius-lg);
    padding: 32px;
    box-shadow: var(--hp-shadow-sm);
    border: 1px solid var(--hp-gray-100);
    transition: all var(--hp-transition);
}

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

.hp-card-flat {
    box-shadow: none;
    border: 1px solid var(--hp-gray-200);
}

.hp-card-dark {
    background: var(--hp-primary);
    color: var(--hp-white);
    border-color: var(--hp-primary-light);
}

.hp-card-dark h3,
.hp-card-dark h4,
.hp-card-dark p {
    color: var(--hp-gray-300);
}

.hp-card-dark h3,
.hp-card-dark h4 {
    color: var(--hp-white);
}

/* ========================================
   Form Elements
   ======================================== */

.hp-input,
.hp-select,
.hp-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--hp-font-primary);
    font-size: 0.95rem;
    color: var(--hp-primary);
    background: var(--hp-white);
    border: 2px solid var(--hp-gray-200);
    border-radius: var(--hp-radius-md);
    transition: all var(--hp-transition);
    outline: none;
}

.hp-input:focus,
.hp-select:focus,
.hp-textarea:focus {
    border-color: var(--hp-violet);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.hp-input::placeholder {
    color: var(--hp-gray-400);
}

.hp-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hp-gray-700);
    margin-bottom: 8px;
}

.hp-form-group {
    margin-bottom: 24px;
}

/* ========================================
   Badges & Tags
   ======================================== */

.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--hp-radius-full);
}

.hp-badge-violet {
    background: rgba(124, 58, 237, 0.1);
    color: var(--hp-violet);
}

.hp-badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--hp-emerald-dark);
}

.hp-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.hp-badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--hp-error);
}

/* ========================================
   Sections
   ======================================== */

.hp-section {
    padding: var(--hp-section-padding);
}

.hp-section-dark {
    background: var(--hp-primary);
    color: var(--hp-white);
}

.hp-section-gray {
    background: var(--hp-gray-50);
}

.hp-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.hp-section-header .hp-overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hp-violet);
    margin-bottom: 16px;
}

.hp-section-header h2 {
    margin-bottom: 16px;
}

.hp-section-header p {
    font-size: 1.1rem;
    color: var(--hp-gray-500);
}

/* ========================================
   Grid
   ======================================== */

.hp-grid {
    display: grid;
    gap: 24px;
}

.hp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hp-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .hp-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hp-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hp-grid-4,
    .hp-grid-3,
    .hp-grid-2 { grid-template-columns: 1fr; }
}

/* ========================================
   Utilities
   ======================================== */

.hp-text-center { text-align: center; }
.hp-text-right { text-align: right; }
.hp-text-violet { color: var(--hp-violet) !important; }
.hp-text-emerald { color: var(--hp-emerald) !important; }
.hp-text-white { color: var(--hp-white) !important; }
.hp-bg-violet { background-color: var(--hp-violet); }
.hp-bg-emerald { background-color: var(--hp-emerald); }
.hp-mt-0 { margin-top: 0; }
.hp-mb-0 { margin-bottom: 0; }
.hp-hidden { display: none; }
.hp-flex { display: flex; }
.hp-flex-center { display: flex; align-items: center; justify-content: center; }
.hp-flex-between { display: flex; align-items: center; justify-content: space-between; }
.hp-gap-sm { gap: 8px; }
.hp-gap-md { gap: 16px; }
.hp-gap-lg { gap: 24px; }

/* ========================================
   Animations
   ======================================== */

@keyframes hp-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hp-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hp-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes hp-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.hp-animate-fadeInUp {
    animation: hp-fadeInUp 0.6s ease forwards;
}

.hp-animate-fadeIn {
    animation: hp-fadeIn 0.5s ease forwards;
}

.hp-animate-delay-1 { animation-delay: 0.1s; }
.hp-animate-delay-2 { animation-delay: 0.2s; }
.hp-animate-delay-3 { animation-delay: 0.3s; }
.hp-animate-delay-4 { animation-delay: 0.4s; }

/* Loading skeleton */
.hp-skeleton {
    background: linear-gradient(90deg, var(--hp-gray-100) 25%, var(--hp-gray-200) 50%, var(--hp-gray-100) 75%);
    background-size: 200% 100%;
    animation: hp-shimmer 1.5s infinite;
    border-radius: var(--hp-radius-sm);
}

/* ========================================
   RTL Support
   ======================================== */

[dir="rtl"] .hp-btn i:last-child {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .hp-text-right {
    text-align: left;
}
