/*
Theme Name: UNDER REALM Gaming
Theme URI: https://underrealm.com
Author: UNDER REALM Clan
Description: Tema épico para el clan UNDER REALM - Clash Royale y juegos de Supercell. Diseño oscuro medieval con sistema de registro, comentarios y optimizado para Google AdSense.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: under-realm
Tags: gaming, dark, clash-royale, supercell, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ============================================
   VARIABLES CSS
============================================ */
:root {
    --primary-dark: #0a0a12;
    --secondary-dark: #12121f;
    --accent-gold: #f4c430;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-green: #22c55e;
    --accent-pink: #ec4899;
    --text-primary: #e8e8f0;
    --text-secondary: #9ca3af;
    --card-bg: rgba(18, 18, 31, 0.9);
    --border-glow: rgba(244, 196, 48, 0.3);
}

/* ============================================
   RESET Y BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ============================================
   FONDO ANIMADO
============================================ */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 196, 48, 0.05) 0%, transparent 70%);
}

/* ============================================
   TIPOGRAFÍA
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.2;
}

.title-epic {
    font-family: 'Uncial Antiqua', serif;
    background: linear-gradient(180deg, #fff 0%, var(--accent-gold) 50%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 60px rgba(244, 196, 48, 0.5));
}

.title-gold {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HEADER Y NAVEGACIÓN
============================================ */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.98) 0%, rgba(10, 10, 18, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 25px rgba(244, 196, 48, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 25px rgba(244, 196, 48, 0.4); }
    50% { box-shadow: 0 0 40px rgba(244, 196, 48, 0.7); }
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Menú de navegación */
.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent-gold);
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--accent-gold);
}

/* Botones del header */
.header-buttons {
    display: flex;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   BOTONES
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 0 30px rgba(244, 196, 48, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(244, 196, 48, 0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(244,196,48,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-purple);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: 'Uncial Antiqua', serif;
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, var(--accent-gold) 50%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 60px rgba(244, 196, 48, 0.5));
    animation: fadeInUp 1s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.3em;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    animation: fadeInUp 1s ease 1s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   SECCIONES GENERALES
============================================ */
.section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title span {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   CARDS DE JUEGOS
============================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(244, 196, 48, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 60px rgba(244, 196, 48, 0.15);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.game-icon.clash-royale {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.game-icon.clash-of-clans {
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.game-icon.brawl-stars {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.game-icon.squad-busters {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.game-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.game-link {
    color: var(--accent-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.game-link:hover {
    gap: 1rem;
}

/* ============================================
   SECCIÓN DEL CLAN
============================================ */
.clan-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.clan-info h2 {
    font-family: 'Uncial Antiqua', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clan-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.clan-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(244, 196, 48, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.clan-emblem {
    display: flex;
    justify-content: center;
    align-items: center;
}

.emblem-container {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(244, 196, 48, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.emblem-container::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 2px dashed rgba(244, 196, 48, 0.3);
    border-radius: 50%;
}

.emblem-inner {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate-slow 30s linear infinite reverse;
    box-shadow: 0 0 80px rgba(244, 196, 48, 0.5);
}

.emblem-text {
    font-family: 'Uncial Antiqua', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    text-align: center;
    line-height: 1.2;
}

/* ============================================
   BLOG Y POSTS
============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}

.post-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.post-tag,
.post-category {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-card h3 a:hover {
    color: var(--accent-gold);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 1rem;
}

/* ============================================
   SINGLE POST
============================================ */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 120px;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.post-header .post-meta {
    font-size: 0.95rem;
}

.post-featured-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-body {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.9;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body a {
    color: var(--accent-gold);
}

.post-body a:hover {
    text-decoration: underline;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

.post-body ol li {
    list-style: decimal;
}

.post-body blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-primary);
}

.post-body img {
    border-radius: 12px;
    margin: 2rem 0;
}

/* ============================================
   COMENTARIOS
============================================ */
.comments-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

.comment-form-wrapper {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-form-wrapper h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.2);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
    border: none;
    width: auto;
    padding: 1rem 2rem;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(244, 196, 48, 0.4);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.comment-reply-link {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* ============================================
   FORMULARIOS (LOGIN/REGISTRO)
============================================ */
.auth-section {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-container h2 {
    text-align: center;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.2);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--accent-gold);
}

/* ============================================
   PÁGINAS LEGALES
============================================ */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

.legal-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.legal-page .last-updated {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

.legal-content a {
    color: var(--accent-gold);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--secondary-dark);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-links h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--accent-gold);
}

/* ============================================
   WIDGETS
============================================ */
.widget {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-title {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget ul {
    color: var(--text-secondary);
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
}

.widget a:hover {
    color: var(--accent-gold);
}

/* ============================================
   PAGINACIÓN
============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
}

/* ============================================
   ADS - GOOGLE ADSENSE
============================================ */
.ad-space {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin: 2rem 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-space-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .clan-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .clan-features {
        justify-content: center;
    }

    .emblem-container {
        width: 280px;
        height: 280px;
    }

    .emblem-inner {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-dark);
        padding: 2rem;
        border-bottom: 1px solid var(--border-glow);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-buttons {
        display: none;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .clan-features {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .auth-container {
        margin: 0 1rem;
        padding: 2rem;
    }
}

/* ============================================
   UTILIDADES
============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* WordPress specific */
.wp-block-image { margin: 2rem 0; }
.wp-block-image img { border-radius: 12px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
