/* PeerUp English - Complete Styles */
* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.peerup-dashboard, .peerup-find-partner, .peerup-ai-chat, .peerup-voice-call {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 36px;
    color: #2d3748;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 18px;
    color: #718096;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    color: white;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}

.action-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.action-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.action-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-voice, .btn-call {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-large {
    padding: 20px 40px;
    font-size: 20px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-voice {
    background: #ed64a6;
    color: white;
}

.btn-call {
    background: #48bb78;
    color: white;
    font-size: 20px;
    padding: 20px 40px;
}

.btn-icon {
    font-size: 20px;
}

/* Find Partner */
.match-container {
    text-align: center;
}

.searching {
    margin: 30px 0;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.partner-card {
    background: #f7fafc;
    padding: 40px;
    border-radius: 15px;
    margin: 30px auto;
    max-width: 500px;
}

.partner-avatar {
    font-size: 80px;
    margin-bottom: 20px;
}

.partner-card h3 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 10px;
}

.partner-card p {
    color: #718096;
    margin-bottom: 20px;
}

.partner-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.info-box {
    background: #fff5e6;
    border-left: 4px solid #f59e0b;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

/* AI Chat */
.character-selector {
    margin-bottom: 20px;
}

.character-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
}

.character-selector select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    background: #f7fafc;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    max-width: 80%;
    animation: slideIn 0.3s;
}

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

.user-message {
    background: #667eea;
    color: white;
    margin-left: auto;
}

.ai-message {
    background: white;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
}

.message strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    opacity: 0.8;
}

.chat-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-input-container textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    resize: none;
    height: 80px;
    font-family: inherit;
}

.input-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#speech-status {
    margin-top: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.btn-voice.listening {
    background: #f56565;
    animation: pulse 1s infinite;
}

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

/* Voice Call */
.call-container {
    text-align: center;
    padding: 40px;
}

.call-status {
    background: #f7fafc;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.call-status p {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 10px;
}

#call-timer {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin-top: 20px;
}

.call-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-control {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    background: #e2e8f0;
    transition: all 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .peerup-dashboard, .peerup-find-partner, .peerup-ai-chat, .peerup-voice-call {
        padding: 20px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .partner-actions {
        flex-direction: column;
    }
    
    .input-actions {
        flex-direction: column;
    }
}

/* Random Call Styles */
.user-setup {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.setup-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.setup-card label {
    font-weight: 600;
    color: #2d3748;
}

.gender-select, .filter-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.random-call-card {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.filter-select {
    width: 100%;
    margin: 15px 0;
    background: rgba(255,255,255,0.9);
}

.queue-status {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
}

.searching-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.queue-count {
    font-size: 14px;
    opacity: 0.9;
}

.small-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.partner-info {
    text-align: center;
    padding: 30px;
    background: #f7fafc;
    border-radius: 15px;
    margin: 20px 0;
}

.partner-avatar {
    font-size: 60px;
    margin-bottom: 15px;
}

.partner-info h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 10px;
}

.partner-info p {
    color: #718096;
    font-size: 16px;
}

.timer-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
}

#call-timer {
    font-size: 56px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-danger-round {
    background: #f56565;
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(245,101,101,0.4);
}

.btn-danger-round:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(245,101,101,0.6);
}

.btn-danger-round .btn-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.btn-control {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    font-size: 16px;
    cursor: pointer;
    background: #e2e8f0;
    transition: all 0.3s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    transform: scale(1.05);
    background: #cbd5e0;
}

.btn-control .btn-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.hint-text {
    color: #718096;
    font-size: 14px;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .setup-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gender-select {
        width: 100%;
    }
    
    .call-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    #call-timer {
        font-size: 40px;
    }
}
