/* =========================
   MIND RUSH - ESTILOS DAS PÁGINAS
   CSS extraído dos arquivos PHP
========================= */

/* =========================
   POST.PHP - ESTILOS DO BLOG
========================= */

/* ===== TÍTULO PRINCIPAL ===== */
.post-main-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin: 0 auto 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
}

/* ===== BLOG POST CONTAINER ===== */
.blog-post-section {
    padding: 2rem 0 4rem;
    background: var(--bg-dark);
}

.blog-post {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(35, 35, 79, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== META INFORMAÇÕES ===== */
.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-date,
.post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.post-date svg,
.post-reading-time svg {
    color: var(--secondary);
}

/* ===== EXCERPT - Com espaçamento controlado ===== */
.post-excerpt {
    background: linear-gradient(135deg, rgba(41, 216, 228, 0.15), rgba(216, 50, 143, 0.1));
    border: 2px solid rgba(41, 216, 228, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.post-excerpt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.post-excerpt p {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
    text-align: center;
}

/* ===== CONTENT - Com espaçamento controlado ===== */
.post-content {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

/* ===== IMAGEM FLUTUANTE ===== */
.post-content-image {
    float: right;
    margin: 0.5rem 0 1.5rem 2rem;
    max-width: 350px;
    width: 40%;
    shape-outside: margin-box;
}

.post-content-image img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.post-content-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.post-main-content {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: justify;
}

/* Clearfix apenas no container pai */
.post-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Estilização dos elementos dentro do content */
.post-main-content h1,
.post-main-content h2,
.post-main-content h3,
.post-main-content h4,
.post-main-content h5,
.post-main-content h6 {
    color: var(--text);
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.post-main-content h1 { 
    font-size: 2.25rem; 
    color: var(--primary);
}

.post-main-content h2 { 
    font-size: 1.875rem; 
    color: var(--primary);
}

.post-main-content h3 { 
    font-size: 1.5rem; 
    color: var(--secondary);
    padding-left: 1rem;
    border-left: 3px solid var(--secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-main-content h4 { 
    font-size: 1.25rem; 
    color: var(--secondary);
}

.post-main-content h5 { font-size: 1.125rem; }
.post-main-content h6 { font-size: 1rem; }

.post-main-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-main-content p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
    margin-top: 0;
}

.post-main-content p:last-child {
    margin-bottom: 0;
}

.post-main-content strong,
.post-main-content b {
    color: var(--text);
    font-weight: 600;
}

.post-main-content em,
.post-main-content i {
    font-style: italic;
    color: var(--secondary);
}

.post-main-content ul,
.post-main-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-main-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-main-content blockquote {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(216, 50, 143, 0.1), rgba(41, 216, 228, 0.05));
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: var(--text);
    position: relative;
}

.post-main-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    opacity: 0.3;
}

.post-main-content code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--secondary);
}

.post-main-content pre {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-main-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
}

.post-main-content a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.post-main-content a:hover {
    color: var(--primary);
    text-decoration-thickness: 2px;
}

/* ===== FOOTER DO POST ===== */
.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-glass);
    clear: both;
}

.post-tags {
    margin-bottom: 3rem;
    text-align: center;
}

.tags-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tag {
    display: inline-block;
    background: rgba(41, 216, 228, 0.15);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin: 0.25rem 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(41, 216, 228, 0.3);
}

.tag:hover {
    background: rgba(41, 216, 228, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(41, 216, 228, 0.2);
}

/* ===== COMPARTILHAMENTO ===== */
.post-share {
    text-align: center;
}

.post-share h3 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    color: white;
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077B5, #005885);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #166fe5);
    color: white;
}

.share-btn.copy {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 2px solid var(--border-glass);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== NAVEGAÇÃO ===== */
.post-navigation {
    margin-top: 4rem;
    text-align: center;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* =========================
   PROJECT.PHP - ESTILOS DE PROJETO
========================= */

/* Estilos específicos para página do projeto */
.project-header {
    margin-bottom: 3rem;
    text-align: center;
}

.project-main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.project-content-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-description-full {
    width: 100%;
}

.project-description-full h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-description-full .content-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

.project-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.project-image-section {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

/* Hint de zoom */
.image-zoom-hint {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.image-container:hover .image-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.image-zoom-hint svg {
    width: 16px;
    height: 16px;
}

/* MODAL STYLES */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalImageIn 0.3s ease-out;
}

@keyframes modalImageIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-caption {
    margin-top: 1rem;
    text-align: center;
    max-width: 600px;
}

.modal-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Outros estilos do projeto */
.project-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-technical-info {
    background: rgba(35, 35, 79, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    padding: 2rem;
}

.project-technical-info h3 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item span {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.project-actions {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.project-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.project-cta {
    background: linear-gradient(135deg, rgba(216, 50, 143, 0.1), rgba(41, 216, 228, 0.1));
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    margin-top: 2rem;
}

.project-cta h3 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Evitar scroll quando modal está aberto */
body.modal-open {
    overflow: hidden;
}

/* =========================
   PROJECTS.PHP - ESTILOS DA LISTAGEM
========================= */

/* Estilos específicos para a página de projetos */
.project-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    position: relative;
}

.project-image-container .project-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 !important;
}


.project-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.read-more {
    transition: var(--transition);
}

.project-card:hover .read-more {
    color: var(--primary);
    transform: translateX(4px);
}

#projetos .card-content {
    padding: 1.5rem !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

#projetos .card-content h3 {
    margin-bottom: 0.5rem !important;
    flex-shrink: 0 !important;
}


/* =========================
   BLOG.PHP - CARDS SIMPLIFICADOS
========================= */
.blog-card-simple {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-card-simple:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-card-simple a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card-simple .blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card-simple .card-content {
  padding: 1.5rem;
  background: var(--bg-card);
}

.blog-card-simple .card-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

/* Mobile adjustments for blog.php */
@media (max-width: 480px) {
  .blog-card-simple .blog-image {
    height: 150px;
  }

  .blog-card-simple .card-content {
    padding: 1rem;
  }

  .blog-card-simple .card-content h3 {
    font-size: 1rem;
  }
}

/* =========================
   PROJECTS.PHP - CARDS SIMPLIFICADOS COM ICONS
========================= */
.project-card-simple {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  min-height: 200px;
}

.project-card-simple:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-card-simple .project-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(216, 50, 143, 0.3);
}

.project-card-simple .project-icon svg {
  width: 32px;
  height: 32px;
  color: white;
  stroke-width: 2;
}

.project-card-simple .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.project-card-simple .card-content h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  text-align: center;
}

.project-card-simple .btn-project {
  color: var(--primary) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: rgba(216, 50, 143, 0.1);
  border: 1px solid rgba(216, 50, 143, 0.3);
  transition: var(--transition);
  display: inline-block;
}

.project-card-simple .btn-project:hover {
  background: rgba(216, 50, 143, 0.2);
  color: var(--secondary) !important;
  transform: translateY(-1px);
}

/* Mobile adjustments for projects.php */
@media (max-width: 480px) {
  .project-card-simple {
    padding: 1.5rem 1rem;
    min-height: 180px;
  }

  .project-card-simple .project-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .project-card-simple .project-icon svg {
    width: 28px;
    height: 28px;
  }

  .project-card-simple .card-content h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .project-card-simple .btn-project {
    font-size: 0.8rem !important;
    padding: 0.6rem 1.2rem;
  }
}

/* =========================
   INDEX.PHP - ESTILOS INLINE EXTRAÍDOS
========================= */

/* Estilos para meta informações de projetos */
.project-meta-inline {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.project-meta-separator {
    margin: 0 0.5rem;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Post responsivo */
@media (max-width: 768px) {
    .post-main-title {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
    
    .breadcrumbs {
        margin-bottom: 2rem;
    }
    
    .blog-post {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .post-excerpt {
        padding: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .post-excerpt p {
        font-size: 1.125rem;
        text-align: left;
    }
    
    .post-content {
        margin-top: 1rem;
    }
    
    .post-content-image {
        float: none;
        margin: 1rem auto 1.5rem auto;
        max-width: 100%;
        width: 100%;
        display: block;
    }
    
    .post-main-content {
        font-size: 1rem;
        text-align: left;
    }
    
    .post-main-content h3 {
        padding-left: 0.75rem;
        font-size: 1.375rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .post-main-title {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .blog-post {
        padding: 1.5rem 1rem;
    }
    
    .post-excerpt {
        padding: 1rem;
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .post-content {
        margin-top: 0.75rem;
    }
    
    .post-main-content h1 { font-size: 1.875rem; }
    .post-main-content h2 { font-size: 1.625rem; }
    .post-main-content h3 { font-size: 1.375rem; }
    
    .post-tags {
        text-align: left;
    }
    
    .tags-label {
        display: block;
        margin-bottom: 1rem;
        text-align: center;
    }
}

/* Project responsivo */
@media (max-width: 1024px) {
    .project-details-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-image-section {
        position: static;
    }
    
    .image-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .project-header {
        margin-bottom: 2rem;
    }
    
    .project-content-layout {
        gap: 2rem;
    }
    
    .project-technical-info {
        padding: 1.5rem;
    }
    
    .project-cta {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-close {
        top: -2.5rem;
        width: 40px;
        height: 40px;
    }
    
    .modal-caption p {
        font-size: 1rem;
    }
    
    .image-zoom-hint {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .image-zoom-hint span {
        display: none;
    }
}

/* Projects listing responsivo */
@media (max-width: 768px) {
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .project-meta span:not(:first-child) {
        margin-left: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}