/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #4a5568;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

header .subtitle {
    color: #718096;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.main-card, .result-card, .error-card, .services-card, .stats-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Input Area */
.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

.input-icon {
    background: #4c6fff;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

#urlInput {
    flex: 1;
    padding: 0 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    height: 60px;
}

#urlInput:focus {
    outline: none;
    border-color: #4c6fff;
    box-shadow: 0 0 0 3px rgba(76, 111, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #4c6fff 0%, #3b52d4 100%);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 111, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Service Selector */
.service-selector {
    text-align: center;
}

.service-selector p {
    color: #718096;
    margin-bottom: 15px;
}

.service-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #4c6fff;
}

/* Result Card */
.result-url {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #2d3748;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.result-info {
    display: flex;
    gap: 30px;
    color: #718096;
    font-size: 14px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e2e8f0;
    border-top-color: #4c6fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-detail {
    color: #718096;
    font-size: 14px;
    margin-top: 10px;
}

/* Error Card */
.error-card {
    text-align: center;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
}

.error-card h3 {
    color: #c53030;
    margin-bottom: 15px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: #f7fafc;
    transition: all 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
    color: white;
}

.linkvertise { background: #0077ff; }
.lootlinks { background: #ff6b6b; }
.delta { background: #4ecdc4; }
.adfocus { background: #45b7d1; }
.workink { background: #96ceb4; }
.paster { background: #feca57; }
.boost { background: #ff9ff3; }
.mboost { background: #54a0ff; }

/* Stats */
.stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
}

.stat h4 {
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat p {
    font-size: 28px;
    font-weight: bold;
    color: #4a5568;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

footer a {
    color: #4c6fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
}

.api-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #4c6fff;
}

.api-item code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-icon {
        width: 100%;
        height: 50px;
        border-radius: 10px;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .stats-card {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .service-buttons {
        flex-direction: column;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-card, .result-card, .services-card {
    animation: fadeIn 0.5s ease-out;
}

/* Dark Mode (opcional) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    }
    
    .container {
        background: rgba(26, 32, 44, 0.95);
        color: #e2e8f0;
    }
    
    .main-card, .result-card, .services-card, .stats-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    #urlInput {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .btn-secondary {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
}