/*----------------------------------------------------------------
  # Estilos para a Home Page Template
----------------------------------------------------------------*/

/* Layout Geral e Títulos */
.gfc-container {
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.gfc-home-main section {
    padding: 4em 0;
    border-bottom: 1px solid #f0f0f0;
}

.gfc-home-main section:first-of-type {
    padding-top: 120px; /* Adiciona espaço para a barra de navegação fixa */
}

.gfc-home-main section:last-child {
    border-bottom: none;
}

.gfc-section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 1.5em;
    color: #2c3e50;
}

.gfc-no-content {
    text-align: center;
    background-color: #fff4f4;
    color: #c0392b;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e74c3c;
}

/* 0. Barra de Navegação Fixa */
.gfc-top-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gfc-top-nav .gfc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gfc-nav-brand a {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.gfc-nav-menu a {
    color: #555;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gfc-nav-menu a:hover, .gfc-nav-menu a.active {
    color: #2962FF;
}


/* 1. Seção Hero */
.gfc-home-hero {
    background-color: #e6f3fb;
    text-align: center;
    padding: 5em 0;
}

.gfc-hero-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 0.3em;
    line-height: 1.2;
    color: #2c3e50;
}

.gfc-hero-subtitle {
    font-size: 1.3em;
    color: #555;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 2. Seção de Moedas em Destaque */
.gfc-featured-coins {
    background-color: #ffffff;
}

.gfc-featured-coins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 2rem;
}

.gfc-coin-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #f8fdff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gfc-coin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(41, 98, 255, 0.1);
    border-color: #2962FF;
}

.gfc-coin-card::after {
    content: attr(data-ticker);
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 6em;
    font-weight: 700;
    color: #e6f3fb;
    z-index: 1;
    line-height: 1;
}

.gfc-coin-card > * {
    position: relative;
    z-index: 1;
}

.gfc-coin-card-ticker {
    display: inline-block;
    align-self: flex-start;
    background-color: #0065ab;
    color: #fff;
    padding: 0.4em 0.9em;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 1.5em;
    font-size: 0.9em;
}

.gfc-coin-card-title {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: white;
	font-weight:700;
	text-shadow: 0px 0px 5px #2c3e50;
}

.gfc-coin-card-excerpt {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.gfc-coin-card-excerpt a {
	background-image: none !important;
}

.gfc-coin-card-excerpt p a::after {
	z-index: -1 !important;
}

.gfc-coin-card-excerpt .read-more {
	background-color: #e95a04;
    border-radius: 5px;
    color: white;
    width: 100%;
    display: block;
    padding: 10px;
    text-align: end;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
	margin-top: 10px;
}

.gfc-coin-card-link {
    font-weight: bold;
    color: #2962FF;
    align-self: flex-start;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.gfc-coin-card:hover .gfc-coin-card-link {
    text-decoration: underline;
}

.gfc-coin-card.gfc-featured-bg {
    position: relative;
    overflow: hidden; /* impede o blur de ultrapassar o card */
}

.gfc-coin-card.gfc-featured-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit; /* pega a imagem aplicada inline */
    background-size: inherit;
    background-position: inherit;
    filter: blur(6px); /* ajuste o nível do desfoque */
    transform: scale(1.1); /* evita bordas marcadas */
    z-index: 1;
}

.gfc-coin-card.gfc-featured-bg > * {
    position: relative;
    z-index: 2; /* deixa o conteúdo visível acima do blur */
}


/* 3. Seção de Últimas Notícias */
.gfc-latest-news {
    background-color: #e6f3fb;
}

.gfc-latest-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gfc-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gfc-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.gfc-news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gfc-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gfc-news-card:hover .gfc-news-card-image img {
    transform: scale(1.05);
}

.gfc-news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gfc-news-card-title {
    font-size: 1.3em;
    margin: 0 0 0.5em 0;
    line-height: 1.3;
}

.gfc-news-card-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.gfc-news-card-title a:hover {
    color: #2962FF;
}

.gfc-news-card-meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 1em;
}

.gfc-news-card-excerpt {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.gfc-news-read-more {
    margin-top: 1rem;
    font-weight: bold;
    color: #2962FF;
    text-decoration: none;
    font-size: 0.9em;
    align-self: flex-start;
}

.gfc-news-read-more:hover {
    text-decoration: underline;
}

/* Design Responsivo */
@media (max-width: 768px) {
    .gfc-hero-title {
        font-size: 2.5em;
    }

    .gfc-hero-subtitle {
        font-size: 1.1em;
    }

    .gfc-section-title {
        font-size: 2em;
    }
	
	    .gfc-featured-coins-grid {
	        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)) !important;
	    }
	
	    /* Mobile Menu Implementation */
	    .gfc-mobile-menu-toggle {
	        display: flex;
	        flex-direction: column;
	        justify-content: space-around;
	        width: 30px;
	        height: 24px;
	        background: transparent;
	        border: none;
	        cursor: pointer;
	        padding: 0;
	        z-index: 1001;
	    }
	
	    .gfc-mobile-menu-toggle span {
	        width: 30px;
	        height: 3px;
	        background-color: #2c3e50;
	        border-radius: 10px;
	        transition: all 0.3s linear;
	        position: relative;
	        transform-origin: 1px;
	    }
	
	    .gfc-mobile-menu-toggle.active span:first-child {
	        transform: rotate(45deg);
	    }
	
	    .gfc-mobile-menu-toggle.active span:nth-child(2) {
	        opacity: 0;
	    }
	
	    .gfc-mobile-menu-toggle.active span:nth-child(3) {
	        transform: rotate(-45deg);
	    }
	
	    .gfc-nav-menu {
	        display: none;
	        flex-direction: column;
	        position: absolute;
	        top: 100%;
	        left: 0;
	        width: 100%;
	        background-color: #ffffff;
	        padding: 20px;
	        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
	        z-index: 999;
	    }
	
	    .gfc-nav-menu.active {
	        display: flex;
	    }
	
	    .gfc-nav-menu a {
	        margin: 10px 0;
	        margin-left: 0;
	        font-size: 1.1em;
	    }
	}