/* ============================================
   eGrow Help Centre - Main Styles
   ============================================ */

/* Base Styles */
* { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Gradient Classes */
.gradient-brand { 
    background: linear-gradient(135deg, #0A8F7A 0%, #1CBF94 50%, #34D399 100%); 
}
.gradient-brand-dark { 
    background: linear-gradient(135deg, #065F46 0%, #0A8F7A 50%, #059669 100%); 
}
.gradient-text { 
    background: linear-gradient(135deg, #0A8F7A, #1CBF94); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

/* Glass Effect */
.glass { 
    background: rgba(255,255,255,0.8); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
}
.glass-dark { 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
}

/* Hero Mesh Gradient */
.hero-mesh {
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10,143,122,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(52,211,153,0.1) 0%, transparent 40%),
        radial-gradient(ellipse 40% 30% at 0% 30%, rgba(10,143,122,0.08) 0%, transparent 40%),
        linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

/* Hero Pattern */
.hero-pattern {
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(16,185,129,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(52,211,153,0.08) 0%, transparent 40%),
        linear-gradient(180deg, #ECFDF5 0%, #F9FAFB 50%, #FFFFFF 100%);
}

/* Onboarding Card */
.onboarding-card {
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0,0,0,0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0A8F7A 0%, #059669 50%, #047857 100%);
    position: relative;
    overflow: hidden;
}
.onboarding-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

/* Animations */
@keyframes rotate { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}
@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-12px); } 
}
@keyframes pulse-ring { 
    0% { transform: scale(0.8); opacity: 0.6; } 
    100% { transform: scale(1.5); opacity: 0; } 
}
@keyframes fade-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 slide-in { 
    from { opacity: 0; transform: translateX(20px); } 
    to { opacity: 1; transform: translateX(0); } 
}
@keyframes shimmer { 
    0% { background-position: -200% 0; } 
    100% { background-position: 200% 0; } 
}
@keyframes glow-pulse { 
    0%, 100% { box-shadow: 0 0 20px rgba(10,143,122,0.3); } 
    50% { box-shadow: 0 0 40px rgba(10,143,122,0.5); } 
}
@keyframes bounce-subtle { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-5px); } 
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-up { animation: fade-up 0.7s ease-out forwards; }
.animate-scale-in { animation: scale-in 0.5s ease-out forwards; }
.animate-slide-in { animation: slide-in 0.5s ease-out forwards; }
.animate-glow { animation: glow-pulse 3s ease-in-out infinite; }
.animate-bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.35s; }
.delay-7 { animation-delay: 0.4s; }
.delay-8 { animation-delay: 0.45s; }

/* Smooth Scroll */
html { scroll-behavior: smooth; }

/* Selection Color */
::selection { background: rgba(10,143,122,0.2); }

/* Focus Visible */
:focus-visible { outline: 2px solid #0A8F7A; outline-offset: 2px; }

/* Card Interactions */
.card-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}
.card-lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}
.card-lift:active {
    transform: translateY(-4px) scale(1.005);
}

/* Article Card */
.article-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: rgba(16,185,129,0.3);
}
.article-card:hover .article-icon {
    transform: scale(1.1);
}
.article-card:hover .arrow-icon {
    transform: translateX(4px);
    opacity: 1;
}

/* Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-glow:hover::before { opacity: 1; }
.btn-glow:hover::after { transform: rotate(45deg) translateX(100%); }
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -5px rgba(10,143,122,0.5); }
.btn-glow:active { transform: translateY(-1px); }

/* Search Box */
.search-box {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.search-box:focus-within {
    box-shadow: 0 0 0 4px rgba(10,143,122,0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-color: rgba(10,143,122,0.3);
}
.search-box:hover:not(:focus-within) {
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Chip Styles */
.chip {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chip:hover {
    transform: translateY(-2px);
}
.chip:active {
    transform: translateY(0);
}
.chip-active {
    background: linear-gradient(135deg, #0A8F7A, #1CBF94) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px -3px rgba(10,143,122,0.5);
    transform: translateY(-2px);
}

/* Nav Link Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0A8F7A, #1CBF94);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }

/* Breadcrumb Link */
.breadcrumb-link {
    transition: color 0.2s ease;
}
.breadcrumb-link:hover {
    color: #10B981;
}

/* Step Card */
.step-card { 
    transition: all 0.3s ease; 
}
.step-card:hover { 
    transform: translateX(4px); 
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

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

/* Prose Styles for Article Content */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.prose p {
    color: #4B5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.prose ul, .prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.prose li {
    color: #4B5563;
    margin-bottom: 0.5rem;
}
.prose code {
    background: #F3F4F6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #0A8F7A;
}
.prose pre {
    background: #1F2937;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}
.prose pre code {
    background: transparent;
    color: #E5E7EB;
    padding: 0;
}
.prose a {
    color: #0A8F7A;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover {
    color: #047857;
}
.prose blockquote {
    border-left: 4px solid #0A8F7A;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6B7280;
}
.prose img,
article .prose img,
.prose-lg img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 8px !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.prose th, .prose td {
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    text-align: left;
}
.prose th {
    background: #F9FAFB;
    font-weight: 600;
}

/* RTL Adjustments */
[dir="rtl"] .article-card:hover {
    transform: translateY(-4px);
}
[dir="rtl"] .step-card:hover {
    transform: translateX(-4px);
}
[dir="rtl"] .arrow-icon {
    transform: scaleX(-1);
}
[dir="rtl"] .article-card:hover .arrow-icon {
    transform: scaleX(-1) translateX(4px);
}

