/* Dark-Zone Custom CSS */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-red: #dc2626;
    --primary-orange: #ea580c;
    --dark-bg: #111827;
    --dark-secondary: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) var(--dark-bg);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--primary-orange));
    border-radius: 5px;
}

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

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Enhancements */
nav {
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Slider Animations */
.slider-container {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.slide {
    opacity: 0;
    transform: scale(1.1);
    transition: all 1s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide h1 {
    animation: slideInUp 1s ease;
}

.slide p {
    animation: slideInUp 1.2s ease;
}

.slide button {
    animation: slideInUp 1.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slider Dots */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white !important;
    transform: scale(1.5);
}

/* Server Cards */
.server-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.2), transparent);
    transition: left 0.5s ease;
}

.server-card:hover::before {
    left: 100%;
}

.server-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* Chat Section */
#chat-messages {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.8));
}

/* Chat Styles */
.chat-message {
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.4) 0%, rgba(55, 65, 81, 0.3) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.chat-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-message:hover {
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.6) 0%, rgba(55, 65, 81, 0.5) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.chat-message:hover::before {
    opacity: 1;
}

.chat-user-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-timestamp {
    color: rgba(156, 163, 175, 0.7);
    font-size: 0.7rem;
    font-weight: 400;
}

.chat-message-content {
    color: #f3f4f6;
    line-height: 1.5;
    word-wrap: break-word;
    margin-top: 8px;
}

/* Custom Scrollbar */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 68, 68, 0.5) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(55, 65, 81, 0.3);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ef4444, #f97316);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #dc2626, #ea580c);
}

/* Chat animations */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-enter {
    animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typing indicator animation */
@keyframes typingDots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.typing-dot:nth-child(1) { animation-delay: 0ms; }
.typing-dot:nth-child(2) { animation-delay: 150ms; }
.typing-dot:nth-child(3) { animation-delay: 300ms; }

/* Button Animations */
button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* Footer Links */
footer a {
    position: relative;
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateY(-2px);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .slide h1 {
        font-size: 2.5rem;
    }
    
    .slide p {
        font-size: 1rem;
    }
    
    .server-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile Timeline Improvements */
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 0;
        width: 2px;
    }
    
    .timeline-dot {
        left: -1.75rem;
        width: 10px;
        height: 10px;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    }
    
    .timeline-item {
        padding-bottom: 1.5rem;
    }
    
    /* Mobile Update Items */
    .update-item .bg-gray-900 {
        padding: 1rem !important;
        margin-left: 0.5rem;
    }
    
    /* Mobile Version Tag Spacing */
    .update-item h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .update-item .text-sm {
        margin-top: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse Animation for Online Status */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.online-pulse {
    animation: pulse 2s infinite;
}

/* Glow Effect */
.glow {
    text-shadow: 0 0 10px var(--primary-red),
                 0 0 20px var(--primary-red),
                 0 0 30px var(--primary-red);
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Gradient Border Animation */
@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-border {
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange), var(--primary-red));
    background-size: 200% 200%;
    animation: gradient-border 3s ease infinite;
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typing {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-red);
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Main Content Offset */
.content-wrapper {
    position: relative;
    z-index: 10;
    background: #111827;
    margin-top: 100vh;
}

/* News Card Styles */
.news-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.3);
    border-color: var(--primary-red);
}

.news-date {
    font-size: 0.875rem;
    color: #9ca3af;
}

.news-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-red), var(--primary-orange));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.25rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}

.timeline-item:hover .timeline-dot {
    animation: pulse 2s infinite;
}

/* Updates Filter Buttons */
.filter-btn {
    color: #9CA3AF;
    background: transparent;
    border: none;
    cursor: pointer;
}

.filter-btn:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.1);
}

.filter-btn.active {
    color: #fff;
    background: linear-gradient(to right, #DC2626, #EA580C);
}

/* Timeline Dots by Type */
.timeline-dot.release {
    background: linear-gradient(135deg, #DC2626, #EF4444);
}

.timeline-dot.maintenance {
    background: linear-gradient(135deg, #EA580C, #F97316);
}

.timeline-dot.announcement {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
}

.timeline-dot.event {
    background: linear-gradient(135deg, #059669, #10B981);
}

.timeline-dot.admin {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
}

/* Update Item Animation */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.update-item {
    transition: all 0.3s ease;
}

.update-item:hover {
    transform: translateX(5px);
}

/* Owner Tag Special Effects - Clean & Professional */
.chat-user-tag.owner-tag {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #FFD700;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.chat-user-tag.owner-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: ownerGloss 2s ease-in-out infinite;
}

/* Clean Owner Tag Animation */
@keyframes ownerGloss {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Owner Message Special Effects - Clean */
.chat-message.owner-message {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 165, 0, 0.05) 50%, 
        rgba(255, 140, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.chat-message.owner-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    animation: ownerTopGlow 3s linear infinite;
}

.chat-message.owner-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: ownerAmbientGlow 4s ease-in-out infinite;
}

/* Clean Owner Animations */
@keyframes ownerTopGlow {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@keyframes ownerAmbientGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}


@keyframes ownerMessageShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes ownerMessageFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes ownerTopGlow {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@keyframes ownerAmbientGlow {
    0%, 100% {
        opacity: 0.6;
    }
    33% {
        opacity: 0.8;
    }
    66% {
        opacity: 0.4;
    }
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.chat-message.owner-message:hover {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.3) 0%, 
        rgba(255, 165, 0, 0.15) 25%,
        rgba(255, 140, 0, 0.25) 50%,
        rgba(255, 165, 0, 0.15) 75%,
        rgba(255, 215, 0, 0.3) 100%);
    border-image: linear-gradient(45deg, #FFD700, #FF4500, #FFA500, #FFD700) 1;
    box-shadow: 
        0 8px 35px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(255, 215, 0, 0.6),
        0 0 80px rgba(255, 165, 0, 0.4),
        inset 0 0 40px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.01);
}

/* Owner Username Special Effects - ENHANCED */
.chat-message.owner-message .chat-username {
    background: linear-gradient(45deg, #FFD700, #FF6B35, #FFA500, #FFD700);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: 
        ownerNameRainbow 3s linear infinite,
        ownerNamePulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    position: relative;
}

.chat-message.owner-message .chat-username::before {
    content: '🔥';
    position: absolute;
    left: -20px;
    top: -2px;
    animation: fireFlicker 1.5s ease-in-out infinite;
}

.chat-message.owner-message .chat-username::after {
    content: '🔥';
    position: absolute;
    right: -20px;
    top: -2px;
    animation: fireFlicker 1.5s ease-in-out infinite reverse;
}

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

@keyframes ownerNamePulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1)) drop-shadow(0 0 35px rgba(255, 165, 0, 0.6));
    }
}

@keyframes fireFlicker {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: scale(1.1) rotate(-2deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.9) rotate(1deg);
        opacity: 0.9;
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
        opacity: 0.85;
    }
}

/* Navigation Responsive Improvements */
/* Hide scrollbar for desktop navigation */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Responsive navigation improvements */
@media (max-width: 1024px) {
    .nav-item span {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    /* Mobile menu scrolling */
    #mobile-menu {
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
    
    /* Better mobile menu spacing */
    #mobile-menu .space-y-2 > * + * {
        margin-top: 0.5rem;
    }
}

/* Improved dropdown positioning for smaller screens */
@media (max-width: 1280px) {
    .group:hover .absolute.right-0 {
        right: 0;
        left: auto;
        transform: none;
    }
}

/* Better text visibility on minimized windows */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nav-item {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .nav-item span {
        font-size: 0.8rem;
    }
}
