/**
 * OXAI-TOOLS - Custom Styles
 * Independent AI Tools Web App - Matching ORRIX style (Orange/Red-Orange)
 */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #111827;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

section {
    position: relative;
    z-index: 1;
}

/* Navigation Links */
.nav-link {
    color: #cbd5e1;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(249, 115, 22, 0.14);
}

.nav-link.active {
    color: #ffffff;
    background-color: rgba(249, 115, 22, 0.18);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.18);
}

/* Mobile Navigation Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #ffffff;
    background-color: rgba(249, 115, 22, 0.14);
}

.mobile-nav-link.active {
    color: #ffffff;
    background-color: rgba(249, 115, 22, 0.18);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.18);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #f97316, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #f97316, #f43f5e);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #f97316, #f43f5e);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glow Effects */
.glow-primary {
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.2);
}

.glow-accent {
    box-shadow: 0 0 40px rgba(244, 63, 94, 0.2);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(10px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 8s ease-in-out infinite; animation-delay: 2s; }
.animate-pulse-slow { animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-gradient { background-size: 200% 200%; animation: gradient-shift 3s ease infinite; }
.animate-scroll-bounce { animation: scroll-bounce 2s ease-in-out infinite; }

.animate-fade-in-up { animation: fade-in-up 0.8s ease-out forwards; opacity: 0; }
.animate-scale-in { animation: scale-in 0.6s ease-out forwards; opacity: 0; }

/* Animation Delays */
.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-600 { animation-delay: 0.6s; }

/* Hero Background Parallax */
.hero-bg-container {
    overflow: hidden;
    background: #020617;
}

.hero-bg-image {
    inset: -8%;
    transform: translate3d(0, 0, 0) scale(1.14);
    will-change: transform;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

/* Text Shadow */
.hero-text-shadow { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.hero-text-shadow-lg { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #f97316, #f43f5e); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #ea580c, #e11d48); }

/* Selection */
::selection { background: rgba(249, 115, 22, 0.3); color: #1f2937; }

/* Forms */
input, select, textarea { font-family: inherit; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Focus Visible */
:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.badge-accent { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.badge-success { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.badge-warning { background: rgba(249, 115, 22, 0.1); color: #f97316; }

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Card */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Section Backgrounds */
.section-white { background: #ffffff; }
.section-gray { background: #f9fafb; }
.section-gradient { background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%); }

/* Light Theme Gradient */
.bg-light-gradient {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 50%, #fff1f2 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #f97316, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   AI TOOL CARDS
   ============================================ */
.tool-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tool-card:hover {
    border-color: #fdba74;
    box-shadow: 0 20px 50px -12px rgba(249, 115, 22, 0.25);
    transform: translateY(-8px);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.tool-card-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.tool-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.tool-card-desc {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
}

.tool-cost {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(244, 63, 94, 0.1));
    color: #c2410c;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 9999px;
}

.tool-cost i {
    font-size: 0.75rem;
}

.tool-category {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

/* Free badge */
.free-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* ============================================
   PRICING / SUBSCRIPTION CARDS
   ============================================ */
.plan-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.plan-card.featured {
    border-color: #f97316;
    box-shadow: 0 20px 50px -12px rgba(249, 115, 22, 0.3);
}

.plan-card.featured::before {
    content: 'Beliebt';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.plan-price-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-price-period {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.plan-coins {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(244, 63, 94, 0.1));
    color: #c2410c;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.9375rem;
}

.plan-features li i {
    color: #22c55e;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.plan-btn.primary {
    background: linear-gradient(135deg, #f97316, #f43f5e);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.plan-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.plan-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.plan-btn.secondary:hover {
    background: #e5e7eb;
}

/* ============================================
   COIN PACKAGES
   ============================================ */
.coin-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.coin-card:hover {
    border-color: #f97316;
    box-shadow: 0 15px 40px -12px rgba(249, 115, 22, 0.25);
    transform: translateY(-4px);
}

.coin-card.popular {
    border-color: #f97316;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.coin-amount {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.coin-bonus {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.coin-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
}

.auth-card-lg {
    max-width: 560px;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.auth-input:focus {
    background: #ffffff;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    padding: 0 1rem;
}

/* Social buttons */
.social-btn {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dash-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dash-stat-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.dash-stat-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.dash-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dash-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Coin balance widget */
.coin-widget {
    background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
    border-radius: 1.5rem;
    padding: 1.75rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.coin-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.coin-widget-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-bg-image {
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    .animate-fade-in-up,
    .animate-scale-in {
        animation-duration: 0.6s;
    }

    .auth-card {
        padding: 1.75rem;
    }
}

@media print {
    body { background: #ffffff; color: #000000; }
    .no-print { display: none !important; }
}

img { max-width: 100%; height: auto; }