/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* Prevent text selection */
}

@font-face {
    font-family: 'Wolfenstein';
    src: url('../assets/fonts/wolfenstein.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: all 0.5s ease;
    position: relative;
}

/* Intro overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    z-index: -1;
}

.main-background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.enter-text {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    animation: pulse 2s infinite;
    user-select: none;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Profile container */
.profile-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.8s ease;
    background-color: rgba(0, 0, 0, 0.25); /* Subtle dark overlay */
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.profile-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.profile-content {
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 20px;
}

/* Fade-in animation for content elements */
.fade-in {
    animation: fadeIn 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Profile header with avatar and username */
.profile-header {
    margin-bottom: 15px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    background-color: #333;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Wolfenstein symbol */
.wolfenstein-symbol {
    margin: 5px 0 10px;
}

.symbol-image {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
    pointer-events: none;
}

/* Profile status with typing effect */
.profile-status {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-status p {
    font-size: 1rem;
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    margin-left: 2px;
    color: #fff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Server information section */
.server-info {
    width: 100%;
    margin-bottom: 30px;
}

.server-box {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.server-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.server-box-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
}

.server-details {
    text-align: left;
}

.server-details h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.server-details p {
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    align-items: center;
}

.server-join-btn {
    display: inline-block;
    background-color: rgba(88, 101, 242, 0.9);
    color: white;
    text-align: center;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.server-join-btn:hover {
    background-color: rgba(88, 101, 242, 1);
}

/* Member icon */
.member-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.member-icon svg {
    stroke: #aaa;
    width: 14px;
    height: 14px;
}

/* Social links section */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-link {
    display: block;
    transition: all 0.2s ease;
    transform-origin: center;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0.9);
    pointer-events: none;
    transition: filter 0.2s ease;
}

.social-link:hover .social-icon {
    filter: brightness(1.2);
}

/* Email popup */
.email-container {
    position: relative;
}

.email-popup {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background-color: rgba(30, 30, 30, 0.95);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    z-index: 100;
}

.email-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(30, 30, 30, 0.95);
}

.email-popup span {
    font-size: 0.8rem;
    color: #fff;
    user-select: text;
}

.email-popup button {
    background-color: rgba(88, 101, 242, 0.9);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.email-popup button:hover {
    background-color: rgba(88, 101, 242, 1);
}

.email-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.email-popup.copied button {
    background-color: #3ba55c;
}

/* Disclaimer watermark */
.disclaimer-watermark {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    backdrop-filter: blur(3px);
}

.disclaimer-watermark p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    text-align: center;
}

/* Media queries for responsiveness */
@media (max-width: 600px) {
    .profile-content {
        padding: 15px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .social-links {
        gap: 15px;
    }

    .enter-text {
        font-size: 2rem;
    }

    .symbol-image {
        height: 25px;
    }

    .server-join-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .disclaimer-watermark p {
        font-size: 0.7rem;
    }

    .email-popup {
        width: max-content;
        padding: 6px 10px;
    }

    .email-popup span {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .server-box {
        padding: 10px;
    }

    .server-icon {
        width: 35px;
        height: 35px;
    }

    .social-links {
        gap: 12px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .enter-text {
        font-size: 1.8rem;
    }

    .symbol-image {
        height: 20px;
    }
}