/* Variáveis e Configurações Básicas */
:root {
    --primary-blue: #1D4ED8;
    --accent-blue: #3B82F6;
    --dark-gray: #1F2937;
    --light-gray: #F9FAFB;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
}

.container {
    max-width: 1110px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* --- Cabeçalho e Navegação --- */
.header {
    background-color: #202738;
    top: 0;
    z-index: 10;
    position: sticky;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo span {
    color: var(--accent-blue);
}

.nav-menu a {
  background-color: #ff6b00; /* cor da marca */
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.nav-menu a:hover {
    background: #cf4f0a;
}


.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #4B5563;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    color: #6B7280;
    max-width: 640px;
    margin: 0 auto;
}

/* --- Seção de Filtros --- */
.filters {
    margin-bottom: 2.5rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filters h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 9999px; /* rounded-full */
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.default-filter {
    background-color: #E5E7EB; /* gray-200 */
    color: var(--dark-gray);
}
.default-filter:hover {
    background-color: #D1D5DB; /* gray-300 */
}

.active-filter {
    background-color: #fd6b1f;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.active-filter:hover {
    background-color: #cf4f0a;
}

/* --- Lista de Tutoriais (Grid) --- */
.tutorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tutorial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Cartão do Tutorial --- */
.tutorial-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-top: 4px solid;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-header svg {
    width: 2rem;
    height: 2rem;
}

.card-header span {
    font-size: 0.875rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    color: #6B7280;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.card-link {
    color: #fd6b1f;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.card-link:hover {
    color: #cf4f0a;
}

.card-link svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
}

/* Cores específicas para as bordas do cartão */
.border-email { border-color: #fd6b1f; color: #140903; } /* Azul Accent */
.border-registro { border-color: #fd6b1f; color: #140903; } /* Índigo */
.border-backup { border-color: #fd6b1f; color: #140903; } /* Verde */
.border-servidor { border-color: #fd6b1f; color: #140903; } /* Vermelho */

/* --- Rodapé (Footer) --- */
.footer {
    background-color: var(--dark-gray);
    color: white;
    margin-top: 3rem;
    padding-top: 2.5rem;
}

.footer-content {
    padding-bottom: 2.5rem;
    border-top: 1px solid #374151; /* gray-700 */
}

.footer-grid {
    display: flex;
    justify-content: space-around;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .nav-menu {
        display: flex;
        gap: 2rem;
    }
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 600px) {
    .modal-content {
    padding: 15px;
    }
    .modal-body img, .modal-body video {
    max-height: 300px;
    }
}

.footer h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fd6b1f;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #9CA3AF; /* gray-400 */
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer a:hover {
    color: #fd6b1f;
}

.footer p {
    color: #9CA3AF;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons i {
    width: 1.5rem;
    height: 1.5rem;
    fill: #9CA3AF;
    transition: fill 0.15s;
}

.social-icons a:hover i {
    color: #fd6b1f;
}

.copyright {
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280; /* gray-500 */
}

/* Classes de utilidade para ocultar/mostrar (JS usará) */
.hidden-card {
    display: none;
}

/* ==== MODAL ==== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    padding: 30px;
    position: relative;
    animation: fadeIn 0.3s ease;
    max-height: 800px;
    overflow: auto;
    clip-path: inset(0 round 12px);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ff6b35;
}

.modal-header {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 30px;
    color: #333;
}

.modal-content p {
    font-size: 18px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;  

}

.modal-body img, 
.modal-body video {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 15px;       /* arredonda o container */
    overflow: hidden;          /* impede o iframe de vazar */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}