/* EasyTrashMail - API Documentation Page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: white;
    min-height: 100vh;
    color: #1e293b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 3rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Notice Section */
.notice-section {
    padding: 2rem 0 3rem;
}

.notice-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.notice-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin-bottom: 1.5rem;
}

.notice-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.notice-description {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
}

/* Endpoints Section */
.endpoints-section {
    padding: 4rem 0;
}

.endpoints-grid {
    display: grid;
    gap: 1.5rem;
}

.endpoint-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.endpoint-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.http-method {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.http-method.get {
    background: #dbeafe;
    color: #1e40af;
}

.http-method.post {
    background: #dcfce7;
    color: #166534;
}

.http-method.delete {
    background: #fee2e2;
    color: #991b1b;
}

.http-method.patch {
    background: #fef3c7;
    color: #92400e;
}

.endpoint-path {
    font-family: 'Fira Code', monospace;
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 600;
}

.endpoint-description {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.code-block {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Code Example Section */
.code-example-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.code-tabs {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #f1f5f9;
}

.tab-btn.active {
    background: white;
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.tab-content pre {
    margin: 0;
    background: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.tab-content code {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0 6rem;
}

.cta-card {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 4rem;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-button.primary {
    background: white;
    color: #3b82f6;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 6rem 0 2rem;
        margin-top: 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Notice Section Mobile */
    .notice-section {
        padding: 1.5rem 0 2rem;
    }
    
    .notice-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .notice-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .notice-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .notice-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .notice-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    /* Features Section Mobile */
    .features-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .feature-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-description {
        font-size: 0.875rem;
    }
    
    /* Endpoints Section Mobile */
    .endpoints-section {
        padding: 3rem 0;
    }
    
    .endpoints-grid {
        gap: 1rem;
    }
    
    .endpoint-card {
        padding: 1rem;
    }
    
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .http-method {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .endpoint-path {
        font-size: 0.8125rem;
        word-break: break-all;
        line-height: 1.4;
    }
    
    .endpoint-description {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .code-block {
        padding: 0.75rem;
        border-radius: 6px;
    }
    
    .code-block code {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    /* Code Example Section Mobile */
    .code-example-section {
        padding: 3rem 0;
    }
    
    .code-tabs {
        border-radius: 8px;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tab-buttons::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 2px);
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .tab-content pre {
        padding: 1rem;
        border-radius: 6px;
        font-size: 0.75rem;
    }
    
    .tab-content code {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 3rem 0 4rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        padding: 5rem 0 1.5rem;
        margin-top: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .notice-card {
        padding: 1.25rem;
    }
    
    .notice-title {
        font-size: 1.25rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .endpoint-card {
        padding: 0.875rem;
    }
    
    .endpoint-path {
        font-size: 0.75rem;
    }
    
    .code-block code {
        font-size: 0.6875rem;
    }
    
    .tab-content pre {
        padding: 0.875rem;
    }
    
    .tab-content code {
        font-size: 0.6875rem;
    }
    
    .cta-card {
        padding: 1.5rem 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 0.9375rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .tab-btn {
        padding: 1rem 0.5rem;
        min-height: 44px; /* iOS touch target minimum */
    }
    
    .cta-button {
        min-height: 48px;
        padding: 1rem 2rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover {
        transform: none;
    }
    
    .endpoint-card:hover {
        transform: none;
    }
}


