:root {
    --bg-main: #0B0B10;
    --text-primary: #EAEAEA;
    --text-secondary: #888;
    --accent-color: #b61bc4; /* Pinkish-Purple */
    --accent-light: #d13fe0;
    --card-bg: rgba(20, 20, 25, 0.7);
}

body {
    font-family: 'Inter', sans-serif;
}

.section-title, .server-name, .info-block-value, .mod-name {
    font-family: 'Orbitron', sans-serif;
}

/* New Server Cards on servers.html */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.server-card-new {
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.server-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(182, 27, 196, 0.2);
    border-color: rgba(182, 27, 196, 0.5);
}

.server-banner {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.luminara-banner {
    background-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%), url('https://via.placeholder.com/400x200/9b59b6/000000?text=Luminara');
}

.samosbor-banner {
    background-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%), url('https://via.placeholder.com/400x200/2ecc71/000000?text=Самосбор');
}

/* Redesigned Server Cards V3 */
.server-card-v3 {
    background: rgba(15, 15, 20, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
.server-card-v3:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.card-banner {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.server-tag-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.server-tag-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.card-body {
    padding: 20px;
}
.server-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
}
.server-short-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 40px;
}

.server-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.stat-left {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-left i { color: var(--accent-color); }
.stat-right {
    color: var(--accent-color);
    font-family: 'Orbitron';
    font-weight: 700;
}

.server-actions {
    display: flex;
    gap: 12px;
}
.btn-play-small, .btn-info-small {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Orbitron';
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.btn-play-small {
    background: var(--accent-color);
    color: #fff;
}
.btn-play-small:hover {
    background: var(--accent-light);
    transform: scale(1.02);
}
.btn-info-small {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-info-small:hover {
    background: rgba(255, 255, 255, 0.1);
}

.server-content {
    padding: 25px;
}

.server-name {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.server-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 40px;
}

.server-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.server-info-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-info-row i {
    color: var(--accent-color);
}

.server-footer {
    display: flex;
    gap: 15px;
}

.info-btn, .play-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Orbitron';
    transition: all 0.3s;
    border: 1px solid transparent;
}

.play-btn {
    background: var(--accent-color);
    color: white;
}

.play-btn:hover {
    background: var(--accent-light);
}

.info-btn {
    background: rgba(255,255,255,0.1);
    color: white;
}

.info-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Server Details Page */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.main-details { display: flex; flex-direction: column; gap: 30px; }
.sidebar-details { display: flex; flex-direction: column; gap: 30px; }

.card-bg {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.details-header {
    height: 250px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.header-overlay {
    position: relative;
    z-index: 2;
}
.details-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(11, 11, 16, 1) 0%, rgba(11, 11, 16, 0.5) 50%, transparent 100%);
    border-radius: 16px;
}

.details-header h1 {
    font-size: 2.5rem;
    margin: 0 0 5px 0;
}
.details-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.tps-chart-container {
    padding: 20px;
    height: 250px;
}
.lore-section {
    padding: 25px;
}
.info-card {
    padding: 20px;
}
.mods-section {
    padding: 25px;
}

.section-subtitle {
    font-size: 1.3rem;
    font-family: 'Orbitron';
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.info-item:last-child { border-bottom: none; }
.info-item strong {
    color: var(--text-primary);
    font-weight: 500;
}

.mods-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mod-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.mod-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.3);
}
.mod-name {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}
.mod-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.error-message {
    text-align: center;
    color: #ff5555;
    font-size: 1.2rem;
    padding: 50px;
}

/* Compact Mod Items */
.mod-item-new {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: 0.3s;
}
.mod-item-new:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-color);
}
.mod-img-large {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

/* Status Badge */
.server-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: 'Orbitron';
}
.server-status-badge.online {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.server-status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Redesigned Server Cards on servers.html */
.server-card-v2 {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.server-card-v2:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 20px rgba(168, 85, 247, 0.1);
}

.server-card-v2 .banner-v2 {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 15px;
}
.server-card-v2 .content-v2 {
    padding: 20px;
    flex-grow: 1;
}
.server-card-v2 .footer-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.05);
}
.footer-v2 .btn-v2 {
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Orbitron';
    text-transform: uppercase;
    transition: 0.2s;
}
.footer-v2 .btn-v2:first-child { background: rgba(255,255,255,0.02); }
.footer-v2 .btn-v2:last-child { background: var(--accent-color); }
.footer-v2 .btn-v2:hover { filter: brightness(1.2); }

.copy-ip:active { transform: scale(0.98); }
.copy-ip::after {
    content: 'CLICK TO COPY';
    position: absolute;
    top: -25px; left: 50%; transform: translateX(-50%);
    font-size: 0.6rem; color: var(--accent-color);
    opacity: 0; transition: 0.2s; font-weight: 900;
}
.copy-ip:hover::after { opacity: 1; }

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.main-details { display: flex; flex-direction: column; gap: 30px; }
.sidebar-details { display: flex; flex-direction: column; gap: 30px; }

.card-bg {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.details-header {
    height: 250px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.header-overlay {
    position: relative;
    z-index: 2;
}
.details-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(11, 11, 16, 1) 0%, rgba(11, 11, 16, 0.5) 50%, transparent 100%);
    border-radius: 16px;
}

.details-header h1 {
    font-size: 2.5rem;
    margin: 0 0 5px 0;
}
.details-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.tps-chart-container {
    padding: 20px;
    height: 250px;
}
.lore-section {
    padding: 25px;
}
.info-card {
    padding: 20px;
}
.mods-section {
    padding: 25px;
}

.section-subtitle {
    font-size: 1.3rem;
    font-family: 'Orbitron';
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.info-item:last-child { border-bottom: none; }
.info-item strong {
    color: var(--text-primary);
    font-weight: 500;
}

.mods-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mod-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.mod-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.3);
}
.mod-name {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}
.mod-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.error-message {
    text-align: center;
    color: #ff5555;
    font-size: 1.2rem;
    padding: 50px;
}

/* Compact Mod Items */
.mod-item-new {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: 0.3s;
}
.mod-item-new:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-color);
}
.mod-img-large {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

/* Status Badge */
.server-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: 'Orbitron';
}
.server-status-badge.online {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.server-status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Redesigned Server Cards on servers.html */
.server-card-v2 {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.server-card-v2:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 20px rgba(168, 85, 247, 0.1);
}

.server-card-v2 .banner-v2 {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 15px;
}
.server-card-v2 .content-v2 {
    padding: 20px;
    flex-grow: 1;
}
.server-card-v2 .footer-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.05);
}
.footer-v2 .btn-v2 {
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Orbitron';
    text-transform: uppercase;
    transition: 0.2s;
}
.footer-v2 .btn-v2:first-child { background: rgba(255,255,255,0.02); }
.footer-v2 .btn-v2:last-child { background: var(--accent-color); }
.footer-v2 .btn-v2:hover { filter: brightness(1.2); }

.copy-ip:active { transform: scale(0.98); }
.copy-ip::after {
    content: 'CLICK TO COPY';
    position: absolute;
    top: -25px; left: 50%; transform: translateX(-50%);
    font-size: 0.6rem; color: var(--accent-color);
    opacity: 0; transition: 0.2s; font-weight: 900;
}
.copy-ip:hover::after { opacity: 1; }

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}
