:root {
    --primary: #3490dc;
    --primary-dark: #2779bd;
    --secondary: #38c172;
    --dark: #1a202c;
    --gray-dark: #2d3748;
    --gray: #4a5568;
    --gray-light: #e2e8f0;
    --light: #f7fafc;
    --nav-link-dark: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.hero {
    padding: 6rem 0;
    background: linear-gradient(50deg, #fff5f5 0%, #3b82f6 100%);
}

.nav-link {
    color: var(--nav-link-dark) !important;
    font-weight: 500;
}

.feature-card {
    background-color: var(--light);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(52, 144, 220, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
}

.api-demo {
    padding: 6rem 0;
    background-color: var(--gray-dark);
    color: white;
}

.code-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s;
}

.code-tab.active {
    background-color: var(--primary);
}

.code-examples {
    background-color: #1e1e3f;
    border-radius: 0.5rem;
    overflow: hidden;
}

.pricing-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--gray);
}

.pricing-feature svg {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    color: var(--secondary);
}

.subscription-option {
    background-color: var(--light);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    height: 100%;
}

.subscription-option:hover {
    transform: translateY(-5px);
}

.subscription-option svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--primary);
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--primary);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--dark);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
}

/* AdSense Specific Styles */
.ad-section {
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ad-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.banner-ad {
    min-height: 90px;
    max-width: 970px;
    width: 100%;
}

.rectangle-ad {
    width: 300px;
    height: 250px;
}

.sidebar-ad {
    width: 160px;
    height: 600px;
    position: sticky;
    top: 20px;
}

.ad-placeholder {
    width: 100%;
/*    height: 100%;*/
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: #adb5bd;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.ad-label {
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-ad {
        min-height: 50px;
        max-width: 320px;
    }
    
    .rectangle-ad {
        width: 300px;
        height: 250px;
    }
}

@media (max-width: 320px) {
    .banner-ad {
        max-width: 280px;
    }
}

/* Ensure proper spacing around ads */
.ad-section + section,
section + .ad-section {
    border-top: none;
}

.api-demo .sticky-top {
    top: 20px !important;
}
/* Enhanced Code Tabs */
.code-tabs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.code-tabs {
    border: none;
    gap: 0.5rem;
}

.code-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.code-tab:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.code-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(52, 144, 220, 0.3);
}

.copy-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* Enhanced Code Examples */
.code-examples {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a5a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.code-examples::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.code-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.code-title {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.code-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.code-examples pre {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow-x: auto;
}

.code-examples code {
    font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Response Section */
.response-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* API Info Cards */
.api-info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.api-info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.api-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(52, 144, 220, 0.3);
}

.api-info-icon i {
    font-size: 1.5rem;
    color: white;
}

.api-info-card h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.api-info-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .code-tabs-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .code-tabs {
        justify-content: center;
    }
    
    .code-tab {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    
    .copy-btn {
        align-self: center;
    }
    
    .code-header {
        flex-direction: column;
        align-items: start;
        text-align: left;
    }
    
    .code-examples pre {
        padding: 1rem;
    }
    
    .code-examples code {
        font-size: 0.8rem;
    }
}

/* Custom scrollbar for code blocks */
.code-examples pre::-webkit-scrollbar {
    height: 8px;
}

.code-examples pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.code-examples pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.code-examples pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}