/* Global Styles */
:root {
    /* Light Mode Colors */
    --bg-gradient-1: #667eea;
    --bg-gradient-2: #764ba2;
    --bg-gradient-3: #f093fb;
    --card-bg: rgba(255, 255, 255, 0.98);
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #999;
    --border-color: rgba(102, 126, 234, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --chat-bg: linear-gradient(180deg, #fafbfc 0%, #f8f9fa 100%);
    --message-sent-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --message-received-bg: #ffffff;
    --input-bg: #ffffff;
    --control-bg: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

body.dark-mode {
    /* Dark Mode Colors */
    --bg-gradient-1: #1a1a2e;
    --bg-gradient-2: #16213e;
    --bg-gradient-3: #0f3460;
    --card-bg: rgba(30, 30, 46, 0.98);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #666;
    --border-color: rgba(102, 126, 234, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --chat-bg: linear-gradient(180deg, #1e1e2e 0%, #16161e 100%);
    --message-sent-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --message-received-bg: #2a2a3e;
    --input-bg: #2a2a3e;
    --control-bg: linear-gradient(180deg, #2a2a3e 0%, #1e1e2e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
.header {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

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

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dark Mode Toggle */
.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
}

/* Start Screen */
.start-screen {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 60px var(--shadow-color), 0 0 0 1px var(--border-color);
    text-align: center;
    max-width: 550px;
    width: 90%;
    margin: 2rem;
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
}

.start-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.start-screen h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    animation: slideInDown 0.8s ease 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: iconBounce 1.2s ease 0.3s both;
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.3));
}

@keyframes iconBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.start-screen .subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
}

.feature-list {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease both;
}

.feature-item:nth-child(1) { animation-delay: 0.4s; }
.feature-item:nth-child(2) { animation-delay: 0.5s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

.feature-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 2rem;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.feature-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.privacy-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    text-align: center;
    animation: fadeIn 0.8s ease 0.7s both;
}

.start-screen p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    animation: slideInDown 0.8s ease 0.4s both;
}

/* Video Chat Container */
.video-chat-container {
    display: none;
    width: 100%;
    height: calc(100vh - 80px); /* Header yüksekliği kadar çıkar */
    background: var(--card-bg);
    border-radius: 0;
    overflow: hidden;
    animation: fadeInScale 0.6s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-chat-container.active {
    display: flex;
    flex-direction: row; /* Masaüstünde video-section ve chat-sidebar yan yana */
}

/* Masaüstü görünümünde chat-sidebar her zaman görünür olmalı */
@media (min-width: 769px) {
    .video-chat-container.active .chat-sidebar {
        display: flex !important;
    }
}

.video-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
    height: 100%;
}

.video-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; /* İki sütun - yan yana */
    grid-template-rows: 1fr; /* Tek satır */
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 0; /* Flexbox çocuğu için önemli */
}

.video-wrapper {
    position: relative;
    background: #0a0a0a;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    min-height: 400px; /* Minimum yükseklik */
    width: 100%;
}

.video-wrapper:hover {
    transform: scale(1.02);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Siyah alanları minimize et - ekranı tam kaplasın */
    background: #000;
}

/* Kamera ayna efekti - Kullanıcı kendini aynada görsün */
#localVideo {
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
}

#remoteVideo {
    display: none;
    /* Masaüstü görünümünde cover kullan (siyah barları önlemek için) */
    object-fit: cover;
}

/* Masaüstü görünümünde remote video da cover kullan */
@media (min-width: 769px) {
    #remoteVideo {
        object-fit: cover !important;
    }
}

/* Mobil görünümünde de cover kullan (siyah barları önlemek için) */
@media (max-width: 768px) {
    #remoteVideo {
        object-fit: cover !important;
    }
}

#remoteVideo.playing {
    display: block !important;
}

.video-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: labelFadeIn 0.5s ease;
}

@keyframes labelFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.no-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    gap: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
    z-index: 5;
    background: #0a0a0a;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.no-video-placeholder svg {
    width: 100px;
    height: 100px;
    opacity: 0.4;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.no-video-placeholder p {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ccc;
    text-align: center;
}

/* Controls */
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 2rem 1.5rem 1.5rem;
    background: var(--control-bg);
    position: relative;
}

.control-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.control-btn svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.control-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    transform: scale(1);
    transition: all 0.4s ease;
}

.control-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.control-btn:hover::after {
    opacity: 0.4;
    transform: scale(1.3);
}

.control-btn:hover svg {
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95) translateY(-1px);
}

/* .off class zaten var (satır 519-531), sadece cursor normal olsun */
.control-btn.off {
    cursor: pointer;
}

.control-btn.camera {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.control-btn.camera.off {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
}

.control-btn.mic {
    background: linear-gradient(135deg, #2196F3 0%, #0b7dda 100%);
    color: white;
}

.control-btn.mic.off {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
}

.control-btn.next {
    background: linear-gradient(135deg, #FF9800 0%, #f57c00 100%);
    color: white;
}

.control-btn.end {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: white;
}

.control-btn.report {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.control-btn.flip {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
}

/* Kamera flip animasyonu */
.video-wrapper.flipping {
    animation: flipCamera 0.6s ease-in-out;
}

@keyframes flipCamera {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

/* Chat Sidebar - Tamamen Yeniden Tasarlandı */
.chat-sidebar {
    width: 400px;
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
    background: var(--chat-bg);
    position: relative;
    height: 100%;
    min-height: 0; /* Flexbox için önemli */
}

.chat-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-indicator {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--chat-bg);
    min-height: 0; /* Flexbox scroll için kritik */
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

.message {
    padding: 1rem 1.3rem;
    border-radius: 20px;
    max-width: 75%;
    word-wrap: break-word;
    animation: messageSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 12px var(--shadow-color);
    position: relative;
    line-height: 1.5;
    font-size: 0.95rem;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.sent {
    background: var(--message-sent-bg);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.sent::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 10px solid #764ba2;
    border-top: 10px solid transparent;
}

.message.received {
    background: var(--message-received-bg);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid var(--border-color);
}

.message.received::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-right: 10px solid var(--message-received-bg);
    border-top: 10px solid transparent;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.3rem;
    display: block;
}

.chat-input-container {
    display: flex;
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    gap: 0.5rem;
    background: var(--input-bg);
    align-items: center;
    position: relative;
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emoji-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    background: var(--border-color);
    transform: scale(1.1);
}

.chat-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-primary);
}

.chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: scale(1.01);
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.chat-send-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.chat-send-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Emoji Picker */
.emoji-picker {
    position: absolute;
    bottom: 70px;
    left: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 40px var(--shadow-color);
    display: none;
    z-index: 1000;
    animation: emojiPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
}

.emoji-picker.show {
    display: block;
}

@keyframes emojiPopIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.emoji-item {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.emoji-item:hover {
    background: var(--border-color);
    transform: scale(1.2);
}

/* Buttons */
.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: slideInDown 0.8s ease 0.6s both;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e0e4ea 0%, #b3bfce 100%);
    transform: translateY(-2px);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.spinner {
    border: 5px solid rgba(102, 126, 234, 0.1);
    border-top: 5px solid #667eea;
    border-right: 5px solid #764ba2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 1rem;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes spin {
    0% { 
        transform: rotate(0deg);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    }
    100% { 
        transform: rotate(360deg);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
}

/* Status Messages */
.status-message {
    padding: 1.2rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-top: 1.5rem;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.4s ease;
    border-left: 4px solid #667eea;
}

.status-message.error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-left-color: #c62828;
}

.status-message.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-left-color: #2e7d32;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .welcome-container h1 {
        font-size: 2rem;
    }
    
    .video-grid {
        gap: 10px;
    }
}

/* WhatsApp Tarzı Mobil Chat - Kontrol butonlarının yanında */
.mobile-chat-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: none; /* Desktop'ta gizli */
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-chat-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mobile-chat-toggle:active {
    transform: scale(0.9);
}

.mobile-chat-toggle.has-new-message {
    animation: bounce 0.5s ease infinite;
}

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

.mobile-chat-toggle .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
}

/* Mobile Chat Popup */
.mobile-chat-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70vh;
    background: var(--chat-bg);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 -10px 40px var(--shadow-color);
    z-index: 10000; /* Video container'dan daha yüksek z-index */
    display: flex; /* display: none yerine flex, transform ile gizleme */
    flex-direction: column;
    transform: translateY(100%); /* Başlangıçta ekranın dışında */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden; /* Başlangıçta görünmez */
    opacity: 0;
}

.mobile-chat-popup.open {
    transform: translateY(0); /* Açıldığında görünür */
    visibility: visible;
    opacity: 1;
}

.mobile-chat-popup-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-chat-popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-chat-close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    /* Eşleşme ekranında footer gizli ve sayfa kaydırılamaz */
    body.chat-active {
        overflow: hidden !important;
        position: fixed !important;
        width: 100%;
        height: 100%;
    }
    
    body.chat-active .footer {
        display: none !important;
    }
    
    body.chat-active .video-chat-container.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
    }
    
    .start-screen {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .welcome-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
    }
    
    .start-screen h1 {
        font-size: 2rem;
    }
    
    .start-screen .subtitle {
        font-size: 1rem;
    }
    
    .feature-list {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.8rem 1.2rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .feature-text {
        font-size: 0.75rem;
    }
    
    .privacy-note {
        font-size: 0.75rem;
    }
    
    .start-screen p {
        font-size: 1rem;
    }
    
    .video-chat-container {
        flex-direction: column;
        height: calc(100vh - 60px);
    }
    
    .video-section {
        width: 100%;
        flex: 1;
        position: relative;
    }
    
    /* FaceTime/WhatsApp tarzı layout */
    .video-grid {
        display: block !important; /* Grid'i kapat */
        position: relative;
        width: 100%;
        height: 100%;
        padding: 0;
        gap: 0;
    }
    
    /* Remote video (karşı taraf) - TAM EKRAN */
    .video-grid .video-wrapper:nth-child(2) {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 1;
    }
    
    /* Mobil görünümde tüm videolar için cover kullan (siyah barları önlemek için) */
    .video-grid .video-wrapper video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        min-width: 100%;
        min-height: 100%;
    }
    
    /* Büyük video wrapper (tam ekran) için ekstra ayarlar */
    .video-grid .video-wrapper:nth-child(2) {
        overflow: hidden !important; /* Siyah barları kesmek için */
    }
    
    .video-grid .video-wrapper:nth-child(2) video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Local video (kendi kameran) - KÜÇÜK, SAĞ ÜSTTE, SÜRÜKLENEBİLİR */
    .video-grid .video-wrapper:nth-child(1) {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 120px;
        height: 160px;
        border-radius: 15px;
        z-index: 10;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        border: 3px solid rgba(255, 255, 255, 0.3);
        cursor: move;
        transition: transform 0.2s ease;
    }
    
    .video-grid .video-wrapper:nth-child(1):active {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    }
    
    .video-grid .video-wrapper:nth-child(1):hover {
        transform: none; /* Hover scale'i kaldır */
    }
    
    /* Matching Screen Logo (Mobile Only - Sol Üst) */
    .matching-screen-logo {
        position: absolute;
        top: 50px;
        left: 20px;
        z-index: 15;
        opacity: 0.6;
        transition: opacity 0.3s ease;
    }
    
    .matching-screen-logo:hover {
        opacity: 0.9;
    }
    
    .matching-logo-container {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .matching-logo-icon-wrapper {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .matching-logo-icon-wrapper i {
        font-size: 20px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .matching-logo-icon-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 6px;
    }
    
    .matching-logo-icon-wrapper.has-image-logo {
        background: rgba(255, 255, 255, 0.15);
        border: none;
        padding: 3px;
    }
    
    .matching-logo-text {
        display: flex;
        align-items: center;
        gap: 2px;
        font-weight: 700;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .matching-logo-text-primary {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .matching-logo-text-accent {
        color: rgba(118, 75, 162, 0.9);
    }
    
    .video-label {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .controls {
        flex-wrap: nowrap; /* Tek satırda kal */
        gap: 6px; /* Gap daha da azaltıldı */
        justify-content: center;
        padding: 0.8rem 0.5rem; /* Padding azaltıldı */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: transparent !important; /* Arka planı kaldır - büyük kanvasın üzerinde görünsün */
        overflow-x: hidden; /* Scroll yok */
        backdrop-filter: none; /* Backdrop filter'ı kaldır */
    }
    
    .control-btn {
        width: 48px !important; /* Mobil için biraz daha büyük - kesin genişlik */
        height: 48px !important; /* Kesin yükseklik */
        min-width: 48px !important; /* Minimum genişlik */
        max-width: 48px !important; /* Maksimum genişlik - oval görünümü önler */
        min-height: 48px !important; /* Minimum yükseklik */
        max-height: 48px !important; /* Maksimum yükseklik - oval görünümü önler */
        flex-shrink: 0 !important; /* Küçülmesin */
        flex-grow: 0 !important; /* Büyümesin */
        border-radius: 50% !important; /* Tam yuvarlak - oval görünümü önler */
        background: rgba(0, 0, 0, 0.4) !important; /* Şeffaf siyah arka plan */
        backdrop-filter: blur(10px); /* Bulanık cam efekti */
        border: 1px solid rgba(255, 255, 255, 0.1) !important; /* İnce şeffaf kenarlık */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important; /* Yumuşak gölge */
        box-sizing: border-box !important; /* Border'ı width/height'a dahil et */
        aspect-ratio: 1 / 1 !important; /* Genişlik ve yükseklik oranını korur */
        padding: 0 !important; /* Padding olmasın */
        margin: 0 !important; /* Margin olmasın */
        display: flex !important; /* Flexbox */
        align-items: center !important; /* İçeriği ortala */
        justify-content: center !important; /* İçeriği ortala */
    }
    
    .control-btn:hover {
        background: rgba(0, 0, 0, 0.5) !important; /* Hover'da biraz daha koyu */
        transform: scale(1.05); /* Hafif büyüme efekti */
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
    }
    
    .control-btn:active {
        background: rgba(0, 0, 0, 0.6) !important; /* Tıklandığında daha koyu */
        transform: scale(0.95); /* Hafif küçülme efekti */
    }
    
    .control-btn svg {
        width: 22px; /* Mobil için biraz daha büyük */
        height: 22px;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); /* İkon için gölge */
    }
    
    .mobile-chat-toggle {
        width: 48px !important; /* Kesin genişlik */
        height: 48px !important; /* Kesin yükseklik */
        min-width: 48px !important; /* Minimum genişlik */
        max-width: 48px !important; /* Maksimum genişlik - oval görünümü önler */
        min-height: 48px !important; /* Minimum yükseklik */
        max-height: 48px !important; /* Maksimum yükseklik - oval görünümü önler */
        flex-shrink: 0 !important; /* Küçülmesin */
        flex-grow: 0 !important; /* Büyümesin */
        border-radius: 50% !important; /* Tam yuvarlak - oval görünümü önler */
        background: rgba(0, 0, 0, 0.4) !important; /* Şeffaf siyah arka plan - diğer butonlarla aynı stil */
        backdrop-filter: blur(10px); /* Bulanık cam efekti */
        border: 1px solid rgba(255, 255, 255, 0.1) !important; /* İnce şeffaf kenarlık */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important; /* Yumuşak gölge */
        box-sizing: border-box !important; /* Border'ı width/height'a dahil et */
        aspect-ratio: 1 / 1 !important; /* Genişlik ve yükseklik oranını korur */
        padding: 0 !important; /* Padding olmasın */
        margin: 0 !important; /* Margin olmasın */
        display: flex !important; /* Flexbox */
        align-items: center !important; /* İçeriği ortala */
        justify-content: center !important; /* İçeriği ortala */
        transition: all 0.3s ease;
    }
    
    .mobile-chat-toggle:hover {
        background: rgba(0, 0, 0, 0.5) !important; /* Hover'da biraz daha koyu */
        transform: scale(1.05); /* Hafif büyüme efekti */
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
    }
    
    .mobile-chat-toggle:active {
        background: rgba(0, 0, 0, 0.6) !important; /* Tıklandığında daha koyu */
        transform: scale(0.95); /* Hafif küçülme efekti */
    }
    
    .mobile-chat-toggle svg {
        width: 22px !important; /* Diğer butonlarla aynı boyut */
        height: 22px !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); /* İkon için gölge */
        color: white; /* Beyaz ikon */
    }
    
    /* Mobil görünümde özel renkli butonlar için şeffaflık (renkleri koruyarak) */
    .control-btn.camera,
    .control-btn.camera.off,
    .control-btn.mic,
    .control-btn.mic.off,
    .control-btn.next,
    .control-btn.end,
    .control-btn.report,
    .control-btn.flip {
        background: rgba(0, 0, 0, 0.4) !important; /* Şeffaf siyah base */
        backdrop-filter: blur(10px); /* Bulanık cam efekti */
        border: 1px solid rgba(255, 255, 255, 0.1) !important; /* İnce şeffaf kenarlık */
        /* Özel renklerin yerine, icon'un rengi ile ayırt edilir */
    }
    
    /* Özel renkli butonların icon'ları için modern ve canlı renkler */
    .control-btn.camera svg {
        color: #10b981 !important; /* Modern yeşil - daha canlı */
    }
    
    .control-btn.camera.off svg {
        color: #ef4444 !important; /* Modern kırmızı - daha canlı */
    }
    
    .control-btn.mic svg {
        color: #3b82f6 !important; /* Modern mavi - daha canlı */
    }
    
    .control-btn.mic.off svg {
        color: #ef4444 !important; /* Modern kırmızı - daha canlı */
    }
    
    .control-btn.next svg {
        color: #f59e0b !important; /* Modern amber/turuncu - daha canlı */
    }
    
    .control-btn.end svg {
        color: #dc2626 !important; /* Koyu kırmızı - sonlandırma için */
    }
    
    .control-btn.report svg {
        color: #a855f7 !important; /* Modern mor/violet - daha canlı */
    }
    
    .control-btn.flip svg,
    .control-btn.switch-camera svg {
        color: #06b6d4 !important; /* Modern cyan - kamera yön değiştirme için */
        fill: #06b6d4 !important; /* Android için direkt fill rengi */
    }
    
    /* Android için path elementlerine direkt fill ve stroke */
    .control-btn.flip svg path,
    .control-btn.switch-camera svg path,
    .control-btn.flip svg *,
    .control-btn.switch-camera svg * {
        fill: #06b6d4 !important; /* Android için path elementlerine direkt fill - cyan */
        stroke: #06b6d4 !important; /* Stroke rengi de ayarla */
        color: #06b6d4 !important;
    }
    
    /* Mobile chat toggle için özel renk - mesajlaşma butonu mor kalacak */
    .mobile-chat-toggle svg {
        color: #8b5cf6 !important; /* Modern mor - mesajlaşma için */
        fill: #8b5cf6 !important; /* Android için direkt fill rengi */
    }
    
    .mobile-chat-toggle svg path,
    .mobile-chat-toggle svg * {
        fill: #8b5cf6 !important; /* Android için path elementlerine direkt fill - mor */
        stroke: #8b5cf6 !important; /* Stroke rengi de ayarla */
        color: #8b5cf6 !important;
    }
    
    /* Mobilde chat sidebar gizli */
    .chat-sidebar {
        display: none !important;
    }
    
    /* Mobil chat toggle göster - kontrollerde */
    .mobile-chat-toggle {
        display: flex !important;
    }
    
    .mobile-chat-popup {
        display: flex;
    }
    
    .emoji-picker {
        left: 10px;
        bottom: 60px;
        max-width: calc(100vw - 40px);
    }
    
    .status-message {
        font-size: 0.9rem;
        padding: 1rem;
        margin: 1rem;
    }
    
    /* Report Modal Mobile */
    .report-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .report-modal-content h3 {
        font-size: 1.3rem;
    }
    
    .report-reason-btn {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .header {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .start-screen h1 {
        font-size: 1.8rem;
    }
    
    .start-screen p {
        font-size: 0.95rem;
    }
    
    .video-wrapper {
        height: 200px;
        min-height: 180px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .chat-sidebar {
        max-height: 250px;
        min-height: 200px;
    }
    
    .message {
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Landscape Mode on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .video-chat-container {
        flex-direction: row;
        height: calc(100vh - 60px);
    }
    
    .video-section {
        width: 60%;
        height: 100%;
    }
    
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .video-wrapper {
        height: auto;
    }
    
    .chat-sidebar {
        width: 40%;
        max-height: none;
        height: 100%;
        border-left: 2px solid var(--border-color);
        border-top: none;
    }
    
    .controls {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 1rem;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}


/* Report Modal */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.report-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.report-modal-content h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.5rem;
}

.report-modal-content p {
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.report-reason-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
}

.report-reason-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

.report-cancel-btn {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.report-cancel-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   EXTRA SMALL MOBILE (<400px)
   =================================== */
@media (max-width: 400px) {
    /* Çok küçük ekranlarda butonlar daha küçük ama tek satırda */
    .controls {
        gap: 5px;
        padding: 0.6rem 0.25rem;
    }
    
    .control-btn {
        width: 42px;
        height: 42px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-chat-toggle {
        width: 42px !important;
        height: 42px !important;
    }
    
    .mobile-chat-toggle svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .mobile-chat-toggle .badge {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .start-screen .subtitle {
        font-size: 0.9rem;
    }
    
    .feature-list {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .feature-item {
        padding: 0.7rem 1rem;
    }
    
    .feature-icon {
        font-size: 1.3rem;
    }
    
    .feature-text {
        font-size: 0.7rem;
    }
    
    .privacy-note {
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* ===================================
   SETTINGS PANEL & MENU
   =================================== */

/* Settings Panel - Orta Sol */
.settings-panel {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(5px);
}

.settings-btn:hover {
    transform: scale(1.15) rotate(90deg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    backdrop-filter: blur(15px);
}

.settings-btn:active {
    transform: scale(0.95);
}

.settings-btn.report-btn-top {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: rgba(239, 68, 68, 0.5);
    border-color: rgba(239, 68, 68, 0.1);
}

.settings-btn.report-btn-top:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
    backdrop-filter: blur(15px);
}

/* Settings Menu */
.settings-menu {
    position: absolute;
    top: 50%;
    left: 85px;
    transform: translateY(-50%) translateX(-20px) scale(0.95);
    width: 350px;
    max-height: 80vh;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 99;
    backdrop-filter: blur(20px);
}

.settings-menu.show {
    transform: translateY(-50%) translateX(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.settings-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.settings-menu-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.settings-menu-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.settings-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.settings-menu-content {
    padding: 1.5rem;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

/* Setting Item */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.setting-label svg {
    color: #667eea;
    flex-shrink: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Range Slider */
.slider {
    flex: 1;
    min-width: 120px;
    height: 6px;
    border-radius: 5px;
    background: linear-gradient(to right, #667eea, #764ba2);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.5);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: none;
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.5);
}

.slider-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reset Button */
.reset-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.reset-btn:active {
    transform: translateY(0);
}

/* Mobile Only Class */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
    
    .settings-menu {
        left: 15px;
        right: 15px;
        width: auto;
        max-width: calc(100vw - 30px);
        top: 50%;
        transform: translateY(-50%) translateX(-20px) scale(0.95);
    }
    
    .settings-menu.show {
        transform: translateY(-50%) translateX(0) scale(1);
    }
    
    .settings-panel {
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
    }
    
    .settings-btn {
        width: 44px;
        height: 44px;
    }
}

/* ===================================
   FOOTER - SIMPLE TEXT STYLE
   =================================== */
.site-footer {
    position: relative;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    background: transparent;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-badge:hover {
    opacity: 1;
}

.footer-logo {
    height: 16px;
    width: auto;
    opacity: 0.8;
}

.footer-text {
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Footer for dark mode */
.footer-credit {
    color: rgba(255,255,255,0.6);
}

.footer-logo-img-inline {
    filter: brightness(1.2);
}

.footer-text-inline {
    color: rgba(255,255,255,0.6);
}

/* Light mode için footer */
body:not(.dark-mode) .footer-credit {
    color: rgba(0,0,0,0.7);
}

body:not(.dark-mode) .footer-logo-img-inline {
    filter: brightness(0.7) contrast(1.3) drop-shadow(0 2px 4px rgba(0,0,0,0.4)) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

body:not(.dark-mode) .footer-text-inline {
    color: rgba(0,0,0,0.7);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: 10px 15px;
    }
    
    .footer-badge {
        font-size: 0.7rem;
        gap: 0.35rem;
    }
    
    .footer-logo {
        height: 14px;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
    
    /* Footer'ı mobilde gizle */
    .footer-credit {
        display: none !important;
    }
}
