/* ============================================
   SOCIALMEXICO NEWS - Aurora Glass
   Purple-Pink Gradient | Glassmorphism | Glow
   ============================================ */

:root {
    --site-primary: #8e24aa;
    --site-secondary: #e91e63;
    --site-bg: #fce4ec;
    --site-text: #4a148c;
    --site-accent: #c2185b;
    --site-white: #ffffff;
    --site-border: #f8bbd0;
    --card-shadow: 0 2px 8px rgba(142,36,170,0.08), 0 8px 24px rgba(233,30,99,0.06), 0 16px 48px rgba(142,36,170,0.04);
    --card-hover: 0 8px 20px rgba(233,30,99,0.15), 0 20px 56px rgba(142,36,170,0.12);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Comic Sans MS", "Marker Felt", sans-serif;
    background: linear-gradient(150deg, #fce4ec 0%, #f8e1f4 40%, #fce4ec 70%, #f3e5f5 100%);
    color: var(--site-text);
    line-height: 1.6;
    margin: 0; padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Trebuchet MS", sans-serif;
    color: var(--site-accent);
}
a { text-decoration: none; color: inherit; }

/* ===== HEADER - Aurora Glass ===== */
.header {
    background: linear-gradient(135deg, #7b1fa2 0%, #8e24aa 25%, #ad1457 60%, #c2185b 100%);
    color: var(--site-white);
    padding: 0;
    border-bottom: none;
    box-shadow:
        0 4px 24px rgba(142,36,170,0.3),
        0 8px 40px rgba(233,30,99,0.12),
        inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e91e63, #ff6090, #8e24aa, #e91e63);
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 0%; } }

.header-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 24px; height: 62px; }
.logo-section img { height: 42px; filter: drop-shadow(0 2px 8px rgba(233,30,99,0.3)); }
.main-nav { display: flex; gap: 2px; align-items: center; }

.main-nav a {
    color: rgba(255,255,255,0.82);
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s var(--ease);
}
.main-nav a:hover, .main-nav a.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
    box-shadow: 0 0 16px rgba(233,30,99,0.3), inset 0 0 12px rgba(255,255,255,0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ===== HERO SECTION ===== */
.hero-card.viral-main {
    position: relative;
    display: block;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s var(--ease);
}
.hero-card.viral-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 80%, rgba(142,36,170,0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}
.hero-card.viral-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.hero-card.viral-main:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-3px);
}
.hero-card.viral-main:hover img { transform: scale(1.04); }

.hero-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent 0%, rgba(126,27,161,0.5) 30%, rgba(142,36,170,0.92) 100%);
    color: white;
    box-sizing: border-box;
    z-index: 2;
}
.hero-content h2 { color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.viral-sidebar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(233,30,99,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.6);
}
.trending-item { display: flex; gap: 10px; align-items: center; margin-top: 15px; text-decoration: none; color: var(--site-text); transition: transform 0.2s var(--ease); }
.trending-item:hover { transform: translateX(4px); }
.trending-item img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(233,30,99,0.15); }

/* ===== NEWS GRID ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.35s var(--ease);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
}
.news-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(233,30,99,0.3), transparent 50%, rgba(142,36,170,0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.news-card:hover::before { opacity: 1; }
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover);
}
.news-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.4s var(--ease);
}
.news-card:hover img { filter: brightness(1.05) saturate(1.1); }

.news-content { padding: 25px; text-align: center; }
.news-title { color: var(--site-accent); transition: color 0.2s; }
.news-card:hover .news-title { color: var(--site-primary); }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, #880e4f 0%, var(--site-accent) 50%, #7b1fa2 100%);
    color: var(--site-white);
    padding: 50px 20px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    box-shadow: 0 -4px 30px rgba(142,36,170,0.12);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e91e63, #ff6090, #8e24aa, #e91e63);
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
}
.footer-logo img { height: 50px; margin-bottom: 20px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25)); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: var(--site-white); transition: all 0.3s var(--ease); }
.footer-links a:hover { color: #f8bbd0; }

@media (max-width: 768px) {
    #latest-container, .news-grid { grid-template-columns: 1fr !important; }
}

/* ===== HERO GRID FIXES ===== */
#latest-container { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.hero-card.viral-main { position: relative; display: block; height: 450px; border-radius: 20px; overflow: hidden; }
.hero-card.viral-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: absolute; bottom: 0; width: 100%; padding: 30px; background: linear-gradient(transparent 0%, rgba(126,27,161,0.5) 30%, rgba(142,36,170,0.92) 100%); color: white; box-sizing: border-box; }
.viral-sidebar { display: flex; flex-direction: column; gap: 15px; overflow: hidden; }
@media (max-width: 768px) { #latest-container { grid-template-columns: 1fr; } }

/* ===== FOOTER COMPONENTS ===== */
.footer-grid { display: grid; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid.cols-3 { grid-template-columns: 2fr 1fr 1fr; }
.footer-column { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.footer-logo img { height: 40px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-logo h3 { color: var(--site-white); font-size: 1.2rem; margin: 0; }
.footer-about { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.footer-column h4 { color: #f8bbd0; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { color: rgba(255,255,255,0.6); transition: all 0.3s var(--ease); font-size: 0.88rem; display: inline-block; }
.footer-links li a:hover { color: var(--site-white); padding-left: 5px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: var(--site-white); transition: all 0.3s var(--ease); font-size: 0.85rem; }
.social-link:hover { background: rgba(233,30,99,0.3); border-color: var(--site-secondary); color: var(--site-white); transform: translateY(-3px); box-shadow: 0 4px 16px rgba(233,30,99,0.35); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding: 24px 24px 0; max-width: 1200px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.4); font-size: 0.82rem; text-align: center; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) { .footer-grid.cols-3 { grid-template-columns: 1fr; } }
