/* ===================================================
   TAPSO - Client Pages Styles
   (Landing, Login, Register, Public Card, 404)
   =================================================== */

/* Client Header */
.client-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
}

.dark .client-header {
    background: rgba(36, 22, 18, 0.8);
}

/* Unified Header Styles */
.unified-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
}

.dark .unified-header {
    background: rgba(36, 22, 18, 0.8);
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.header-logo-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary)/10;
    border-radius: var(--radius-lg);
    color: var(--primary);
}

.header-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.header-nav-link--primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.header-nav-link--primary:hover {
    background: var(--primary-dark);
}

.header-nav-link--secondary {
    background: var(--background-light);
    color: var(--text-main);
}

.header-nav-link--secondary:hover {
    background: #e5e5e5;
}

.dark .header-nav-link--secondary {
    background: var(--surface-dark);
    color: white;
}

.dark .header-nav-link--secondary:hover {
    background: var(--background-dark);
}

/* Client Footer */
.client-footer {
    border-top: 1px solid var(--border-color);
    background: var(--surface-light);
    margin-top: auto;
}

.dark .client-footer {
    background: var(--surface-dark);
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

.dark .footer-copyright {
    color: #b89a8a;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-links {
        justify-content: flex-end;
    }
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

.dark .footer-link {
    color: #b89a8a;
}

.dark .footer-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(186, 63, 9, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Feature Cards */
.feature-card {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(186, 63, 9, 0.15);
}

.dark .feature-card {
    background: var(--surface-dark);
}

.feature-card .icon-wrapper {
    width: 3rem;
    height: 3rem;
    background: rgba(186, 63, 9, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition-normal);
}

.feature-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
}

/* Auth Form Container */
.auth-container {
    width: 100%;
    max-width: 1100px;
    background: var(--surface-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.dark .auth-container {
    background: var(--surface-dark);
}

/* Auth Form Side Panel */
.auth-side-panel {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.auth-side-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), #d97706);
    opacity: 0.9;
}

.auth-side-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.1;
}

/* Input Fields */
.form-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    padding-right: 2.5rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-main);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
}

.form-input:focus {
    background: var(--surface-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(186, 63, 9, 0.1);
    outline: none;
}

.dark .form-input {
    background: var(--surface-dark);
    border-color: var(--border-color);
}

.dark .form-input:focus {
    background: var(--background-dark);
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 2rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 52, 170, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Secondary Button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 2rem;
    background: var(--background-light);
    color: var(--text-main);
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.dark .btn-secondary {
    background: var(--surface-dark);
    color: white;
}

.dark .btn-secondary:hover {
    background: var(--background-dark);
}

/* Public Card Styles */
.public-card-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.public-card-header {
    height: 11rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.public-card-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: 5px solid var(--surface-light);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.dark .public-card-avatar {
    border-color: var(--surface-dark);
}

.public-card-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.public-card-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    transition: all var(--transition-normal);
}

.public-card-action-btn:hover {
    transform: translateY(-2px);
}

/* 404 Page */
.error-404-illustration {
    max-width: 320px;
    aspect-ratio: 1;
}

.error-404-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.05em;
}

/* Footer */
.client-footer {
    background: var(--background-dark);
    color: white;
}

.footer-link {
    color: #9ca3af;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: white;
}

/* Pricing Cards */
.pricing-card {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-normal);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
    position: relative;
}

.pricing-card.featured::before {
    content: 'محبوب‌ترین';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.dark .pricing-card {
    background: var(--surface-dark);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--background-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.dark .testimonial-card {
    background: var(--background-dark);
}

/* Mobile Phone Mockup */
.phone-mockup {
    position: relative;
    border: 14px solid #1f2937;
    border-radius: 2.5rem;
    background: #1f2937;
    box-shadow: var(--shadow-2xl);
}

.phone-mockup-screen {
    border-radius: 2rem;
    overflow: hidden;
    background: var(--surface-light);
}

.phone-mockup-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 25px;
    background: #1f2937;
    border-radius: 0 0 1rem 1rem;
}

/* ===================================================
   Public Card Page - Enhanced Styles
   =================================================== */

/* Material Symbols Configuration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Hide Scrollbar Utility */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dark .glass {
    background: rgba(36, 22, 18, 0.8);
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #ba3f09 0%, #d97706 50%, #f59e0b 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #ba3f09 0%, #d97706 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Profile Card */
.profile-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
    .profile-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px -12px rgba(186, 63, 9, 0.25);
    }
}

/* Contact Button Effects */
.contact-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-btn:active::before {
    width: 200px;
    height: 200px;
}

.contact-btn:active {
    transform: scale(0.95);
}

/* Social Icon Hover */
.social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Product Card Hover */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(186, 63, 9, 0.2);
}

/* Smooth Image Zoom */
.img-zoom {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .img-zoom {
    transform: scale(1.1);
}

/* Badge Animation */
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(186, 63, 9, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(186, 63, 9, 0); }
}

/* Bottom Nav Active State */
.nav-item.active {
    color: #ba3f09;
}

.nav-item.active .nav-indicator {
    transform: scaleX(1);
}

.nav-indicator {
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Floating Action Button */
.fab {
    box-shadow: 0 8px 24px -4px rgba(186, 63, 9, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(186, 63, 9, 0.6);
}

.fab:active {
    transform: scale(0.95);
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.dark .section-divider {
    background: linear-gradient(90deg, transparent, #3a2820, transparent);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes bounceSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-bounce-soft {
    animation: bounceSoft 2s ease-in-out infinite;
}
