/* Canvas için stil */
canvas {
    display: block;
    position: fixed; /* Canvas'ı sabitle */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Canvas'ı diğer elementlerin arkasına al */
    background: #1a2881 !important; /* !important ekleyerek öncelik sağla */
}

/* Chatbot için stil */
.chatbot-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    height: 500px;
    background: rgba(15, 15, 15, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 50px rgba(0, 150, 255, 0.3),
                0 0 20px rgba(0, 150, 255, 0.2) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000; /* Chatbot'u en öne al */
    border: 1px solid rgba(0, 150, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-20px);
    }
}

/* Chat mesaj alanı */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    font-family: 'Inter', sans-serif; /* Inter fontu eklendi */
    scrollbar-color: rgba(0, 150, 255, 0.3) transparent;
    background: radial-gradient(circle at center, rgba(0, 150, 255, 0.05), transparent);
}

/* Mesaj balonları */
.message {
    margin-bottom: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    margin-left: auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: #fff;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bot-message {
    margin-right: auto;
    background: linear-gradient(145deg, rgba(0, 150, 255, 0.2), rgba(0, 150, 255, 0.1));
    color: #00bfff;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 400; /* Normal kalınlık */
}

/* Input alanını alt kısma taşı ve chatbot ile uyumlu hale getir */
.chat-input-container-bottom {
    position: fixed;
    left: calc(50% - 250px);
    bottom: 20px;
    transform: translateX(-50%);
    width: 400px;
    padding: 15px;
    background: rgba(15, 15, 15, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 50px rgba(0, 150, 255, 0.3),
                0 0 20px rgba(0, 150, 255, 0.2) inset;
    display: flex;
    gap: 10px;
    z-index: 1000;
    border: 1px solid rgba(0, 150, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

/* Input alanı stilleri */
.chat-input-container-bottom .chat-input {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 150, 255, 0.1);
}

/* Gönder butonu stilleri */
.chat-input-container-bottom .send-button {
    background: rgba(0, 150, 255, 0.3);
    color: #00bfff;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input-container-bottom .send-button:hover {
    background: rgba(0, 150, 255, 0.5);
}

/* Scrollbar stilleri */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 150, 255, 0.3);
    border-radius: 5px;
}

/* Dünya için stil (Three.js sahnesi) */
#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Dünyayı canvas ile chatbot arasına al */
}

.media-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 500px;
    height: 350px;
    overflow: hidden;
    background: #2c3e50;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    font-size: 14px;
    font-weight: 600; /* Daha kalın yazı */
    font-family: 'Montserrat', sans-serif; /* Montserrat fontu eklendi */
}

.media-header {
    padding: 10px;
    background: #34495e;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.media-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

video {
    width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Logo container */
.logo-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    padding: 15px 20px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 50px rgba(0, 150, 255, 0.3),
                0 0 20px rgba(0, 150, 255, 0.2) inset;
    border: 1px solid rgba(0, 150, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    display: flex;
    flex-direction: column; /* Yataydan dikeye geçiş */
    align-items: center;
    gap: 8px; /* Dikey boşluk ayarı */
}

/* Logo stil */
.logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Slogan stil */
.slogan {
    color: #00bfff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.6);
    white-space: nowrap;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    transform: rotate(-5deg) translateX(-5px);
    display: inline-block;
    margin-top: 5px;
}

/* Chat header */
.chat-header {
    padding: 15px;
    background: rgba(0, 150, 255, 0.1);
    border-bottom: 1px solid rgba(0, 150, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00bfff;
    font-size: 14px;
    font-weight: 600; /* Daha kalın yazı */
    font-family: 'Montserrat', sans-serif; /* Montserrat fontu eklendi */
}

.close-chatbot {
    background: none;
    border: none;
    color: #00bfff;
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
    padding: 0 0 0 10px;
}

.close-chatbot:hover {
    opacity: 0.7;
}

/* Icon pop-up stilleri */
.icon-popup {
    position: absolute;
    top: 10%;
    left: calc(50% - 150px);
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 15, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 50px rgba(0, 150, 255, 0.3),
                0 0 20px rgba(0, 150, 255, 0.2) inset;
    border: 1px solid rgba(0, 150, 255, 0.1);
    z-index: 2000;
    display: none;
    width: 300px;
    max-height: 500px;
    overflow: scroll;
    overflow-x: hidden;
    padding: 20px;
    animation: float 6s ease-in-out infinite;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 150, 255, 0.3) transparent;
}

.popup-content {
    position: relative;
    color: #00bfff;
    font-family: 'Inter', sans-serif;
}

.popup-content h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
}

.popup-content p {
    font-size: 14px;
    line-height: 1.5;
}

.close-popup {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(0, 150, 255, 0.3);
    color: #00bfff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.close-popup:hover {
    background: rgba(0, 150, 255, 0.5);
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.players-table th, .players-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.players-table th {
    background-color: rgba(0, 150, 255, 0.3);
}

.icon-popup::-webkit-scrollbar {
    width: 6px;
}

.icon-popup::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.icon-popup::-webkit-scrollbar-thumb {
    background: rgba(0, 150, 255, 0.3);
    border-radius: 3px;
}

.icon-popup::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 150, 255, 0.5);
}

/* Loading container styles */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    border: 4px solid rgba(0, 150, 255, 0.3);
    border-top: 4px solid #00bfff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #00bfff;
    margin-top: 15px;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}

.live-events {
    position: fixed;
    right: 20px;
    top: 50px;
    width: 300px;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    padding: 15px 20px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 50px rgba(0, 150, 255, 0.3),
                0 0 20px rgba(0, 150, 255, 0.2) inset;
    border: 1px solid rgba(0, 150, 255, 0.1);
    animation: float 1s ease-in-out infinite;
    color: #00bfff;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.live-events.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.event-table th,
.event-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 150, 255, 0.1);
}

.event-table .heading {
    background: rgba(0, 150, 255, 0.2);
    color: #00bfff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
}

.event-table td {
    color: #fff;
    font-size: 14px;
}

.event-table tr:last-child td {
    border-bottom: none;
}

.event-table tr:hover td {
    background: rgba(0, 150, 255, 0.05);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Event list styles */
.event-item {
    padding: 10px;
    margin: 5px 0;
    background: rgba(0, 150, 255, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.event-item:hover {
    background: rgba(0, 150, 255, 0.1);
}

.event-time {
    font-size: 12px;
    color: rgba(0, 191, 255, 0.7);
    margin-right: 10px;
}

.event-description {
    font-size: 14px;
    color: #00bfff;
    text-align: right;
    flex: 1;
}