/* ============================================ */
/* Amor e Salvação - Estilos Customizados       */
/* ============================================ */

/* Variáveis */
:root {
    --primary-color: #6f42c1;
    --secondary-color: #4a2d8a;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ============================================ */
/* HERO SECTION                                */
/* ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

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

/* ============================================ */
/* CARDS                                       */
/* ============================================ */
.content-card {
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* ============================================ */
/* FORMULÁRIO                                  */
/* ============================================ */
.form-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

.is-valid {
    border-color: var(--success-color) !important;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
}

/* Preview de Imagem */
.preview-container {
    position: relative;
    margin-top: 1rem;
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-placeholder {
    color: #6c757d;
    font-size: 1rem;
}

.preview-placeholder i {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Preview de Áudio */
.audio-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.audio-preview audio {
    width: 100%;
}

/* Contador de Caracteres */
.char-counter {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    text-align: right;
}

/* Tags Input */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-badge {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-badge .btn-close {
    font-size: 0.5rem;
}

/* ============================================ */
/* TABS                                        */
/* ============================================ */
.nav-tabs .nav-link {
    color: #495057;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background: transparent;
}

.tab-content {
    padding-top: 1.5rem;
}

/* Progresso do Formulário */
.progress {
    height: 0.5rem;
    border-radius: 1rem;
    margin: 1rem 0;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    transition: width 0.5s ease;
}

/* ============================================ */
/* BOTÕES                                      */
/* ============================================ */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a3f8e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* ============================================ */
/* BADGES                                      */
/* ============================================ */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 1rem;
}

.badge-iniciante {
    background-color: #28a745;
    color: white;
}

.badge-intermediario {
    background-color: #ffc107;
    color: #212529;
}

.badge-avancado {
    background-color: #dc3545;
    color: white;
}

/* ============================================ */
/* ALERTS                                      */
/* ============================================ */
.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* ============================================ */
/* SEARCH AND FILTERS                          */
/* ============================================ */
.search-box {
    position: relative;
}

.search-box .bi-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    padding-left: 2.5rem;
}

/* ============================================ */
/* FOOTER                                      */
/* ============================================ */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: auto;
}

footer a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: #ffc107;
    text-decoration: underline;
}

/* ============================================ */
/* RESPONSIVIDADE                              */
/* ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}

/* ============================================ */
/* ANIMAÇÕES                                   */
/* ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================ */
/* LOADING                                     */
/* ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid #e9ecef;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================ */
/* UTILITÁRIOS                                 */
/* ============================================ */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* ============================================ */
/* HOME PAGE                                   */
/* ============================================ */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .btn-light {
    color: #667eea;
    font-weight: 600;
}

.hero-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
}

.rounded-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

/* Empty State */
.text-muted .bi {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}
