/* Custom CSS for Sloth Finance */

:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn-cta {
    font-size: 1.25rem;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Transaction List */
.transaction-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.transaction-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.transaction-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.transaction-category {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Forms */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
}

/* Charts */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Filters */
.filter-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.faq-question {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
    
    .dashboard-header {
        padding: 30px 0;
    }
}

/* Admin Styles */
.admin-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.admin-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-left: 4px solid #dc3545;
}

/* Dark theme for charts */
.plotly-dark {
    background-color: #2d3436 !important;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pain Points Section */
.pain-points-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.pain-points-card {
    background: white;
    border-radius: 15px;
    padding: 40px 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.pain-point {
    display: flex;
    align-items: center;
    background: #fff5f5;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

.pain-point i {
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.pain-point p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* Solution Section */
.solution-section {
    padding: 80px 0;
    background: white;
}

.solution-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px 25px;
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.solution-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    transform: translateY(-5px);
}

.solution-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.example-row {
    padding: 40px 0;
}

.example-content {
    padding: 20px;
}

.step-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.example-row img {
    border: 3px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-row img:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.step-bubble {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #28a745;
    border-radius: 20px;
    padding: 25px 30px;
    position: relative;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    transition: all 0.3s ease;
}

.step-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.25);
    border-color: #20c997;
}

.step-bubble::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #28a745;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* CTA Section Mid */
.cta-section-mid {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.cta-buttons {
    margin: 30px 0;
}

/* Responsive adjustments for landing page */
@media (max-width: 768px) {
    .pain-points-card {
        padding: 30px 20px;
    }
    
    .pain-point {
        padding: 12px 15px;
    }
    
    .solution-card {
        margin-bottom: 20px;
    }
    
    .example-row {
        padding: 20px 0;
    }
    
    .example-row img {
        margin-bottom: 30px;
    }
    
    .step-badge {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
    
    /* Mobile button styling for hero section */
    .hero-section .btn {
        display: block;
        width: 100%;
        margin: 0 auto 15px auto;
        max-width: 280px;
    }
    
    .hero-section .btn:last-child {
        margin-bottom: 0;
    }
}

/* Blog Styles */
.blog-header {
    padding: 40px 0;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.9rem;
}

.blog-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.blog-card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.blog-cta {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

/* Blog Article Detail */
.blog-article-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    padding: 80px 0 40px 0;
    color: white;
}

.blog-featured-image {
    max-height: 500px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.blog-article-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.blog-article-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-article-content p {
    margin-bottom: 1.5rem;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-article-content li {
    margin-bottom: 0.5rem;
}

.blog-article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

.blog-article-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-article-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 30px 0;
}

.blog-share {
    margin-top: 40px;
}

.blog-related-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blog-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-related-card img {
    border-radius: 8px;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.blog-related-card h5 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.blog-related-card h5 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-related-card h5 a:hover {
    color: var(--primary-color);
}

.blog-article-cta {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Breadcrumb styling for blog */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive blog styles */
@media (max-width: 768px) {
    .blog-article-header {
        padding: 50px 0 30px 0;
    }
    
    .blog-article-header h1 {
        font-size: 2rem;
    }
    
    .blog-article-content {
        font-size: 1rem;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-featured-image {
        max-height: 300px;
    }
}

/* Launch Countdown Banner */
.countdown-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: bannerPulse 2s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 6px 25px rgba(255,107,107,0.4); }
}

.countdown-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.countdown-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.countdown-text {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-text .fire-icon {
    font-size: 1.3rem;
    animation: flicker 1.5s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.countdown-timer {
    display: flex;
    gap: 15px;
    align-items: center;
}

.countdown-unit {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
    display: block;
    margin-top: 4px;
}

.countdown-cta {
    background: white;
    color: #ff6b6b;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 0.95rem;
}

.countdown-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    color: #ee5a6f;
}

/* Pricing Sale Styles */
.price-sale-container {
    position: relative;
}

.price-original {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
    opacity: 0.7;
    margin-bottom: 5px;
}

.price-amount {
    position: relative;
}

.sale-badge {
    position: absolute;
    top: -10px;
    right: -15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255,107,107,0.4);
    animation: saleBounce 2s ease-in-out infinite;
}

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

/* Responsive countdown */
@media (max-width: 768px) {
    .countdown-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .countdown-text {
        font-size: 0.95rem;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-unit {
        min-width: 50px;
        padding: 6px 10px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .countdown-cta {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
}
