/* ==============================
   GLOBAL STYLES
============================== */
body {
    background: #10101a;
    color: #eee;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

hr {
    border-color: #333;
}

.text-gradient-glow {
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px #e52e71;
}

.link-warning, .link-info {
    text-decoration: underline;
    cursor: pointer;
}

.bg-gradient {
    background: linear-gradient(145deg, #111118, #181828);
}

.box-section {
    padding: 30px; 
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

    .card.bg-dark {
        background-color: #2e2e47 !important;
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.3s ease-in-out;
        border-radius: 14px;
    }

    .card.bg-dark:hover {
        background-color: #3b3b58 !important;
        transform: scale(1.03);
        box-shadow: 0 0 12px rgba(255, 221, 0, 0.3);
    }

    .btn-custom {
        background: linear-gradient(90deg, #ff8a00, #e52e71);
        color: #fff;
        border: none;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    }

    .btn-custom:hover {
        opacity: 0.95;
    }

    .form-control,
    .form-select {
        background-color: #2b2b3d;
        color: #fff;
        border-color: #444;
    }

    .game-title {
        font-size: 1.2rem;
        font-weight: bold;
        color: #ffcc00;
    }

    .card-footer {
        background-color: #1a1a1a;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: none;
    }

        .btn-action {
        min-width: 180px;
        height: 50px;
        font-size: 1.1rem;
    }

    .description-box {
        background: #191919;
        border-left: 4px solid #ffc107;
        border-radius: 10px;
    }

    .box-section {
        background: linear-gradient(135deg, #1a1a2e, #141421);
        border-radius: 15px;
    }

/* ==============================
   LOGO / HEADER TEXT
============================== */
.logo {
    font-size: 1.6rem;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* ==============================
   MENU TOGGLE (Hamburger)
============================== */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1200;
    font-size: 26px;
    background: #0c0c14;
    color: #ffc107;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

/* Overlay oscuro al abrir menú mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(2px);
    z-index: 1100;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* ==============================
   SIDEBAR MENU (PC & Mobile)
============================== */
.sidebar {
    height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    background: #0c0c14;
    overflow-y: auto;
    padding-bottom: 30px;
    z-index: 1199;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

.sidebar a {
    display: block;
    padding: 12px 22px;
    text-decoration: none;
    color: #aaa;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-size: 15px;
}

.sidebar a:hover {
    background: #161628;
    color: #ffc107;
    border-left: 4px solid #ff8a00;
    text-shadow: 0 0 4px #ff8a00;
}

.sidebar .toggle > a {
    cursor: pointer;
    position: relative;
}

.sidebar .submenu {
    display: none;
    background: #141424;
}

.sidebar .toggle.open .submenu {
    display: block;
}

.sidebar .submenu a {
    padding-left: 40px;
    font-size: 14px;
    color: #bbb;
}

.sidebar .submenu a:hover {
    background: #1d1d32;
    color: #fff;
}



/* ==============================
   RESPONSIVE NAVIGATION (Mobile)
============================== */
@media screen and (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding: 20px;
    }

    .footer-ultimate {
        margin-left: 0 !important;
    }

    .menu-toggle {
        display: block;
    }
}

/* ==============================
   MAIN CONTENT
============================== */
.main-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

/* ==============================
   FOOTER - ULTIMATE GAMER STYLE
============================== */
.footer-ultimate {
    background: #0c0c14;
    padding: 60px 20px 40px;
    color: #aaa;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    margin-left: 260px;
    border-top: 1px solid #181828;
    overflow: hidden;
}

.footer-ultimate .footer-logo i {
    color: #ffc107;
    animation: neon-pulse 1.8s infinite alternate;
}

.footer-ultimate .footer-logo h5 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.footer-ultimate .footer-sub {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

.footer-ultimate .text-glow {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255,193,7,0.6);
}

.footer-ultimate .footer-links a {
    margin: 0 12px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-ultimate .footer-links a:hover {
    color: #ffc107;
    text-shadow: 0 0 6px #ffc107;
}

.footer-ultimate .footer-social a {
    margin: 0 12px;
    font-size: 1.4rem;
    color: #888;
    transition: all 0.3s ease;
}

.footer-ultimate .footer-social a:hover {
    color: #ff8a00;
    transform: scale(1.15);
    text-shadow: 0 0 12px #ff8a00;
}

.footer-ultimate .footer-copy {
    font-size: 0.85rem;
    color: #666;
    margin-top: 30px;
}

.footer-ultimate .scroll-up {
    position: absolute;
    bottom: 20px;
    right: 30px;
    background: #ffc107;
    color: #000;
    padding: 10px;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 0 12px #ffc107;
    text-decoration: none;
    transition: 0.3s;
}

.footer-ultimate .scroll-up:hover {
    background: #ff8a00;
    color: #fff;
    box-shadow: 0 0 18px #ff8a00;
}

.footer-ultimate .footer-line-animated {
    height: 2px;
    width: 100%;
    margin: 30px 0 20px;
    background: linear-gradient(270deg, #ff8a00, #e52e71, #ff8a00);
    background-size: 600% 600%;
    animation: gradient-bar 8s ease infinite;
}

/* ==============================
   NEWS
============================== */

    .news-card {
        background-color: #2e2e47;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .news-card:hover {
        transform: scale(1.015);
        box-shadow: 0 0 18px rgba(255, 204, 0, 0.15);
    }

    .news-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid #444;
    }

    .news-body {
        padding: 20px;
    }

    .news-title {
        color: #ffcc00;
        font-size: 1.25rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .news-title a {
        color: inherit;
        text-decoration: none;
    }

    .news-title a:hover {
        color: #ffd700;
        text-shadow: 0 0 5px #ffc107;
    }

    .news-snippet {
        color: #ddd;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .btn-read-more {
        background: linear-gradient(90deg, #ff8a00, #e52e71);
        color: #fff;
        border: none;
        font-weight: 500;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .btn-read-more:hover {
        opacity: 0.95;
        transform: scale(1.05);
    }

        .error-box {
        background-color: #2e2e47;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 40px;
        text-align: center;
        color: #f5f5f5;
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
    }

    .error-icon {
        font-size: 3rem;
        color: #ff4d4d;
        margin-bottom: 15px;
    }

    .btn-back {
        background: linear-gradient(90deg, #ff8a00, #e52e71);
        border: none;
        color: #fff;
        font-weight: bold;
        padding: 10px 20px;
        border-radius: 30px;
        transition: all 0.3s ease;
    }

    .btn-back:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }

       .form-container {
        background: #202030;
        padding: 30px;
        border-radius: 16px;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    }
    .form-label {
        font-weight: bold;
        color: #ffcc00;
    }
    .form-control {
        background-color: #2b2b3c;
        color: #fff;
        border: 1px solid #444;
    }
    .form-control:focus {
        background-color: #2b2b3c;
        color: #fff;
        border-color: #ffcc00;
        box-shadow: 0 0 0 0.2rem rgba(255, 204, 0, 0.25);
    }
    .btn-custom {
        background: linear-gradient(45deg, #ff416c, #ff4b2b);
        color: #fff;
        border: none;
    }
    .btn-custom:hover {
        background: linear-gradient(45deg, #ff4b2b, #ff416c);
    }

    .carousel-row {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
    }

    .carousel-row::-webkit-scrollbar {
        height: 10px;
    }

    .carousel-row::-webkit-scrollbar-thumb {
        background: #00e6e6;
        border-radius: 10px;
    }

    .carousel-row > .card {
        min-width: 300px;
        scroll-snap-align: start;
        transition: transform 0.3s;
    }

    .carousel-row > .card:hover {
        transform: scale(1.03);
        box-shadow: 0 0 20px #00e6e6;
    }

    .glow-title {
        color: #00e6e6;
        text-shadow: 0 0 10px #00e6e6;
    }

    .badge-new {
        background-color: #dc3545;
        font-size: 0.75rem;
        padding: 3px 6px;
        border-radius: 4px;
        margin-left: 0.5rem;
    }

    .top-slider img {
        object-fit: cover;
        height: 350px;
        border-radius: 1rem;
    }

    .top-slider .carousel-caption {
        background: rgba(0, 0, 0, 0.6);
        border-radius: 1rem;
        padding: 1rem;
        backdrop-filter: blur(5px);
    }

    .top-slider .carousel-caption h5 {
        color: #00e6e6;
        font-weight: bold;
        text-shadow: 0 0 10px #00e6e6;
    }

    .hero-banner {
        position: relative;
        height: 400px;
        overflow: hidden;
        border-radius: 1rem;
        margin-bottom: 2rem;
    }

    .hero-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.4);
    }

    .hero-banner .hero-text {
        position: absolute;
        bottom: 30px;
        left: 30px;
        color: #fff;
        z-index: 2;
    }

    .hero-text h1 {
        font-size: 2.8rem;
        text-shadow: 0 0 15px #00e6e6;
        color: #00e6e6;
    }

    .hero-text small {
        font-size: 0.9rem;
        color: #ddd;
    }

    .news-content p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .badge-game {
        background-color: #1f2937;
        color: #00e6e6;
        font-size: 0.8rem;
        padding: 5px 10px;
        border-radius: 8px;
        margin-bottom: 1rem;
        display: inline-block;
        border: 1px solid #00e6e6;
    }

    .back-btn {
        margin-top: 2rem;
    }

    .admin-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #ffc107;
        text-align: center;
        margin-bottom: 40px;
        text-shadow: 0 0 8px #ffdd00;
    }

    .admin-table-container {
        background: #1b1b2f;
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
        overflow-x: auto;
    }

    .admin-table th {
        background-color: #2a2a40;
        color: #ffc107;
        text-align: center;
        font-weight: bold;
        border-bottom: 2px solid #444;
    }

    .admin-table td {
        color: #eee;
        vertical-align: middle;
        text-align: center;
        background-color: #202034;
        border-color: #333;
    }

    .admin-table tr:hover td {
        background-color: #2c2c4a;
        transition: all 0.3s ease;
    }

    .action-btns .btn {
        margin: 0 4px;
        padding: 6px 10px;
        font-size: 0.85rem;
        border-radius: 8px;
        box-shadow: 0 0 6px rgba(0,0,0,0.4);
        transition: all 0.3s ease-in-out;
    }

    .btn-warning:hover {
        background-color: #f0ad4e;
        color: #000;
    }

    .btn-danger:hover {
        background-color: #d9534f;
        color: #fff;
    }

    .btn-add {
        display: inline-block;
        background: linear-gradient(90deg, #ff8a00, #e52e71);
        color: #fff;
        font-weight: bold;
        padding: 10px 20px;
        border-radius: 30px;
        margin-bottom: 30px;
        transition: 0.3s ease;
        text-decoration: none;
    }

    .btn-add:hover {
        transform: scale(1.05);
        box-shadow: 0 0 10px #e52e71;
    }

    .profile-header {
        background: linear-gradient(135deg, #1e1e2f, #0f172a);
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 0 25px rgba(0, 230, 255, 0.1);
        color: #f8f9fa;
        margin-bottom: 2rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid #00e6e6;
    }

    .section-title {
        color: #00e6e6;
        margin-top: 2rem;
        font-weight: bold;
    }

    .game-card {
        background-color: #1c1c2e;
        border: none;
        border-radius: 10px;
        transition: 0.3s;
    }

    .game-card:hover {
        box-shadow: 0 0 15px #00e6e6;
        transform: scale(1.02);
    }

    .comment-box {
        background-color: #2c2c3c;
        border-left: 4px solid #00e6e6;
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .edit-profile {
        color: #00e6e6;
        font-weight: bold;
    }

    .btn-more {
        border-radius: 30px;
        padding: 6px 20px;
        transition: all 0.2s;
    }

    .btn-more:hover {
        background-color: #00e6e6;
        color: #000;
    }

        .profile-section {
        background: #0f0f1b;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 255, 200, 0.2);
        transition: all 0.3s ease-in-out;
    }

    .profile-section:hover {
        box-shadow: 0 0 15px rgba(0, 255, 200, 0.4);
    }

    .profile-label {
        font-weight: bold;
        font-size: 0.9rem;
        color: #00ffe0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .profile-img-preview {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .profile-img-preview:hover {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    }

    .text-glow {
        color: #fff;
        text-shadow: 0 0 4px #00ffe0, 0 0 8px #00ffe0;
    }

    .form-label {
        color: #ccc;
    }

        .contact-section {
        background-color: #1f1f2e;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 0 25px rgba(0,0,0,0.6);
    }
    .form-control, .form-select, textarea {
        background-color: #2b2b3d;
        color: #fff;
        border-color: #444;
    }
    .form-label {
        color: #ffcc00;
    }
    .btn-send {
        background: linear-gradient(90deg, #ff8a00, #e52e71);
        color: #fff;
        border: none;
    }
    .btn-send:hover {
        opacity: 0.95;
    }
    .alert {
        border-radius: 10px;
    }

.user-dashboard {
    text-align: center;
    color: #fff;
    padding: 3rem;
    background: #0c0c14;
    border-radius: 1.5rem;
    box-shadow: 0 0 20px rgba(0,255,255,0.15);
    margin: 3rem auto;
    max-width: 1000px;
    position: relative;
}
.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #00e6e6;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px #00e6e6;
}
.subtitle {
    color: #aaa;
    font-style: italic;
    margin-bottom: 2rem;
}
.stats-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}
.stats-item {
    background: #161625;
    padding: 1rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,255,255,0.1);
    text-align: center;
    min-width: 150px;
}
.stats-item h4 {
    color: #00e6e6;
    margin-bottom: .5rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px #00e6e6;
}
.quick-actions {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.quick-actions a {
    background: #00e6e6;
    color: #0c0c14;
    padding: .8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all .3s ease;
    font-weight: bold;
}
.quick-actions a:hover {
    background: #00cccc;
    transform: scale(1.05);
}
.btn-logout {
    display: inline-block;
    margin-top: 3rem;
    background: #ff4c4c;
    color: white;
    padding: .8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background .3s ease;
}
.btn-logout:hover {
    background: #e60000;
}
.recent-activity {
    text-align: left;
    max-width: 800px;
    margin: 2rem auto;
    background: #181828;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0,255,255,0.1);
}
.recent-activity h3 {
    color: #00e6e6;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00e6e6;
}
.recent-activity ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.recent-activity li {
    margin-bottom: 1rem;
    color: #ccc;
    border-left: 3px solid #00e6e6;
    padding-left: 1rem;
}

.text-gradient {
  background: linear-gradient(90deg,#ffcc00,#ff0066);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-neon {
  background: #0dcaf0;
  border: none;
  color: #0c0c14;
  font-weight: bold;
  box-shadow: 0 0 10px #0dcaf0, 0 0 20px #0dcaf0;
  transition: 0.2s;
}
.btn-neon:hover {
  background: #0bbcd9;
  box-shadow: 0 0 20px #0dcaf0, 0 0 40px #0dcaf0;
}

.section-title {
  color: #fff;
  border-left: 4px solid #ffcc00;
  padding-left: 10px;
}

.forum-card {
  background: #1f1f2e;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.forum-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.forum-title {
  font-weight: bold;
  color: #fff;
}
.forum-meta {
  font-size: 0.8rem;
  color: #bbb;
  margin-bottom: 8px;
}
.forum-post-preview {
  font-size: 0.9rem;
  color: #ddd;
}

.cta-box {
  background: #0c0c14;
  border: 2px solid #00d1ff;
  box-shadow: 0 0 15px #00d1ff;
}

/* legal */
.legal-container {
    max-width: 900px;
    margin: 3rem auto;
    background: #0c0c14;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 0 25px rgba(0,255,255,0.08);
    color: #eee;
    font-size: 1.1rem;
    line-height: 1.8;
}
.legal-container h1 {
    color: #00e6e6;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00e6e6;
}
.legal-container p {
    margin-bottom: 1.5rem;
}

.chart-card {
    background: #202030;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    height: 320px; /* fijo */
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-card canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ==============================
   ANIMATIONS
============================== */
@keyframes neon-pulse {
    0% { text-shadow: 0 0 5px #ffc107, 0 0 10px #ffc107; }
    100% { text-shadow: 0 0 15px #ffc107, 0 0 25px #ffc107; }
}

@keyframes gradient-bar {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
