/* Variables for color scheme and styles */
:root {
    --hive-black: #212529;
    --hive-light-gray: #e7e7f1;
    --hive-red: #e31337;
    --hive-red-hover: #c10c2c;
    --text-primary: #212529;
    --text-secondary: #495057;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    background-color: var(--hive-black);
    color: var(--hive-light-gray);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: transparent;
    border-radius: 8px;
}

.logo-text {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: rgba(231,231,241,0.95);
}

.nav-link:hover {
    color: var(--hive-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--hive-red);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--hive-light-gray);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--hive-black), #2c3e50);
    color: var(--hive-light-gray);
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    min-width: 180px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hive-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Section Styles */
section {
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--hive-black);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--hive-red);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard Section */
.dashboard-section {
    background-color: var(--bg-white);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.looker-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.looker-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Metrics Section (visual link to external metrics) */
.metrics-section {
  padding: 18px 0;
  background: transparent;
}

/* Container card */
.metrics-card {
  --metrics-bg: url('https://images.unsplash.com/photo-1504868584819-f8e8b4b6d7e3?q=80&w=1176&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
  box-shadow: 0 18px 60px rgba(2,6,23,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.25));
  backdrop-filter: blur(6px) saturate(110%);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Visual column with background image (left) */
.metrics-visual {
  width: 42%;
  min-width: 320px;
  background-image: var(--metrics-bg);
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform .28s cubic-bezier(.2,.9,.2,1);
}

/* Overlay for subtle darkening and glass feel */
.metrics-visual::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.18), rgba(2,6,23,0.06));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Content column (right) */
.metrics-content{
  flex: 1;
  padding: 22px 28px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
}

/* Header area with title + button */
.metrics-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* Title / subtitle */
.metrics-title{ margin:0; font-size:20px; font-weight:800; color:var(--text-primary); }
.metrics-subtitle{ margin:2px 0 0; font-size:13px; color:var(--muted); }

/* Short explanatory text */
.metrics-note{ margin:0; color:var(--text-secondary); font-size:14px; }

/* Button-styled link (keeps your red style but elevated) */
.refresh-btn{
  background: linear-gradient(90deg, var(--hive-red), var(--hive-red-hover));
  color: #fff; /* <-- texto blanco como pediste */
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow: 0 12px 36px rgba(227,19,55,0.12);
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease;
  height:44px;
  line-height:1;
}
.refresh-btn i{ font-size:14px; }

/* Hover / focus */
.refresh-btn:hover, .refresh-btn:focus{
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(227,19,55,0.16);
  outline: none;
}

/* Small responsive tweaks */
@media (max-width: 1000px){
  .metrics-card{ flex-direction: column; }
  .metrics-visual{ width:100%; min-height:160px; }
  .metrics-content{ padding:16px; }
}

/* Posts Section */
.posts-section {
    background-color: var(--bg-white);
}

.search-container {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    display: flex;
    box-shadow: var(--shadow);
    border-radius: 50px;
    overflow: hidden;
}

#user-search {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background-color: var(--hive-light-gray);
    font-size: 1rem;
}

#search-btn {
    padding: 1rem 1.5rem;
    background-color: var(--hive-red);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

#search-btn:hover {
    background-color: var(--hive-red-hover);
}

/* HERO POST (featured) - prioritize image + title */
.hero-post {
    max-width: 1000px;
    margin: 0 auto 3rem;
    background: var(--bg-white);
    color: var(--hive-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

/* On desktop show image left, content right */
@media (min-width: 768px) {
    .hero-post {
        flex-direction: row;
        height: 360px;
    }
}

.hero-image {
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: #f0f0f2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.06));
    pointer-events: none;
}

/* zoom on hover for large screens */
.hero-post:hover .hero-image img {
    transform: scale(1.04);
}

/* Content area to show only title, meta and CTA (hide long excerpt) */
.hero-content {
    flex: 1 1 50%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-width: 320px;
}

.hero-title {
    font-size: 1.75rem;
    margin: 0;
    color: var(--hive-black);
    font-weight: 800;
    line-height: 1.05;
}

/* keep meta subtle */
.hero-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Hide excerpt to prioritize image + title (per request) */
.hero-excerpt {
    display: none;
    color: var(--text-secondary);
}

/* CTA styling */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--hive-red), var(--hive-red-hover));
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
    align-self: flex-start;
    box-shadow: 0 10px 30px rgba(227,19,55,0.12);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(227,19,55,0.16);
}

/* Posts grid cards (unchanged) */
.posts-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 180px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--hive-red);
}

.read-more {
    color: var(--hive-red);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
}

/* Footer */
.footer {
    background-color: var(--hive-black);
    color: var(--hive-light-gray);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--hive-red);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--hive-red);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--hive-red);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--hive-black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-card {
        min-width: 140px;
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .metrics-card { flex-direction: column; }
    .metrics-visual { width: 100%; min-height: 160px; }
}

/* Utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-hive-red {
    color: var(--hive-red);
}

.bg-hive-red {
    background-color: var(--hive-red);
}

/* Project Reports button improvements */
.project-reports-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: linear-gradient(180deg, #ff444d 0%, #e31337 100%);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(227,19,55,0.14), inset 0 -2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 120ms ease;
  white-space: nowrap;
}

.project-reports-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(227,19,55,0.20);
}

/* Mobile nav behavior (repeat small section near end) */
/* ...kept as before... */
