/* Chat Selection Page Styles */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #111111, #1a1a1a);
    position: relative;
    overflow-x: hidden;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.doodle-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('doodle.png');
    background-size: 300px;
    background-repeat: repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.doodle-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.65)
    );
    pointer-events: none;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 100px 20px 40px;
    z-index: 1;
    position: relative;
}

.chat-header {
    text-align: center;
    position: relative;
    padding: 0 20px 20px;
    margin-bottom: 30px;
}

.chat-header h1 {
    color: #FFD700;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.chat-header p {
    color: #FFFFFF;
    font-size: 20px;
    opacity: 0.8;
}

.chat-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.chat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 215, 0, 0.05);
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.icon-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    background: rgba(255, 215, 0, 0.05);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.chat-card:hover .icon-placeholder {
    transform: scale(1.05);
    border-color: #FFD700;
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.2);
}

.icon-placeholder img {
    width: 150px;
    height: 150px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.chat-card:hover .icon-placeholder img {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.3));
}

.chat-description {
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    font-weight: 500;
    color: #FFFFFF;
    opacity: 0.9;
    margin: 15px 0 25px;
    padding: 0 15px;
    flex-grow: 1;
}

/* Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #FFD700;
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #FFD700;
    opacity: 1;
    transform: translateY(-2px);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: fixed;
    z-index: 10;
    width: 100%;
    left: 0;
    top: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
    width: 280px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.nav-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
    height: 100%;
}

.nav-link {
    color: #FFD700;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.login-button {
    background: #FFD700;
    color: #000000;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 12px;
    margin-left: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    justify-content: center;
    align-items: center;
}

.hamburger:hover {
    background: rgba(255, 215, 0, 0.2);
}

.hamburger span {
    width: 20px;
    height: 3px;
    background: #FFD700;
    transition: all 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-logo {
        width: 200px;
    }

    .nav-logo img {
        height: 50px;
    }

    .chat-header h1 {
        font-size: 36px;
    }

    .chat-header p {
        font-size: 18px;
    }

    .chat-options {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .nav-actions {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-actions.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link, .login-button {
        width: 100%;
        text-align: center;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 12px;
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #000000;
    color: #FFFFFF;
    min-height: 100vh;
}

.start-button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000000;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Common styles for all chat interfaces */
.chat-interface {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 20px;
    z-index: 1;
}

.text-chat-container,
.audio-chat-container,
.video-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    margin: 20px 20px 80px 20px;
    overflow: hidden;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.left-controls, .right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
}

.center-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    flex: 1;
}

.audio-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-control-btn:hover {
    background: rgba(255, 215, 0, 0.1);
}

.control-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #FFFFFF;
}

.control-button.outline {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.control-button.blue {
    background: #007bff;
    color: #FFFFFF !important;
    border: none;
}

.control-button.danger.outline {
    border: 2px solid #FF4444;
    color: #FF4444;
    background: transparent;
}

.control-button:hover {
    opacity: 0.9;
}

/* Audio Chat Layout */
.audio-chat-container {
    width: 100%;
    max-width: 1600px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px;
    padding: 40px 40px;
    position: relative;
}

.audio-participants {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.participant-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.audio-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.audio-circle::after {
    content: '';
    position: absolute;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
}

.equalizer-bars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.equalizer-bars span {
    width: 4px;
    height: 20px;
    background: #FFD700;
    border-radius: 2px;
    animation: equalize 1s ease-in-out infinite;
}

.equalizer-bars span:nth-child(1) { animation-delay: 0.1s; }
.equalizer-bars span:nth-child(2) { animation-delay: 0.2s; }
.equalizer-bars span:nth-child(3) { animation-delay: 0.3s; }
.equalizer-bars span:nth-child(4) { animation-delay: 0.4s; }
.equalizer-bars span:nth-child(5) { animation-delay: 0.5s; }
.equalizer-bars span:nth-child(6) { animation-delay: 0.6s; }
.equalizer-bars span:nth-child(7) { animation-delay: 0.7s; }
.equalizer-bars span:nth-child(8) { animation-delay: 0.8s; }

@keyframes equalize {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

.participant-name {
    color: #FFD700;
    font-size: 18px;
}

.chat-section {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.chat-messages {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 150px;
}

.message {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    max-width: 80%;
}

.message.received {
    background: rgba(40, 40, 40, 0.8);
    align-self: flex-start;
}

.message.sent {
    background: rgba(30, 30, 30, 0.8);
    margin-left: auto;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    background: rgba(30, 30, 30, 0.8);
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    color: #FFFFFF;
    font-size: 14px;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-button {
    background: #FFD700;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: #ccac00;
}

/* Video Chat Layout */
.video-chat-container {
    width: 100%;
    max-width: 1600px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px;
    padding: 40px 40px 100px;
    position: relative;
    height: calc(100vh - 40px);
    overflow: hidden;
}

.video-chat-layout {
    display: flex;
    gap: 20px;
    height: calc(100% - 60px);
}

.stranger-video {
    flex: 2;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.chat-and-self-video {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.self-video {
    height: 220px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    overflow-y: auto;
}

.participant-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #FFD700;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Chat Controls */
.control-button {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.control-button:hover {
    background: #FFD700;
    color: #000;
}

.control-button.blue {
    border-color: #007bff;
    color: #007bff;
}

.control-button.blue:hover {
    background: #007bff;
    color: #fff;
}

.control-button.danger {
    border-color: #FF4444;
    color: #FF4444;
}

.control-button.danger:hover {
    background: #FF4444;
    color: #FFF;
}

.left-controls, .right-controls {
    display: flex;
    gap: 10px;
}

.video-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-section .chat-window {
    flex: 1;
    min-height: 200px;
    max-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 70%;
}

.message.received {
    align-self: flex-start;
}

.message.own {
    align-self: flex-end;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    color: #FFFFFF;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.message.own .message-content {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
}

.message-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    margin-left: 8px;
}

.message.own .message-time {
    text-align: right;
    margin-right: 8px;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .video-window.stranger,
    .video-window.own {
        width: 100%;
    }

    .audio-participants {
        gap: 40px;
    }

    .audio-avatar {
        width: 120px;
        height: 120px;
    }
}

.chat-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: #FFFFFF;
    font-size: 14px;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input input:focus {
    outline: none;
    border-color: #FFD700;
}

.send-button {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
}

.send-button:hover {
    background: #FFD700;
    color: #000;
}

.audio-controls-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.audio-participants {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 20px 0;
}

.mini-chat-window {
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    height: 150px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.mini-chat-window .messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-controls-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.audio-controls-middle .chat-input {
    width: 400px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
}

.audio-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.audio-control-btn:hover {
    background: rgba(255, 215, 0, 0.1);
}

.audio-control-btn.muted::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #FF4444;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: strike 0.3s ease forwards;
}

@keyframes strike {
    0% { width: 0; }
    100% { width: 100%; }
}

.control-button.outline {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700 !important;
}

.control-button.outline:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700 !important;
    border-color: #FFD700;
}

.control-button.blue.outline {
    color: #007bff;
    border-color: #007bff;
}

.control-button.blue.outline:hover {
    background: #007bff;
    color: #fff;
}

.control-button.danger.outline {
    color: #FF4444;
    border-color: #FF4444;
}

.control-button.danger.outline:hover {
    background: #FF4444;
    color: #fff;
}

.audio-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.audio-waves span {
    width: 4px;
    height: 20px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.audio-waves.active span {
    background: #FFD700;
}

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

.audio-waves span:nth-child(2) { animation-delay: 0.2s; }
.audio-waves span:nth-child(3) { animation-delay: 0.4s; }
.audio-waves span:nth-child(4) { animation-delay: 0.6s; } 