/* Master Theme Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0d1117;
    color: #f0f6fc;
    min-height: 100vh;
}

/* ==========================================
   LIVE ANIMATED BACKGROUND STYLES
   ========================================== */
.live-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #111726 0%, #07090e 100%);
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(88, 166, 255, 0.15);
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.4);
    animation: floatAround infinite linear;
}

.particle:nth-child(1) { width: 150px; height: 150px; top: 10%; left: 10%; animation-duration: 25s; }
.particle:nth-child(2) { width: 250px; height: 250px; top: 70%; left: 80%; animation-duration: 35s; background: rgba(248, 81, 73, 0.08); box-shadow: 0 0 35px rgba(248, 81, 73, 0.25); }
.particle:nth-child(3) { width: 100px; height: 100px; top: 40%; left: 50%; animation-duration: 20s; background: rgba(57, 211, 83, 0.12); box-shadow: 0 0 25px rgba(57, 211, 83, 0.35); }
.particle:nth-child(4) { width: 180px; height: 180px; top: 80%; left: 20%; animation-duration: 30s; }
.particle:nth-child(5) { width: 120px; height: 120px; top: 20%; left: 70%; animation-duration: 22s; }

@keyframes floatAround {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    50% { transform: translateY(-80px) translateX(40px) rotate(180deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(360deg); }
}

/* Navigation UI */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background-color: rgba(22, 27, 34, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #58a6ff;
}

.logo {
    font-size: 26px;
    font-weight: 800;
}

.logo span { color: #58a6ff; text-shadow: 0 0 10px #58a6ff; }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 25px; }
.nav-links a {
    color: #8b949e;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #58a6ff; }

/* Main Landing Elements */
.hero {
    height: 45vh;
    background: linear-gradient(rgba(13, 17, 23, 0.75), rgba(13, 17, 23, 0.95)), url('https://unsplash.com') no-repeat center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 { font-size: 50px; font-weight: 800; line-height: 1.1; }
.hero-content span { color: #58a6ff; }
.hero-content p { margin: 10px 0 20px; color: #8b949e; }

.btn, .game-btn {
    padding: 12px 28px;
    background: #58a6ff;
    color: #0d1117;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(88, 166, 255, 0.4);
    transition: 0.3s;
}
.btn:hover { background: #fff; box-shadow: 0 4px 14px #fff; }

/* Dashboard UI Layout */
.container { padding: 40px 8%; position: relative; z-index: 5; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 28px; letter-spacing: 2px; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portal-card {
    background: rgba(22, 27, 34, 0.75);
    backdrop-filter: blur(5px);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #30363d;
    transition: 0.3s;
}
.portal-card:hover { transform: translateY(-8px); border-color: #58a6ff; box-shadow: 0 5px 20px rgba(88, 166, 255, 0.2); }
.portal-card h3 { font-size: 24px; margin-bottom: 12px; color: #58a6ff; }
.portal-card p { color: #8b949e; margin-bottom: 25px; font-size: 14px; }
.portal-btn { color: #fff; background: rgba(88, 166, 255, 0.2); padding: 8px 15px; border-radius: 4px; text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-block;}
.portal-btn:hover { background: #58a6ff; color: #0d1117; }

/* Sub Pages Custom BGs */
.page-header {
    padding: 60px 8% 40px;
    text-align: center;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #58a6ff;
}
.mc-bg { background: linear-gradient(rgba(0,0,0,0.7), rgba(13, 17, 23, 0.95)), url('https://unsplash.com'); }
.ff-bg { background: linear-gradient(rgba(0,0,0,0.7), rgba(13, 17, 23, 0.95)), url('https://unsplash.com'); }
.pubg-bg { background: linear-gradient(rgba(0,0,0,0.7), rgba(13, 17, 23, 0.95)), url('https://unsplash.com'); }

/* Advanced Inner Panels */
.advanced-panel {
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #30363d;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.advanced-panel h3 { margin-bottom: 15px; color: #58a6ff; }

/* Interactive Server UI */
.server-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.server-item { display: flex; justify-content: space-between; padding: 12px; background: #21262d; border-radius: 6px; }
.online { color: #39d353; }
.offline { color: #f85149; }

/* Selection Boxes & Tabs */
select {
    width: 100%; max-width: 300px; padding: 10px;
    background: #21262d; border: 1px solid #30363d;
    color: #fff; border-radius: 6px; font-size: 15px;
    margin-bottom: 10px;
}
.recipe-display {
    margin-top: 15px; padding: 15px; background: #21262d;
    border-radius: 6px; border-left: 4px solid #58a6ff; line-height: 1.6;
}

.char-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn {
    padding: 10px 20px; background: #21262d; border: 1px solid #30363d;
    color: #fff; border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.3s;
}
.tab-btn:hover { border-color: #58a6ff; color: #58a6ff; background: rgba(88, 166, 255, 0.05); }

.calc-group { display: flex; flex-direction: column; gap: 5px; max-width: 300px; }
.calc-group label { font-size: 14px; color: #8b949e; margin-top: 5px; }

footer { text-align: center; padding: 30px; background: #161b22; color: #8b949e; border-top: 1px solid #30363d; position: relative; z-index: 5; }
/* ==========================================
   UPDATED IMAGES GRID & CARD STYLES
   ========================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portal-card {
    background: rgba(22, 27, 34, 0.75);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow: hidden; /* පිංතූරයේ කොන් වටකුරු කිරීමට */
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portal-card:hover { 
    transform: translateY(-8px); 
    border-color: #58a6ff; 
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.25); 
}

/* Image Wrapper */
.card-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 2px solid #30363d;
}

/* Game Zoom Thumbnail Style */
.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portal-card:hover .game-thumbnail {
    transform: scale(1.1); /* මවුස් එක තැබූ විට පිංතූරය සෙමින් Zoom වීම */
}

/* Card Information Padding */
.card-body {
    padding: 25px;
}

.card-body h3 { 
    font-size: 22px; 
    margin-bottom: 10px; 
    color: #58a6ff; 
    letter-spacing: 1px;
}

.card-body p { 
    color: #8b949e; 
    margin-bottom: 20px; 
    font-size: 14px; 
    line-height: 1.5;
}

.portal-btn { 
    color: #fff; 
    background: rgba(88, 166, 255, 0.2); 
    padding: 8px 18px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.3s; 
    display: inline-block;
    border: 1px solid transparent;
}

.portal-btn:hover { 
    background: #58a6ff; 
    color: #0d1117;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}
/* ==========================================
   FUTURISTIC NOTICE POPUP STYLES
   ========================================== */
.notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* හැමදේටම උඩින් පෙන්වීමට */
    transition: opacity 0.5s ease;
}

.notice-box {
    background: #161b22;
    border: 2px solid #58a6ff;
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    overflow: hidden;
    animation: popupSlide 0.4s ease-out;
}

.notice-header {
    background: #58a6ff;
    color: #0d1117;
    padding: 10px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
}

.notice-body {
    padding: 40px 20px;
}

.notice-body h2 {
    font-size: 24px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.notice-body p {
    color: #8b949e;
    font-size: 16px;
    font-weight: 600;
}

.notice-body p span {
    color: #58a6ff;
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-top: 10px;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

.notice-btn {
    width: 100%;
    padding: 15px;
    background: #21262d;
    border: none;
    border-top: 1px solid #30363d;
    color: #58a6ff;
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.notice-btn:hover {
    background: #58a6ff;
    color: #0d1117;
}

/* ඇනිමේෂන් එක */
@keyframes popupSlide {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
