/* Product Details Page Custom Styles */

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-subtle {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Number display styling */
.font-monospace {
    font-family: 'Courier New', Courier, monospace !important;
    letter-spacing: 2px;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Timeline styling */
.timeline .d-flex::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 40px;
    width: 2px;
    height: calc(100% - 20px);
    background: #e9ecef;
    z-index: -1;
}

.timeline .d-flex:last-child::before {
    display: none;
}

/* Badge animations */
.badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Number features grid */
.number-features .feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.number-features .feature-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #dee2e6;
    transform: translateY(-2px);
}

/* Tab styling */


/* Pricing section */
.pricing-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Specifications grid */
.spec-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.spec-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Similar numbers cards */
.similar-number-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.similar-number-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .timeline .d-flex::before {
        left: 12px;
    }

    .spec-item {
        margin-bottom: 1rem;
    }

    /* Mobile-specific enhancements */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .row.g-4 {
        --bs-gutter-x: 1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .nav-tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    /* Touch-friendly buttons */
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
    }

    /* Improved modal on mobile */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 12px;
    }

    /* Better spacing for mobile cards */
    .similar-number-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }

    .h2 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    /* Stack elements vertically on small screens */
    .row.align-items-center .col-auto,
    .row.align-items-center .col {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .row.align-items-center .col:last-child {
        margin-bottom: 0;
    }

    /* Smaller feature cards */
    .number-features .feature-card {
        padding: 1rem;
    }

    /* More compact specifications */
    .spec-item {
        padding: 0.75rem;
    }

    .spec-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Loading animation for number display */
.number-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #1b5e20;
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #e65100;
}

/* Breadcrumb styling */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '→';
    color: #667eea;
    font-weight: bold;
}

/* Form enhancements */
.form-control {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Toast notification positioning */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* VIP badge styling */
.vip-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }

    to {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    }
}

/* Touch interactions for mobile */
.touch-active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Improved animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

/* Enhanced focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .btn,
    .modal,
    .toast-notification,
    .nav-tabs {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .bg-light {
        /* background-color: #2d3748 !important; */
    }

    .text-muted {
        color: #a0aec0 !important;
    }

    .card {
        /* background-color: #1a202c; */
        /* border-color: #2d3748; */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
        color: #fff;
    }

    .btn-primary:hover {
        background: #333;
        border-color: #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}