* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    padding: 10px;
    position: relative;
}

/* Uyarı Box'ları */
.alert-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.alert-box.hidden {
    display: none;
}

.alert-content {
    background: white;
    border-radius: 20px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-header span {
    font-size: 24px;
}

.alert-header h3 {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.alert-body {
    padding: 25px 20px;
    text-align: center;
}

.alert-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
}

.alert-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.alert-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.alert-btn:active {
    transform: translateY(0);
}

/* Şifre Giriş Alanı */
.login-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.login-area.hidden {
    display: none;
}

.login-content {
    background: white;
    border-radius: 20px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.login-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.login-body {
    padding: 30px 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input:invalid {
    border-color: #e74c3c;
}

.login-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Gizli Mesajlaşma Butonu */
.hidden-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.hidden-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.6);
}

.hidden-chat-button:active {
    transform: scale(0.95);
}

/* Oyun Alanı */
.game-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 15px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.player-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.player-info p {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.stat span:last-child {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* Oyun İçeriği */
.game-content {
    text-align: center;
}

.word-display {
    margin-bottom: 30px;
}

.word-display h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
}

.hint {
    font-size: 16px;
    color: #7f8c8d;
    background: rgba(236, 240, 241, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.input-section {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#guessInput {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    text-transform: uppercase;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#guessInput:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#submitGuess {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

#submitGuess:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

#submitGuess:active {
    transform: translateY(0);
}

.result {
    margin: 20px 0;
    padding: 15px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 16px;
    min-height: 20px;
}

.result.correct {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.result.incorrect {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.controls button {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 2px solid #3498db;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.controls button:hover {
    background: #3498db;
    color: white;
}

/* Destek Alanı */
.support-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

.support-area.hidden {
    display: none;
}

.support-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
}

.support-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.support-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.support-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.support-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.support-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.support-item:active {
    transform: scale(0.98);
}

.support-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.support-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.support-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Chat Alanı */
.chat-area {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    top: auto;
    width: 340px;
    max-width: 95vw;
    height: 320px;
    max-height: 60vh;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: slideInUp 0.3s;
}

.chat-area.hidden {
    display: none;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.chat-user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chat-user-info span {
    font-weight: 600;
    font-size: 16px;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #4CAF50;
    box-shadow: 0 0 5px #4CAF50;
}

.status-dot.offline {
    background: #9E9E9E;
}

.status-dot.away {
    background: #FF9800;
    box-shadow: 0 0 5px #FF9800;
}

.status-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-controls .image-upload-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-controls .image-upload-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.chat-controls .image-upload-btn:active {
    transform: scale(0.95);
}

.status-title {
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    margin-right: 10px;
    letter-spacing: 0.5px;
}

.logout-btn { display: none !important; }

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 18px 10px 18px 10px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 16px;
}

.message.received {
    align-self: flex-start;
    background: #fff;
    color: #222;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 16px;
    border: 1px solid #e0e0e0;
}

.message-content {
    margin-bottom: 2px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
    align-self: flex-end;
}

/* Modern Sohbet Mesaj Yazma Alanı */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 16px 0 rgba(102,126,234,0.06);
}

#messageInput {
    flex: 1;
    border: none;
    border-radius: 24px;
    padding: 14px 18px;
    font-size: 16px;
    background: #f3f6fd;
    color: #222;
    outline: none;
    box-shadow: 0 2px 8px rgba(102,126,234,0.07);
    transition: box-shadow 0.2s, background 0.2s;
    min-height: 44px;
    max-height: 120px;
    resize: none;
}

#messageInput:focus {
    background: #e9edfa;
    box-shadow: 0 4px 16px rgba(102,126,234,0.13);
}

.send-btn, .refresh-btn, .image-upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.13);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.send-btn:hover, .refresh-btn:hover, .image-upload-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.08);
}

.send-btn:active, .refresh-btn:active, .image-upload-btn:active {
    transform: scale(0.96);
}

@media (max-width: 600px) {
    .chat-input-area {
        padding: 8px;
        gap: 6px;
    }
    #messageInput {
        font-size: 15px;
        padding: 12px 12px;
        min-height: 38px;
    }
    .send-btn, .refresh-btn, .image-upload-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* Sıralama Tablosu */
.leaderboard {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

.leaderboard.hidden {
    display: none;
}

.leaderboard-header {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
}

.leaderboard-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.leaderboard-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.leaderboard-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rank {
    font-weight: 600;
    font-size: 18px;
    color: #667eea;
    min-width: 40px;
    text-align: center;
}

.player {
    flex: 1;
}

.player-name {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.player-level {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.score {
    font-weight: 600;
    font-size: 16px;
    color: #28a745;
    min-width: 80px;
    text-align: right;
}

/* Mobil Optimizasyonları */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .game-area {
        padding: 15px;
        border-radius: 15px;
    }
    
    .game-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .word-display h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .hint {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    #guessInput {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    #submitGuess {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .controls button {
        width: 100%;
        max-width: 200px;
    }
    
    .chat-header,
    .leaderboard-header,
    .support-header,
    .login-header {
        padding: 15px;
    }
    
    .chat-messages,
    .leaderboard-content,
    .support-content,
    .login-body {
        padding: 15px;
    }
    
    .chat-input {
        padding: 15px;
    }
    
    .support-item {
        padding: 15px;
    }
    
    .support-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* Mobilde gizli buton boyutunu artır */
    .hidden-chat-button {
        width: 70px;
        height: 70px;
        font-size: 28px;
        bottom: 25px;
        right: 25px;
    }
    
    /* Mobilde uyarı box'ı */
    .alert-content,
    .login-content {
        width: 95%;
        max-width: 350px;
    }
    
    .alert-header,
    .login-header {
        padding: 15px;
    }
    
    .alert-body,
    .login-body {
        padding: 20px 15px;
    }
    
    .alert-footer {
        padding: 0 15px 15px;
    }
    
    .chat-user-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    /* Mobil input optimizasyonları */
    #messageInput {
        font-size: 16px; /* iOS'ta zoom'u önler */
        padding: 15px 20px;
    }
    
    .form-input {
        font-size: 16px; /* iOS'ta zoom'u önler */
        padding: 15px 20px;
    }
    
    #guessInput {
        font-size: 16px; /* iOS'ta zoom'u önler */
        padding: 15px 20px;
    }
    
    .chat-area {
        width: 98vw;
        right: 1vw;
        left: 1vw;
        bottom: 10px;
        height: 48vh;
        min-height: 200px;
        max-height: 60vh;
    }
    
    /* Mobilde butonları büyüt */
    .send-btn,
    .refresh-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    /* Mobilde bilgilendirme içeriği */
    .info-content {
        max-height: 50vh;
        padding: 15px 0;
    }
    
    .info-content h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .info-content p {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* iPhone Notch Desteği */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    
    .chat-area,
    .leaderboard,
    .support-area,
    .login-area {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .hidden-chat-button {
        bottom: max(20px, env(safe-area-inset-bottom) + 5px);
        right: max(20px, env(safe-area-inset-right) + 5px);
    }
}

/* Android Chrome Optimizasyonları */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input, button {
        -webkit-appearance: none;
        border-radius: inherit;
    }
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bounce {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.refresh-btn {
    background: #f0f2f5;
    border: 2px solid #e9ecef;
    color: #667eea;
    font-size: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.info-content {
    padding: 20px 0;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f2f5;
}

.info-content::-webkit-scrollbar {
    width: 8px;
}

.info-content::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 4px;
}

.info-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.info-content::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

.info-content h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.info-content p {
    color: #34495e;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
}

.info-content p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #7f8c8d;
    font-size: 13px;
}

/* Puan Mağazası */
.shop-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.shop-balance {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shop-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.shop-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.shop-item.disabled {
    opacity: 0.6;
    background: #f8f9fa;
}

.item-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.item-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.item-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-right: 15px;
}

.price-amount {
    font-weight: 600;
    font-size: 18px;
    color: #28a745;
}

.price-currency {
    font-size: 16px;
}

.buy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.buy-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.buy-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.buy-btn.disabled:hover {
    background: #6c757d;
    transform: none;
}

.image-upload-btn {
    background: #f0f2f5;
    border: 2px solid #e9ecef;
    color: #667eea;
    font-size: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.image-upload-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.image-upload-btn:active {
    transform: scale(0.95);
}

/* Resim önizleme modalı */
#imagePreviewModal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

#imagePreviewModal.active {
    display: flex;
}

#imagePreviewModal img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

#imagePreviewModal .close-preview {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3100;
}

/* Chat resim önizleme stilleri */
.chat-image-thumb {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.chat-image-thumb:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chat-image-thumb:active {
    transform: scale(0.98);
}

/* Mobil için resim önizleme optimizasyonu */
@media (max-width: 768px) {
    #imagePreviewModal .close-preview {
        top: 20px;
        right: 20px;
        font-size: 32px;
    }
    #imagePreviewModal img {
        max-width: 95vw;
        max-height: 85vh;
    }
    .chat-image-thumb {
        max-width: 120px !important;
        max-height: 120px !important;
    }
}

/* Emoji Picker Styles */
.emoji-btn {
    background: #667eea;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.emoji-btn:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

.emoji-btn:active {
    transform: scale(0.95);
}

.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.emoji-picker.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.emoji-categories {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px;
    gap: 5px;
}

.emoji-category {
    background: none;
    border: none;
    font-size: 20px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-category:hover {
    background: #e9ecef;
}

.emoji-category.active {
    background: #667eea;
    color: white;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-item {
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-item:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.emoji-item:active {
    transform: scale(0.95);
}

/* Chat input area güncelleme */
.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
    position: relative;
}

.chat-input-area textarea {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 12px 15px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
    min-height: 40px;
    max-height: 100px;
}

.chat-input-area textarea:focus {
    border-color: #667eea;
}

.textarea, input, button, .chat-messages, .emoji-picker {
    font-family: 'Poppins', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'EmojiOne Color', sans-serif;
}
