/**
 * Estilos Principais - Oridoh
 * Rede Social de Iniciações Religiosas/Cultuais
 */

/* Variáveis CSS */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ffd700;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset e Base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

/* Utilitários */
.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.shadow-custom {
    box-shadow: var(--shadow);
}

/* Navegação */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.floating-elements {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.floating-card {
    animation: float-card 4s ease-in-out infinite;
    transform-origin: center;
    max-width: 300px;
    margin: 0 auto 1rem;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Feature Cards */
.feature-card {
    padding: 2rem 1rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Tradition Cards */
.tradition-card {
    transition: var(--transition);
    height: 100%;
}

.tradition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.tradition-icon {
    margin-bottom: 1rem;
}

/* Testimonial Cards */
.testimonial-card {
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-content {
    position: relative;
}

.testimonial-author {
    margin-top: auto;
}

/* Profile */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 0;
    color: white;
}

.profile-avatar {
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 1rem;
}

.profile-stat {
    flex: 1;
}

.profile-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.profile-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

/* Posts */
.post-card {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
}

.post-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-interactions {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.interaction-buttons .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.interaction-buttons .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.star-btn.active {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
}

.sword-btn.active {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

/* Comments */
.comments-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.comment-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comment-item:last-child {
    border-bottom: none;
}

/* Hashtags */
.hashtag-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.hashtag-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

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

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

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

/* Footer */
footer {
    margin-top: auto;
}

footer .social-links a {
    transition: var(--transition);
}

footer .social-links a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .floating-elements {
        margin-top: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .profile-header {
        text-align: center;
        padding: 2rem 0;
    }
    
    .profile-stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .feature-card,
    .tradition-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .floating-card {
        font-size: 0.875rem;
    }
}

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

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

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

