/**
 * Domma Address API - Product Microsite Styles
 *
 * Product-specific styles for the address lookup API microsite
 */

/* ========================================
   API METHOD BADGES
   ======================================== */
.badge-get {
    background-color: var(--dm-success, #28a745);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-post {
    background-color: var(--dm-primary, #007bff);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-patch {
    background-color: var(--dm-warning, #ffc107);
    color: #000;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-delete {
    background-color: var(--dm-danger, #dc3545);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   CODE BLOCKS
   ======================================== */
.code-block {
    position: relative;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d4d4d4;
}

.code-block code {
    background: transparent;
    padding: 0;
    border: none;
    color: #d4d4d4;
}

/* Copy Button */
.code-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #d4d4d4;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.code-copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.code-copy-btn.copied {
    background-color: var(--dm-success, #28a745);
    border-color: var(--dm-success, #28a745);
    color: white;
}

/* ========================================
   PRICING CARDS
   ======================================== */
.pricing-card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border: 2px solid var(--dm-primary, #007bff);
    position: relative;
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dm-primary, #007bff);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-pack-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-pack-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dm-primary, #007bff);
    margin-bottom: 0.25rem;
}

.pricing-pack-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-pack-credits {
    font-size: 1rem;
    color: var(--dm-gray-600);
    margin-bottom: 1rem;
}

.pricing-pack-per-lookup {
    font-size: 0.875rem;
    color: var(--dm-gray-500);
    margin-bottom: 1.5rem;
}

.pricing-pack-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ========================================
   DOCS PAGE - STICKY SIDEBAR
   ======================================== */
.docs-container {
    display: flex;
    gap: 2rem;
}

.docs-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.docs-content {
    flex: 1;
    min-width: 0;
}

.docs-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dm-gray-700);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.docs-nav-link:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-left-color: var(--dm-primary, #007bff);
}

.docs-nav-link.active {
    background-color: rgba(0, 123, 255, 0.1);
    border-left-color: var(--dm-primary, #007bff);
    color: var(--dm-primary, #007bff);
    font-weight: 600;
}

/* Mobile: Horizontal scrolling tabs */
@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
    }

    .docs-sidebar {
        position: static;
        flex: none;
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
        white-space: nowrap;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--dm-gray-300);
    }

    .docs-nav-link {
        display: inline-block;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .docs-nav-link:hover,
    .docs-nav-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--dm-primary, #007bff);
    }
}

/* ========================================
   ENDPOINT DOCUMENTATION
   ======================================== */
.endpoint-card {
    margin-bottom: 2rem;
    border-left: 4px solid var(--dm-primary, #007bff);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.endpoint-path {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dm-gray-800);
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.parameter-table th,
.parameter-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--dm-gray-300);
}

.parameter-table th {
    background-color: var(--dm-gray-100);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parameter-table .param-required {
    color: var(--dm-danger, #dc3545);
    font-weight: 600;
}

.parameter-table .param-optional {
    color: var(--dm-gray-500);
}

/* ========================================
   TABBED CODE EXAMPLES
   ======================================== */
.code-tabs {
    margin: 1rem 0;
}

.code-tab-headers {
    display: flex;
    border-bottom: 2px solid var(--dm-gray-300);
    margin-bottom: 0;
}

.code-tab-header {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--dm-gray-600);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.code-tab-header:hover {
    color: var(--dm-primary, #007bff);
    background-color: rgba(0, 123, 255, 0.05);
}

.code-tab-header.active {
    color: var(--dm-primary, #007bff);
    font-weight: 600;
}

.code-tab-header.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--dm-primary, #007bff);
}

.code-tab-content {
    display: none;
}

.code-tab-content.active {
    display: block;
}

/* ========================================
   FEATURE HIGHLIGHTS
   ======================================== */
.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dm-primary, #007bff), var(--dm-info, #17a2b8));
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-icon span[data-icon] {
    color: white;
}

/* ========================================
   STATS COUNTERS
   ======================================== */
.stats-section {
    background: rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dm-primary, #007bff);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-suffix {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dm-primary, #007bff);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-description {
    font-size: 0.875rem;
    opacity: 0.75;
}

/* ========================================
   DATA SOURCES BADGES
   ======================================== */
.data-source-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--dm-gray-50);
    border: 1px solid var(--dm-gray-200);
}

.data-source-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dm-primary, #007bff);
    border-radius: 8px;
    flex-shrink: 0;
}

.data-source-icon span[data-icon] {
    color: white;
}

.data-source-info {
    flex: 1;
}

.data-source-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.data-source-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dm-primary, #007bff);
}

/* ========================================
   COMPARISON TABLE (Free vs Premium)
   ======================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-card {
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--dm-gray-300);
}

.comparison-card.premium {
    border-color: var(--dm-primary, #007bff);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(23, 162, 184, 0.05));
}

.comparison-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comparison-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.comparison-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    margin-top: 0.125rem;
}

/* ========================================
   QUICK START STEPS
   ======================================== */
.quickstart-steps {
    counter-reset: step-counter;
}

.quickstart-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.quickstart-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dm-primary, #007bff), var(--dm-info, #17a2b8));
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

.quickstart-step-content {
    flex: 1;
}

.quickstart-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-professional {
    min-height: 500px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    position: relative;
}

.hero-professional::before {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title-lg {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--dm-gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.section-description-sm {
    font-size: 1.1rem;
    color: var(--dm-gray-600);
    max-width: 600px;
    margin: 0 auto 0.5rem;
}

/* ========================================
   DATA SOURCES SECTION
   ======================================== */
.data-sources-section {
    padding: 3rem 0;
}

/* ========================================
   GETTING STARTED SECTION
   ======================================== */
.getting-started-section {
    background: rgba(0, 0, 0, 0.2);
}

.getting-started-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    height: 100%;
}

.getting-started-card .card-body {
    padding: 2rem 1.5rem;
}

.getting-started-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--dm-primary), var(--dm-info));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.getting-started-icon span[data-icon] {
    color: white;
}

.getting-started-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.getting-started-description {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.85;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 992px) {
    .pricing-pack-price {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .pricing-card .card-body {
        padding: 1.5rem;
    }

    .pricing-pack-name {
        font-size: 1.25rem;
    }

    .pricing-pack-price {
        font-size: 1.75rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .quickstart-step {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}
