/* Alphafusion.io - Professional Dark Theme */

:root {
    --primary-color: #ff3a33;
    --secondary-color: #6c757d;
    --background-color: #0e1117;
    --card-bg-color: #161b22;
    --text-color: #f8f8f8;
    --border-color: #2d2d2d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --premium-navy-1: #050B16;
    --premium-navy-2: #07111F;
    --premium-navy-3: #081526;
    --premium-navy-4: #0B1730;
    --premium-glow: rgba(71, 148, 255, 0.28);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navbar styling */
.navbar {
    padding: 1.2rem 1rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tk-premium-header {
    position: relative;
    overflow: visible;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(116, 175, 255, 0.22);
    background:
        radial-gradient(70% 130% at 10% -40%, rgba(72, 151, 255, 0.18) 0%, rgba(72, 151, 255, 0) 65%),
        radial-gradient(60% 120% at 92% -45%, rgba(44, 115, 255, 0.2) 0%, rgba(44, 115, 255, 0) 68%),
        linear-gradient(145deg, rgba(5, 11, 22, 0.9) 0%, rgba(7, 17, 31, 0.9) 42%, rgba(8, 21, 38, 0.88) 74%, rgba(11, 23, 48, 0.9) 100%);
    box-shadow:
        0 1px 0 rgba(160, 205, 255, 0.15) inset,
        0 0 48px rgba(39, 108, 255, 0.18),
        0 16px 34px rgba(2, 8, 22, 0.5);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.tk-premium-header::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(75, 155, 255, 0) 0%, rgba(75, 155, 255, 0.88) 48%, rgba(75, 155, 255, 0) 100%);
    filter: blur(1px);
    pointer-events: none;
}

.tk-premium-header .dropdown {
    position: relative;
    z-index: 2000;
}

.tk-premium-header .dropdown-menu {
    z-index: 2100;
}

.tk-premium-header .nav-link {
    color: rgba(230, 239, 255, 0.86);
    border-bottom: 2px solid transparent;
}

.tk-premium-header .nav-link:hover,
.tk-premium-header .nav-link.active {
    color: #dcecff !important;
    border-bottom-color: rgba(97, 173, 255, 0.74);
    text-shadow: 0 0 16px rgba(104, 178, 255, 0.28);
}

.tk-premium-header .btn-outline-light {
    border-color: rgba(175, 213, 255, 0.45);
    color: #e4f0ff;
    background: rgba(255, 255, 255, 0.02);
}

.tk-premium-header .btn-outline-light:hover {
    border-color: rgba(182, 219, 255, 0.72);
    background: rgba(143, 194, 255, 0.1);
    color: #ffffff;
}

.navbar-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

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

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

/* Card styling */
.card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

/* Button styling */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

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

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

/* Form styling */
.form-control, .form-select {
    background-color: #2c2c2c;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
}

.form-control:focus, .form-select:focus {
    background-color: #333;
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Table styling */
.table {
    color: var(--text-color);
    border-color: var(--border-color);
}

.table-dark {
    background-color: var(--card-bg-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

/* Alert styling */
.alert {
    border-radius: 4px;
    border: none;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

/* Trading dashboard specific styles */
.market-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.market-card .card-body {
    flex: 1;
}

.price-up {
    color: var(--success-color);
}

.price-down {
    color: var(--danger-color);
}

.signal-buy {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.signal-sell {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.signal-hold {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Chart container */
.chart-container {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dashboard stats */
.stat-card {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-title {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .stat-card .stat-icon {
        font-size: 2rem;
    }
}

/* Footer styling */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: #0a0a0a;
}

.tk-premium-footer {
    position: relative;
    margin-top: 0 !important;
    padding-top: 4.25rem !important;
    padding-bottom: 3.25rem !important;
    border-top: 1px solid rgba(114, 176, 255, 0.15);
    background:
        radial-gradient(85% 160% at 50% -40%, rgba(55, 130, 255, 0.18) 0%, rgba(55, 130, 255, 0) 66%),
        linear-gradient(180deg, #040913 0%, #040a14 20%, #030710 62%, #02050c 100%);
    box-shadow:
        0 -26px 48px rgba(2, 9, 24, 0.58),
        0 -2px 20px rgba(49, 124, 255, 0.12) inset;
}

.tk-premium-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 14%;
    right: 14%;
    height: 2px;
    background: linear-gradient(90deg, rgba(85, 164, 255, 0) 0%, rgba(85, 164, 255, 0.82) 50%, rgba(85, 164, 255, 0) 100%);
    filter: blur(1px);
    pointer-events: none;
}

.tk-premium-footer .container {
    position: relative;
    z-index: 1;
}

.tk-premium-footer p,
.tk-premium-footer li,
.tk-premium-footer a {
    color: rgba(225, 237, 255, 0.86) !important;
}

.tk-premium-footer a:hover {
    color: #9fd0ff !important;
    text-shadow: 0 0 14px rgba(98, 171, 255, 0.4);
}

.tk-premium-footer h5,
.tk-premium-footer .text-primary {
    color: #b9deff !important;
}

.tk-premium-footer hr {
    border-color: rgba(118, 177, 255, 0.2);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Feature Cards */
.feature-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    color: var(--primary-color);
}

/* Pricing Cards */
.pricing-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card.border-primary {
    border: 2px solid var(--primary-color) !important;
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: 15px;
    overflow: hidden;
}

/* Accordion Styling */
.accordion-button {
    border-radius: 8px !important;
    margin-bottom: 10px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.accordion-body {
    background-color: var(--card-bg-color);
    border-radius: 0 0 8px 8px;
    padding: 20px;
    color: #FFFFFF;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Arbitrage Betting Page Styles */
.bg-dark-subtle {
    background-color: #1a1e24;
}

/* Typography improvements */
.arbitrage-page p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.arbitrage-page .lead {
    font-size: 1.3rem;
    font-weight: 600;
}

.arbitrage-page h1,
.arbitrage-page h2,
.arbitrage-page h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.arbitrage-page .text-muted {
    color: #b0b0b0 !important;
    font-weight: 500;
}

/* Feature list improvements */
.arbitrage-page .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.arbitrage-page .feature-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.arbitrage-page .feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.arbitrage-page .feature-text {
    flex-grow: 1;
}

/* Tool list improvements */
.arbitrage-page .tool-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.arbitrage-page .tool-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.arbitrage-page .tool-icon {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Alert box improvements */
.arbitrage-page .alert-box {
    background-color: #1e2329;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.arbitrage-page .code-box {
    background-color: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    margin: 1.5rem 0;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonial improvements */
.arbitrage-page .testimonial-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    padding: 1.5rem;
}

.arbitrage-page .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.arbitrage-page .testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.2rem;
}

.arbitrage-page .testimonial-author {
    font-weight: 600;
    font-size: 1rem;
}

/* CTA button improvements */
.arbitrage-page .btn-primary {
    padding: 0.8rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 58, 51, 0.3);
}

.arbitrage-page .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(255, 58, 51, 0.4);
}

.arbitrage-page .cta-container {
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #1a1e24, #232830);
    margin: 3rem 0;
}

/* Section spacing */
.arbitrage-page .section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

.arbitrage-page hr {
    margin: 3rem 0;
    opacity: 0.2;
}

/* Display text responsive sizing */
.display-4 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .display-4 {
        font-size: 3.5rem;
    }

    .arbitrage-page .section {
        margin-bottom: 5rem;
    }

    .arbitrage-page .cta-container {
        padding: 3rem;
    }
}
