/*
    Venmo Deep Link Generator - Styles
    Copyright (c) 2025 Jaemin Shin. All rights reserved.
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3D95CE, #1A74E4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input:focus {
    outline: none;
    border-color: #3D95CE;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 149, 206, 0.2);
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3D95CE, #1E3A8A);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(61, 149, 206, 0.3);
}

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

.result-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.result-section.hidden {
    display: none;
}

.generated-link {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 15px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 15px;
    position: relative;
}

.copy-btn {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.copy-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #20c997;
}

.open-btn {
    width: 100%;
    padding: 12px;
    background: #3D95CE;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.open-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.example {
    background: #e3f2fd;
    border-left: 4px solid #3D95CE;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.example strong {
    color: #1565c0;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
        margin: 10px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    transform: translateX(0);
}

.qr-section {
    margin-top: 25px;
    text-align: center;
}

.qr-container {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    display: inline-block;
}

.qr-container.venmo-style {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    padding: 25px 20px 15px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.username-text {
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

.username-text.show {
    display: block;
}

.venmo-text {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #3D95CE;
    text-align: center;
    margin-top: 10px;
    letter-spacing: -1px;
}

.qr-code {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.qr-instruction {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.download-qr-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 0.9rem;
}

.download-qr-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.file-input {
    padding: 12px;
    background: #f8f9fa;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.file-input:hover {
    border-color: #3D95CE;
    background: #f0f8ff;
}

.file-input:focus {
    outline: none;
    border-color: #3D95CE;
    background: white;
    box-shadow: 0 5px 15px rgba(61, 149, 206, 0.2);
}

.logo-preview {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    position: relative;
    display: inline-block;
    max-width: 100px;
}

.logo-preview.hidden {
    display: none;
}

.logo-preview img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 8px;
    display: block;
}

.remove-logo-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.remove-logo-btn:hover {
    background: #c82333;
}

.footer {
    text-align: center;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer p {
    margin: 0;
}