/* MokRR Center Panel - Styled Design */

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px 30px;
    gap: 22px;
    overflow-y: auto;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent-bordo));
    border-radius: 10px;
}

/* Logo */
.center-logo {
    width: 120px;
    height: 120px;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.center-logo::before {
    content: '';
    position: absolute;
    inset: -18px;
    border: 3px dotted transparent;
    border-radius: 50%;
    border-top-color: var(--primary);
    border-right-color: var(--accent-light);
    animation: rotate 4s linear infinite;
    opacity: 0.7;
}

.center-logo::after {
    content: '';
    position: absolute;
    inset: -32px;
    border: 2px dashed transparent;
    border-radius: 50%;
    border-bottom-color: var(--accent-bordo);
    border-left-color: var(--primary);
    animation: rotate 6s linear infinite reverse;
    opacity: 0.5;
}

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

.center-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--primary);
    position: relative;
    z-index: 1;
}

/* Title */
.center-title {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.4));
}

/* Blocks */
.center-block {
    width: 100%;
    max-width: 650px;
}

.block-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    margin: 0 0 18px 0;
    text-align: center;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
    position: relative;
}

.block-title::before,
.block-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
    box-shadow: 0 0 10px var(--primary);
}

.block-title::before {
    right: calc(100% + 15px);
}

.block-title::after {
    left: calc(100% + 15px);
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 11px;
    flex-wrap: wrap;
}

.social-tile {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(139, 0, 0, 0.05));
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--primary), transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.social-tile:hover::before {
    opacity: 0.3;
}

.social-tile::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(220, 20, 60, 0.3), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: 0.6s;
}

.social-tile:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.social-tile:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(139, 0, 0, 0.1));
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 
        0 12px 30px rgba(220, 20, 60, 0.5),
        0 0 40px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: var(--accent-light);
}

/* Servers List */
.servers-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.server-card {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(139, 0, 0, 0.05));
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 15px;
    padding: 22px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 200px;
    height: 90px;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent-light));
    opacity: 0;
    transition: 0.4s;
}

.server-card:hover::before {
    opacity: 0.15;
}

.server-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(220, 20, 60, 0.3), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: 0.6s;
}

.server-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.server-card:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(139, 0, 0, 0.1));
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.08);
    box-shadow: 
        0 12px 35px rgba(220, 20, 60, 0.5),
        0 0 50px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.server-img {
    height: 55px;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: 0.4s;
    position: relative;
    z-index: 1;
}

.server-card:hover .server-img {
    filter: brightness(1.3) drop-shadow(0 0 20px var(--primary));
    transform: scale(1.1);
}

/* Contact */
.contact-box {
    display: flex;
    justify-content: center;
}

.contact-pill {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(139, 0, 0, 0.05));
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 30px;
    padding: 16px 32px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent-light));
    opacity: 0;
    transition: 0.4s;
}

.contact-pill:hover::before {
    opacity: 0.15;
}

.contact-pill::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(220, 20, 60, 0.3), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: 0.6s;
}

.contact-pill:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.contact-pill:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(139, 0, 0, 0.1));
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.08);
    box-shadow: 
        0 12px 30px rgba(220, 20, 60, 0.5),
        0 0 40px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-pill i {
    color: var(--primary);
    font-size: 20px;
    filter: drop-shadow(0 0 10px var(--primary));
    animation: iconPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.contact-pill span {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Iframe Wrapper for live broadcast stream */
.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Photo Gallery Styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: '\f00e'; /* FontAwesome search-plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: #fff;
    font-size: 20px;
    opacity: 0;
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 1, 2, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Skeleton loader for gallery items */
.skeleton-gallery-item {
    border-radius: 8px;
    aspect-ratio: 1;
    background: linear-gradient(90deg, rgba(220, 20, 60, 0.05) 25%, rgba(220, 20, 60, 0.12) 50%, rgba(220, 20, 60, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

/* Lightbox Navigation Button Styling */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transition: color 0.2s, transform 0.2s;
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        font-size: 36px;
        padding: 10px;
    }
    .lightbox-prev {
        left: 5px;
    }
    .lightbox-next {
        right: 5px;
    }
}
