﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Login Partial - User Name Badge Styling */
.user-name-badge {
    font-size: 1.1rem !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
}

/* Secondary Toolbar Styling */
.bg-light {
    background-color: #f8f9fa !important;
}

nav.bg-light .nav-link {
    color: #495057;
    transition: all 0.2s ease;
}

    nav.bg-light .nav-link:hover {
        color: #212529;
        background-color: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }

    nav.bg-light .nav-link.active {
        color: #0d6efd;
    }

    nav.bg-light .nav-link span {
        font-size: 1rem;
    }

/* Add spacing after header */
header {
    margin-bottom: 1.5rem;
}

/* Ensure proper spacing on mobile */
@media (max-width: 576px) {
    .secondary-navbar-collapse {
        padding-top: 0.5rem;
    }
}

/* ========================================
   COMMON PAGE STYLES - Reusable Components
   ======================================== */

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

    .page-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #2d3748;
        margin-bottom: 0.5rem;
    }

    .page-header .subtitle {
        font-size: 1.1rem;
        color: #718096;
    }

/* Info Card - Reusable card component */
.info-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

    .info-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .info-card h5 {
        font-size: 1.3rem;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e2e8f0;
    }

/* Modern Buttons */
.btn-modern {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #040309 0%, #8B3E82 100%);
    color: white;
}

    .btn-primary-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(139, 62, 130, 0.3);
        color: white;
    }

.btn-success-gradient {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

    .btn-success-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
        color: white;
    }

.btn-danger-gradient {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
}

    .btn-danger-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(245, 101, 101, 0.3);
        color: white;
    }

/* Icon Boxes */
.icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #040309 0%, #8B3E82 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.icon-box-large {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    margin-bottom: 2rem;
}

    .empty-state h3 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 0.75rem;
    }

    .empty-state p {
        color: #718096;
        font-size: 1.1rem;
        margin-bottom: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

/* ========================================
   HOMEPAGE STYLES
   ======================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #040309 0%, #8B3E82 100%);
    color: white;
    padding: 100px 0 80px;
    margin: -20px -15px 0;
    text-align: center;
}

    .hero-section h1 {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 24px;
        line-height: 1.2;
    }

    .hero-section .lead {
        font-size: 1.4rem;
        margin-bottom: 40px;
        opacity: 0.95;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

.hero-cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: white;
    color: #8B3E82;
    border: none;
}

    .btn-hero-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        color: #8B3E82;
    }

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

    .btn-hero-secondary:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #2d3748;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

    .feature-card:hover {
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        transform: translateY(-5px);
    }

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #040309 0%, #8B3E82 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2d3748;
}

.feature-card p {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 0;
}

/* API Section */
.api-section {
    background: #f7fafc;
}

.code-preview {
    background: #1a202c;
    border-radius: 12px;
    padding: 32px;
    color: #e2e8f0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin-top: 32px;
}

    .code-preview .comment {
        color: #68d391;
    }

    .code-preview .string {
        color: #fbd38d;
    }

    .code-preview .keyword {
        color: #90cdf4;
    }

/* Pricing */
.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

    .pricing-card:hover {
        border-color: #8B3E82;
        box-shadow: 0 20px 60px rgba(139, 62, 130, 0.2);
        transform: translateY(-5px);
    }

.price {
    font-size: 4rem;
    font-weight: 700;
    color: #8B3E82;
    margin: 24px 0;
}

.price-unit {
    font-size: 1.2rem;
    color: #718096;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    text-align: left;
}

    .pricing-features li {
        padding: 12px 0;
        border-bottom: 1px solid #e2e8f0;
        color: #4a5568;
    }

        .pricing-features li:last-child {
            border-bottom: none;
        }

        .pricing-features li::before {
            content: "✓";
            color: #48bb78;
            font-weight: bold;
            margin-right: 12px;
        }

/* FAQ */
.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.faq-answer {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #040309 0%, #8B3E82 100%);
    color: white;
    padding: 60px 0;
    margin: 0 -15px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: #f7fafc;
    text-align: center;
    padding: 80px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .price {
        font-size: 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}
