/* ===== styles.css - CSS COMPARTILHADO ===== */

/* Reset e Fonte */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: #fff; 
    color: #333; 
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #ebf76a;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 60px;
    width: 100%;
}

.logo img {
    width: 250px;
    height: auto;
    margin-top: -5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 15px;
}

nav a { 
    text-decoration: none; 
    color: #333; 
    transition: color 0.3s; 
}

nav a:hover { 
    color: #ebf76a; 
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 20px;
}

.social-icons a {
    color: #C5F527;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #7aa0b5;
}

/* ===== GALLERY (Home) ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    grid-auto-flow: row dense;
    gap: 0px;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { 
    transform: scale(1.05); 
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(197, 245, 39, 0.85));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before { 
    opacity: 1; 
}

.gallery-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.gallery-info {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    width: 90%;
    pointer-events: none;
}

.gallery-item:hover .gallery-info { 
    opacity: 1; 
}

.gallery-info h3 { 
    font-size: 1.3rem; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
    margin-bottom: 5px; 
}

.gallery-info p { 
    font-size: 0.9rem; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
}

/* ===== PÁGINA INTERNA (Books) ===== */
.internal-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #8faf5d;
    margin-bottom: 5px;
}

.page-title h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #b8c7e0;
}

.image-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.stack-item {
    width: 100%;
    text-align: center;
}

.stack-item img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* ===== PÁGINA HOME (ilustrações) ===== */
.illustrations-container {
    position: relative;
    width: 80%;
    max-width: 1200px;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.character {
    width: 45%;
    height: 80%;
    background-color: #f4f4f4;
    border: 2px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 0.8rem;
    text-align: center;
    border-radius: 10px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
    width: 100%;
}

.back-to-top {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-to-top:hover {
    color: #ebf76a;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        gap: 15px;
    }

    .logo img {
        width: 150px;
        margin-top: 0;
    }

    nav {
        gap: 15px;
        font-size: 0.7rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-left: 0;
        margin-top: 10px;
    }

    .social-icons {
        margin-left: 0;
        margin-top: 10px;
    }

    .gallery-grid {
        grid-auto-rows: 250px;
    }

    .page-title h1 { 
        font-size: 1.5rem; 
    }

    .page-title h2 { 
        font-size: 1.1rem; 
    }

    .stack-item img { 
        max-width: 100%; 
    }

    .illustrations-container {
        width: 90%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

 
/* ====== PARÁGRAFOS ====== */
p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #000000;
  margin-bottom: 1.5em;
  font-weight: 400;
}

/* ====== LINKS ====== */
a {
  font-family: 'Montserrat', sans-serif;
  color: #000000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: #666666;
}

/* ====== NAVEGAÇÃO ====== */
.nav-item a, 
.site-navigation a,
.main-nav a,
header a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: #000000 !important;
  text-decoration: none !important;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

.nav-item a:hover,
.site-navigation a:hover,
.main-nav a:hover,
header a:hover {
  color: #666666 !important;
  opacity: 0.8;
}

/* ====== BOTÕES ====== */
button, 
.btn,
.button,
input[type="submit"] {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #000000 !important;
  background-color: transparent !important;
  border: 1px solid #000000 !important;
  padding: 12px 24px !important;
  transition: all 0.3s ease;
}

button:hover, 
.btn:hover,
.button:hover,
input[type="submit"]:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* ====== TAGS DE BLOG E META ====== */
.meta, 
.post-meta,
.blog-meta,
.date,
.author,
.category {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666666;
}

/* ====== CITAÇÕES E DESTAQUES ====== */
blockquote, 
.quote {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-style: italic;
  color: #333333;
  border-left: 3px solid #000000;
  padding-left: 20px;
  margin: 20px 0;
}

/* ====== CÓDIGO ====== */
code, pre {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  background-color: #f5f5f5;
  color: #333333;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}
 .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox:target {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: #C5F527;
}
    
}
