/* === API BANNER === */
.api-banner-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 50%, #fee2e2 100%);
    position: relative;
    overflow: hidden;
}

.api-banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.api-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 40px 0;
}

/* === TEXTO DO BANNER === */
.banner-text {
    max-width: 100%;
    text-align: left;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1e293b;
}

.highlight-text {
    color: #f59e0b;
    font-weight: 900;
}

.banner-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

/* === BENEFÍCIOS === */
.banner-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 400px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-weight: 500;
}

.benefit-icon {
    font-size: 1.2rem;
}

/* === AÇÕES DO BANNER === */
.banner-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4aa, #00b89a);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* === VISUAL DA API === */
.banner-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.api-mockup {
    width: 100%;
    max-width: 450px;
}

.code-editor {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.editor-header {
    background: #f8fafc;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.editor-buttons {
    display: flex;
    gap: 8px;
}

.editor-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.btn-close { background: #ef4444; }
.btn-minimize { background: #f59e0b; }
.btn-maximize { background: #10b981; }

.editor-title {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155;
}

.code-line {
    margin-bottom: 8px;
}

.code-method {
    color: #ef4444;
    font-weight: 700;
}

.code-url {
    color: #60a5fa;
    margin-left: 8px;
}

.code-key {
    color: #a78bfa;
}

.code-value {
    color: #059669;
    margin-left: 8px;
}

.response-indicator {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

.response-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-code {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.status-code.success {
    background: #10b981;
    color: white;
}

.status-text {
    color: #10b981;
    font-weight: 500;
}

/* === ESTATÍSTICAS DO BANNER === */
.banner-stats {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
    flex: 1;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 8px;
    font-family: 'Orbitron', monospace;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* === EFEITOS DE CONEXÃO E SOCKET === */
.connection-status {
    position: absolute;
    top: -10px;
    right: 20px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.connection-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.connection-text {
    font-weight: 600;
    font-size: 0.75rem;
}

.api-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.7rem;
    opacity: 0.9;
}

.api-endpoint {
    font-weight: 500;
}

.api-latency {
    color: #a7f3d0;
    font-weight: 600;
}

.socket-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #22c55e;
}

.socket-pulse {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: socketPulse 1.5s infinite;
}

@keyframes socketPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.transmission-line {
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.data-flow {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    position: relative;
    overflow: hidden;
}

.data-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
    animation: dataTransmission 2s infinite;
}

@keyframes dataTransmission {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.transmission-text {
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.success-checkmark {
    margin-left: 8px;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
    animation: checkmarkAppear 0.5s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes waveExpand {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.7;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* Responsividade para efeitos */
@media (max-width: 768px) {
    .connection-status {
        position: static;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .api-info {
        align-items: center;
    }
}

/* === RESPONSIVIDADE === */
@media (max-width: 968px) {
    .api-banner-section {
        min-height: 80vh;
        padding: 40px 0;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .banner-stats {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .api-banner-section {
        min-height: 70vh;
        padding: 20px 0;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        min-height: auto;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-stats {
        justify-content: center;
    }
    
    .banner-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .api-banner-container {
        padding: 0 15px;
    }
    
    .banner-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-stats {
        flex-direction: column;
        gap: 20px;
    }
}
