/* Custom CSS for Vivência Digital */

:root {
    --primary-green: #4CAF50;
    --light-blue: #81C784;
    --light-beige: #F5F5DC;
    --silver: #C0C0C0;
    --dark-gray: #333333;
    --light-gray: #F8F9FA;
    --green-dark: #008080;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Custom Bootstrap Colors */
.text-primary {
    color: var(--primary-green) !important;
}

.text-green-dark {
    color: var(--green-dark) !important;
}

.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

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

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

.bg-primary {
    background-color: var(--primary-green) !important;
}

.badge.bg-primary {
    background-color: var(--primary-green) !important;
}

.badge.bg-success {
    background-color: var(--light-blue) !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    background: url('../img/bannervivenciatrans.png') no-repeat center center;
    background-size: cover;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    color: white;
}

.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="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Blog Cards */
.blog-card .card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

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

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

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

.blog-meta {
    font-size: 0.875rem;
}

.social-share a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-share a:hover {
    color: var(--primary-green) !important;
}

/* Sidebar */
.sidebar .widget .card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.sidebar .widget .card:hover {
    transform: translateY(-2px);
}

.author-avatar img {
    border: 4px solid var(--light-beige);
    transition: transform 0.3s ease;
}

.author-avatar img:hover {
    transform: scale(1.05);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Search Box */
.search-box .form-control {
    border-radius: 25px;
    border: 2px solid var(--light-gray);
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.search-box .btn {
    border-radius: 25px;
    padding: 12px 20px;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-control-lg {
    padding: 16px 20px;
    font-size: 1.1rem;
}

/* Newsletter Widget */
#newsletter .card {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-blue) 100%) !important;
}

/* Contact Section */
#contato .card {
    border-radius: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.footer .social-links a {
    transition: all 0.3s ease;
}

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

/* Pagination */
.pagination .page-link {
    color: var(--primary-green);
    border-color: #dee2e6;
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .search-box {
        margin-bottom: 1rem;
    }
    
    .blog-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 10px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 10px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-green), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .sidebar {
        display: none;
    }
    
    .container {
        max-width: 100%;
    }
}

