/* Custom styles for ServerVerse - Steam/LevelUp Style */

:root {
    --primary: #d8a740;
    --primary-hover: #c9932f;
    --silver: #d6dde7;
    --silver-muted: #94a3b8;
    --dark-bg: #070a10;
    --dark-card: #1e293b;
    --accent: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(15, 23, 42, 0.7);
}

/* Glassmorphism e Efeitos Profissionais */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-hover:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(216, 167, 64, 0.2);
}

/* Base Reset & Alignment */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(900px circle at 18% 8%, rgba(216, 167, 64, 0.14), transparent 55%),
        radial-gradient(900px circle at 82% 10%, rgba(214, 221, 231, 0.10), transparent 55%),
        var(--dark-bg);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography & Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(216, 167, 64, 0.6), transparent);
    margin-left: 20px;
}

.section-title i {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 8px currentColor);
}

/* Swiper Navigation Customization */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(216, 167, 64, 0.92) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px);
    z-index: 50 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-hover) !important;
    border-color: white !important;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(216, 167, 64, 0.55) !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: 900 !important;
}

/* Ensure arrows are visible on small screens too but smaller */
@media (max-width: 640px) {
    .swiper-button-next, .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
        display: flex !important; /* Force display if hidden before */
    }
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 14px !important;
    }
}

/* Alignment fixes for sections */
section {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.container {
    max-width: 1280px !important;
}

/* Titles and Emojis Alignment */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.section-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* Cards Alignment */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* YouTube Embed Fix */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Cards & Layout */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

.brand-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    letter-spacing: -0.02em;
}

.brand-gold {
    background: linear-gradient(90deg, #d8a740 0%, #fff7ad 50%, #d8a740 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brandShimmer 3s linear infinite;
    text-shadow: 0 0 20px rgba(216, 167, 64, 0.3);
}

.brand-silver {
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 35%, #a7b3c7 70%, #d6dde7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(214, 221, 231, 0.12));
}

.brand-logo-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    gap: 2px;
}

.brand-logo-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.brand-slogan {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.7);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.metal-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(216, 167, 64, 0.55) 18%,
        rgba(214, 221, 231, 0.25) 50%,
        rgba(216, 167, 64, 0.55) 82%,
        transparent 100%
    );
}

.whatsapp-float {
    position: fixed;
    right: 20px !important;
    left: auto !important;
    bottom: 20px !important;
    z-index: 1000;
}

.whatsapp-card {
    width: min(420px, 100%);
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 1);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.whatsapp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.9);
    background: rgba(30, 41, 59, 0.95);
}

.whatsapp-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(34, 197, 94, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.whatsapp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whatsapp-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.whatsapp-members {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.9);
}

.whatsapp-cta {
    flex: 0 0 auto;
    font-weight: 900;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(34, 197, 94, 0.15);
    color: rgba(187, 247, 208, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 8px 10px;
    border-radius: 12px;
}

@keyframes brandShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Alignment Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.25rem;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .swiper-button-next, .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 640px) {
    .brand-slogan {
        display: none;
    }
}

/* Chat Animations */
#chat-window.show {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

.chat-msg {
    max-width: 85%;
    word-wrap: break-word;
}

.chat-msg-mine {
    align-self: flex-end;
}

.chat-msg-content {
    border-radius: 12px;
}

.chat-msg-mine .chat-msg-content {
    background-color: #d8a740;
    color: #0f172a;
    border-bottom-right-radius: 2px;
}

.chat-msg-others .chat-msg-content {
    background-color: #1e293b;
    color: #f8fafc;
    border-bottom-left-radius: 2px;
}
