/* uClickn - Custom Styles */

:root {
    /* Primary Colors */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    
    /* Secondary Colors */
    --secondary-purple: #7c3aed;
    --secondary-purple-dark: #6d28d9;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

/* Logo */
.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.logo span {
    color: var(--gray-800);
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Cards */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-feature {
    border: none;
    background-color: #fff;
}

.card-feature:hover {
    transform: translateY(-4px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: #fff;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Form Styles */
.form-control {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 0.625rem 0.875rem;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-card .logo {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--gray-500);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-300);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: #fff;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

/* Sidebar */
.sidebar {
    background-color: #fff;
    border-right: 1px solid var(--gray-200);
    min-height: calc(100vh - 60px);
    padding: 1.5rem 0;
}

.sidebar-nav .nav-link {
    color: var(--gray-600) !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: var(--radius);
    margin: 0.125rem 0.75rem;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--gray-100);
}

.sidebar-nav .nav-link.active {
    background-color: var(--primary-blue);
    color: #fff !important;
}

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    padding: 0.5rem 1.25rem;
    margin-top: 1rem;
}

/* Store Cards */
.store-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.store-card.selected {
    border-color: var(--primary-blue);
    background-color: rgba(37, 99, 235, 0.05);
}

.store-card img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.store-card .store-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.store-card .store-category {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Mall Grid */
.mall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
}

/* Drag and Drop */
.draggable {
    cursor: move;
}

.drop-zone {
    min-height: 200px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.drop-zone.drag-over {
    border-color: var(--primary-blue);
    background-color: rgba(37, 99, 235, 0.05);
}

.drop-zone.has-items {
    border: none;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.875rem;
}

/* Pricing Cards */
.pricing-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: all 0.2s ease;
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
}

.pricing-features li i {
    color: var(--success);
    margin-right: 0.5rem;
}

/* Feature Icons */
.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.25rem;
}

.blog-card .blog-date {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.blog-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Blog Post Cards (Home Page) */
.blog-post-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    cursor: pointer;
}

.blog-post-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.blog-post-card h6 {
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}

.blog-post-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Alerts */
.alert {
    border-radius: var(--radius);
    border: none;
}

/* Special Offers Section */
.offer-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.offer-item:last-child {
    border-bottom: none;
}

.offer-icon {
    width: 40px;
    height: 40px;
    background-color: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-lg {
    width: 80px;
    height: 80px;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Filter Pills */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--gray-600);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-pill.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .sidebar {
        min-height: auto;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Workspace Layout */
.workspace-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.workspace-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.workspace-main {
    flex: 1;
    padding: 1.5rem;
    background-color: var(--gray-50);
    overflow-y: auto;
}

/* Category Dropdown */
.category-dropdown {
    padding: 0.5rem 0;
}

.category-dropdown .dropdown-toggle {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    text-align: left;
}

.category-dropdown .dropdown-menu {
    width: 100%;
}

/* Notification Badge */
.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.625rem;
}

/* Analytics Chart Placeholder */
.chart-placeholder {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

/* Support Cards */
.support-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    height: 100%;
}

.support-card .icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

/* Table Styles */
.table-comparison {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-comparison th {
    background: var(--gray-50);
    font-weight: 600;
    border-bottom: 2px solid var(--gray-200);
}

.table-comparison td, 
.table-comparison th {
    padding: 1rem;
    vertical-align: middle;
}

/* FAQ Accordion */
.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--gray-800);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary-blue);
}

.faq-accordion .accordion-body {
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
}
