/**
 * MTEC Blocks - Frontend Styles
 * Mergulho Técnico Custom Blocks Frontend Styling
 */

/* General Block Styling */
.mtec-block {
    margin: 20px 0;
    position: relative;
}

.mtec-block.mtec-block-full-width {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Courses Listing Block */
.mtec-courses-listing {
    padding: 40px 20px;
    background: #ffffff;
}

.mtec-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mtec-course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.mtec-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.mtec-course-card.hover-effect {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.mtec-course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mtec-course-content {
    padding: 20px;
}

.mtec-course-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.mtec-course-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.mtec-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mtec-course-price {
    font-size: 20px;
    font-weight: 700;
    color: #dc2626;
}

.mtec-course-duration {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mtec-course-book-btn {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
    cursor: pointer;
}

.mtec-course-book-btn:hover {
    background: #b91c1c;
}

.mtec-course-details-toggle {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.mtec-course-details-toggle:hover {
    color: #b91c1c;
}

.mtec-course-details-toggle.expanded::after {
    content: ' ▲';
}

.mtec-course-details-toggle:not(.expanded)::after {
    content: ' ▼';
}

.mtec-course-details {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* Trips Listing Block */
.mtec-trips-listing {
    padding: 40px 20px;
    background: #f8f9fa;
}

.mtec-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mtec-trip-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.mtec-trip-card:nth-child(1) { animation-delay: 0.1s; }
.mtec-trip-card:nth-child(2) { animation-delay: 0.2s; }
.mtec-trip-card:nth-child(3) { animation-delay: 0.3s; }
.mtec-trip-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mtec-trip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.mtec-trip-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.mtec-trip-content {
    padding: 25px;
}

.mtec-trip-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.mtec-trip-description {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mtec-trip-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mtec-trip-price {
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
}

.mtec-trip-duration {
    font-size: 14px;
    color: #6b7280;
}

.mtec-trip-book-btn {
    width: 100%;
    background: #1e40af;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
    cursor: pointer;
}

.mtec-trip-book-btn:hover {
    background: #1d4ed8;
}

.mtec-trip-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mtec-trip-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mtec-trip-gallery img:hover {
    transform: scale(1.1);
}

/* Hero Section Block */
.mtec-hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.mtec-hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.mtec-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.mtec-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.mtec-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.mtec-hero-title.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.mtec-hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.mtec-hero-subtitle.animate-fade-in {
    opacity: 0.9;
    transform: translateY(0);
}

.mtec-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.mtec-hero-btn {
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mtec-hero-btn-primary {
    background: #dc2626;
    color: white;
}

.mtec-hero-btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.mtec-hero-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.mtec-hero-btn-secondary:hover {
    background: white;
    color: #1a1a1a;
}

/* Incentives Bar Block */
.mtec-incentives-bar {
    background: #dc2626;
    color: white;
    padding: 15px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mtec-incentives-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mtec-incentives-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mtec-incentive-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.8;
}

.mtec-incentive-item.active {
    opacity: 1;
    transform: scale(1.05);
}

.mtec-incentive-item:hover {
    opacity: 1;
    transform: scale(1.02);
}

.mtec-incentive-icon {
    font-size: 18px;
}

/* Lightbox */
.mtec-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mtec-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.mtec-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
}

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

.mtec-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.mtec-modal-close {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

/* Notifications */
.mtec-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc2626;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mtec-notification.show {
    transform: translateX(0);
}

.mtec-notification.error {
    background: #dc2626;
}

.mtec-notification.success {
    background: #16a34a;
}

.mtec-notification.warning {
    background: #d97706;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mtec-courses-grid,
    .mtec-trips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mtec-hero-title {
        font-size: 32px;
    }
    
    .mtec-hero-subtitle {
        font-size: 16px;
    }
    
    .mtec-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .mtec-incentives-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .mtec-trip-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}