/* Reset and Variables */
:root {
    --primary: #d63384;
    --primary-dark: #b02167;
    --primary-light: #ff66b2;
    --secondary: #6f42c1;
    --accent: #ffc107;
    --text-main: #212529;
    --text-muted: #6c757d;
    --bg-main: #fcf4f8;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(214, 51, 132, 0.15);
    --border-radius: 16px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    background-image: linear-gradient(135deg, rgba(255, 230, 240, 0.5) 0%, rgba(240, 230, 255, 0.5) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
}

/* Layout */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-icon {
    font-size: 1.8rem;
}

main {
    flex: 1;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.app-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Language Switch */
.lang-switch {
    background: var(--white);
    padding: 0.3rem 0.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.lang-switch button {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: all 0.2s;
}

.lang-switch button.active {
    color: var(--primary);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-body);
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 0.8rem;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    font-family: var(--font-body);
    margin-bottom: 0.8rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Cards & Forms */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
}

/* Screen animations */
.screen {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* UI Elements */
.live-counter {
    text-align: center;
    margin: 2rem 0;
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
    display: inline-block;
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.upload-btn {
    display: block;
    border: 2px dashed var(--primary);
    background: var(--bg-main);
    color: var(--primary);
    padding: 2rem 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

#photo-preview {
    margin: 1.5rem 0;
}

#photo-preview img {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow);
}

/* Utils */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Wall List */
.wall-list {
    list-style: none;
}

.wall-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wall-avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.wall-info h4 { margin-bottom: 0.2rem; font-family: var(--font-body); color: var(--text-main); font-size: 1rem;}
.wall-info p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.wall-rank { margin-left: auto; font-weight: 600; color: var(--primary); }

/* Progress bar */
.progress-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 12px;
    width: 100%;
    margin: 1rem 0;
    overflow: hidden;
}
.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
