/* TFast Digital - Page Tools & Content Styling */

/* Cards & Containers */
.card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.18) !important;
}

.card.border-primary {
    border-left: 4px solid var(--tf-primary-strong) !important;
}

.card.border-success {
    border-left: 4px solid #198754 !important;
}

.card.border-info {
    border-left: 4px solid #0dcaf0 !important;
}

.card.border-warning {
    border-left: 4px solid #ffc107 !important;
}

/* Forms & Inputs */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--tf-primary-strong);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    border-color: var(--tf-primary-strong);
    font-weight: 600;
    border-radius: 6px;
    padding: 0.65rem 1.5rem;
    transition: all 0.3s ease;
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(79, 70, 229, 0.55);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--tf-primary-strong), var(--tf-accent));
    border-color: var(--tf-primary-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

/* Alerts & Results */
.alert {
    border-radius: 8px;
    border: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-info {
    background-color: #e7f3ff;
    color: #004085;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Calculator Results */
#gsm-result, #content-result, #seo-result, 
#website-result, #hosting-result, #smm-roi-result,
#keyword-result, #speed-result {
    border-radius: 8px;
    padding: 1.5rem;
}

/* Tables */
.table {
    border-collapse: collapse;
}

.table thead th {
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* Progress Bars */
.progress {
    border-radius: 6px;
    height: 2rem;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Badges */
.badge {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Headings */
h1, h2, h3, h4, h5 {
    color: var(--tf-text);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--tf-primary-strong);
    padding-bottom: 0.75rem;
}

.text-primary {
    color: var(--tf-primary-strong) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent)) !important;
}

/* Pricing Cards */
.pricing-card {
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(80, 44, 151, 0.2);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card .card-header {
    padding: 2rem 1rem;
}

.pricing-card .card-body {
    padding: 2rem 1rem;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:before {
    content: "✓ ";
    color: #502C97;
    font-weight: bold;
    margin-right: 0.5rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Sticky Elements */
.sticky-top {
    position: sticky;
    top: 100px;
}

/* Call to Action Sections */
.cta-section {
    background: linear-gradient(135deg, #502C97 0%, #3d1f6f 100%);
    color: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
}

.cta-section h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Icons & Emojis */
.icon-large {
    font-size: 3rem;
    display: block;
    margin: 1rem 0;
}

/* Process Steps */
.process-step {
    text-align: center;
    position: relative;
}

.process-step .step-number {
    width: 60px;
    height: 60px;
    background-color: #502C97;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #502C97;
    font-weight: 600;
    padding: 1rem;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table tr:hover {
    background-color: #f5f5f5;
}

/* Display Numbers */
.display-6 {
    font-size: 3rem;
    font-weight: bold;
}

/* Text Utilities */
.text-muted {
    color: #6c757d;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .sticky-top {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
        margin-top: 1rem;
    }
}

/* Animation for smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Link hover effects */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #502C97;
}

/* SEO Content Wrapper */
.seo-content {
    line-height: 1.8;
    color: #333;
}

.seo-content strong {
    color: #502C97;
}

.seo-content h2, .seo-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content ul, .seo-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
}

/* Rich Content Styling */
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.rich-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.rich-content table th,
.rich-content table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.rich-content table th {
    background-color: #502C97;
    color: white;
}

.rich-content blockquote {
    border-left: 4px solid #502C97;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

/* Loading & Transitions */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.float-end {
    float: right;
}

/* Utility Classes */
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.g-3 {
    gap: 1rem;
}

.g-4 {
    gap: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
