/* Modern CSS for Share Words Platform - Dropbox Style */
:root {
    --primary-blue: #0061FF;
    --light-blue: #E8F2FF;
    --dark-blue: #004DC7;
    --gray-50: #F7F9FC;
    --gray-100: #E8EAED;
    --gray-200: #DADCE0;
    --gray-600: #5F6368;
    --gray-800: #3C4043;
    --white: #FFFFFF;
    --success: #34A853;
    --error: #EA4335;
    --border-radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 97, 255, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--light-blue) 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    min-height: 56px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-800);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.1);
}

.textarea {
    resize: vertical;
    min-height: 200px;
    font-family: inherit;
}

/* Navigation Links */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 16px 24px;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 8px;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--dark-blue);
}

/* Share Form Styles */
.share-form {
    display: grid;
    gap: 24px;
}

.share-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 4px;
}

/* Result Display */
.result-card {
    background: var(--light-blue);
    border: 1px solid var(--primary-blue);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 24px 0;
}

.share-id {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    margin: 16px 0;
    padding: 16px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px dashed var(--primary-blue);
}

.qr-container {
    text-align: center;
    margin: 20px 0;
}

.qr-code {
    display: inline-block;
    padding: 16px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Content Display */
.content-display {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.url-link {
    display: block;
    color: var(--primary-blue);
    text-decoration: none;
    margin: 8px 0;
    padding: 8px 12px;
    background: var(--light-blue);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.url-link:hover {
    background: var(--gray-100);
}

/* Loading and Status */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-600);
}

.status-message {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin: 16px 0;
    font-weight: 500;
}

.status-success {
    background: rgba(52, 168, 83, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-error {
    background: rgba(234, 67, 53, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
}

.footer a {
    color: var(--gray-800);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 24px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .share-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .textarea {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 16px;
    }
    
    .footer {
        position: relative;
        margin-top: 40px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none; } 