/*
Theme Name: Branding Creativo Theme
Theme URI: https://branding-creativo.com/
Author: Branding Creativo
Author URI: https://branding-creativo.com/
Description: Custom theme for the Branding Creativo blog, matching the Angular site design.
Version: 1.0
License: Proprietary
Text Domain: brandingcreativo
*/

/* ==========================================================================
   Global Variables & Design System (from Angular src/styles.css)
   ========================================================================== */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #0f172a;
  --accent: #2dd4bf;
  --accent-glow: rgba(45, 212, 191, 0.4);
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.smooth-scroll {
  scroll-behavior: smooth;
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.43);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--secondary);
}

.btn-accent:hover {
  background-color: #14b8a6;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px var(--accent-glow);
}

/* Typography Enhancements */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Spacing */
section {
  padding: 5rem 0;
}

/* Responsive Grid */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

@media (max-width: 767px) {
  section { padding: 3rem 0; }
  .grid { gap: 1.5rem; }
}

/* ==========================================================================
   Header Component Styles
   ========================================================================== */
.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
}
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}
nav a:hover {
  color: var(--primary);
}
.dropdown {
  position: relative;
  display: inline-block;
  height: 100%;
  display: flex;
  align-items: center;
}
.dropbtn {
  padding: 0.5rem 0;
  cursor: pointer;
}
.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  min-width: 200px;
  top: 100%;
  left: 0;
  padding: 0.75rem;
  z-index: 100;
  border-radius: 12px;
  margin-top: 5px;
  transition: all 0.3s ease;
  transform: translateY(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  display: none;
}
.dropdown:hover::after {
  display: block;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-content a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.dropdown-content a:last-child {
  margin-bottom: 0;
}
.dropdown-content a:hover {
  background: rgba(14, 165, 233, 0.1);
}
.header-socials {
  display: flex;
  gap: 0.75rem;
  border-left: 1px solid rgba(0,0,0,0.1);
  padding-left: 1rem;
}
.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}
.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
}
@media (max-width: 992px) {
  .header-socials { display: none; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
  }
  nav.open { display: flex; }
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }


/* ==========================================================================
   Footer Component Styles
   ========================================================================== */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 5rem 0 2rem;
}
.footer-brand p {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.footer h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.75rem; }
.footer ul li a { color: rgba(255, 255, 255, 0.7); }
.footer ul li a:hover { color: var(--accent); }
.footer-contact p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   WhatsApp Button Component Styles
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.whatsapp-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}
.pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #25d366;
  border-radius: 50%;
  z-index: -1;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  80%, 100% { transform: scale(2); opacity: 0; }
}
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   Blog Listing Styles
   ========================================================================== */
.site-main {
  min-height: 80vh;
  padding-top: 100px;
}
.blog-header {
  text-align: center;
  margin-bottom: 4rem;
}
.blog-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-preview-card { 
  border-radius: 20px; 
  overflow: hidden; 
  transition: var(--transition); 
}
.blog-preview-card:hover { transform: translateY(-5px); }
.preview-img img { width: 100%; height: 200px; object-fit: cover; }
.preview-body { padding: 1.5rem; }
.preview-body h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.excerpt { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1.5rem; }
.read-more { font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 4rem; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border-radius: 8px; background: var(--bg-soft); font-weight: 600; }
.pagination span.current { background: var(--primary); color: white; }

/* Single Post Styles */
.single-post-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}
.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}
.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}
.single-post-content h2, .single-post-content h3 {
  margin: 3rem 0 1rem;
}
.single-post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-header h1 { font-size: 2.5rem; }
}
