/* Main stylesheet for Valorium KalOnline Private Server website */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.7;
    color: #e0e0e0;
    background-color: #121212;
    background-image: url('../images/background.svg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.7) 100%);
    z-index: -1;
}

::selection {
    background-color: rgba(156, 39, 176, 0.3);
    color: #ffffff;
}

.container {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    border-bottom: 3px solid #9c27b0;
    box-shadow: 0 2px 15px rgba(156, 39, 176, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
    padding-left: 15px; /* Move logo more to the left */
}

.logo img {
    height: 55px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(156, 39, 176, 0.7));
}

.logo img:hover {
    transform: scale(1.05);
}

.server-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #e0e0e0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 20px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.server-status i {
    margin-right: 5px;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

.status-online {
    color: #4CAF50; /* Green for online */
}

.status-offline {
    color: #f44336; /* Red for offline */
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Navigation styles */
nav {
    margin-top: 0;
    margin-left: auto; /* Push navigation to the right */
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px; /* Consistent spacing between items */
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(156, 39, 176, 0.2);
    white-space: nowrap; /* Prevent text wrapping */
}

nav ul li a i {
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #9c27b0;
}

/* Add responsive adjustments */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
    }
}

nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(156, 39, 176, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
    border-color: rgba(156, 39, 176, 0.6);
}

nav ul li a:hover i {
    transform: scale(1.2);
    color: #ce93d8;
}

nav ul li a.active {
    color: #ffffff;
    font-weight: 600;
    background-color: rgba(156, 39, 176, 0.4);
    border: 1px solid rgba(156, 39, 176, 0.8);
    box-shadow: 0 2px 10px rgba(156, 39, 176, 0.3), inset 0 0 5px rgba(156, 39, 176, 0.2);
}

nav ul li a.active i {
    color: #ce93d8;
}

/* Main content styles */
main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.content-box {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #9c27b0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-title {
    color: #9c27b0;
    margin-bottom: 25px;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #9c27b0;
    transition: width 0.3s ease;
}

.page-title:hover::after {
    width: 100%;
}

/* News styles */
.news-container {
    margin-top: 10px;
}

.news-item {
    border-left: 3px solid #9c27b0;
    padding-left: 15px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0 5px 5px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 15px 0;
    cursor: pointer;
    position: relative;
}

.news-header h4 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.1rem;
    flex-grow: 1;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin: 0 15px;
    white-space: nowrap;
}

.news-toggle {
    color: #9c27b0;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.news-item.expanded .news-toggle i {
    transform: rotate(180deg);
}

.news-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px 0 0;
}

.news-item.expanded .news-content {
    max-height: 500px;
    padding-bottom: 15px;
}

/* Footer styles */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid #9c27b0;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: #e0e0e0;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #9c27b0;
}

.copyright {
    font-size: 0.9rem;
    color: #999;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #9c27b0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    background-color: #7b1fa2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3);
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(0, 0, 0, 0.5);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    text-transform: uppercase;
    font-weight: 500;
}

tr:hover {
    background-color: rgba(156, 39, 176, 0.1);
}

/* Downloads page specific styles */
.download-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.download-icon {
    font-size: 2rem;
    margin-right: 20px;
    color: #9c27b0;
}

.download-info {
    flex-grow: 1;
}

.download-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #9c27b0;
}

.download-description {
    color: #ccc;
    margin-bottom: 10px;
}

.download-meta {
    font-size: 0.9rem;
    color: #999;
}

/* Features page specific styles */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 3px solid #9c27b0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(156, 39, 176, 0.15), transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-left-width: 5px;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: #9c27b0;
    margin-bottom: 20px;
    display: inline-block;
    background-color: rgba(156, 39, 176, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.2);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(156, 39, 176, 0.2);
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.3);
}

.feature-title {
    font-size: 1.3rem;
    color: #9c27b0;
    margin-bottom: 10px;
}

/* Rules page specific styles */
.rules-list {
    counter-reset: rule-counter;
}

.rule-item {
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
}

.rule-item:before {
    content: counter(rule-counter);
    counter-increment: rule-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: #9c27b0;
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rule-title {
    font-size: 1.2rem;
    color: #9c27b0;
    margin-bottom: 10px;
}

/* Schedule page specific styles */
.event {
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    border-left: 3px solid #9c27b0;
}

.event-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.2rem;
    color: #9c27b0;
}

.event-time {
    color: #ccc;
    font-weight: 500;
}

.event-description {
    color: #e0e0e0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}