/* Telegram Native CSS Variables
   These variables are injected by Telegram Web App automatically */
   :root {
    --bg-color: var(--tg-theme-bg-color, #ffffff);
    --text-color: var(--tg-theme-text-color, #000000);
    --hint-color: var(--tg-theme-hint-color, #999999);
    --link-color: var(--tg-theme-link-color, #2481cc);
    --button-color: var(--tg-theme-button-color, #2481cc);
    --button-text-color: var(--tg-theme-button-text-color, #ffffff);
    --secondary-bg-color: var(--tg-theme-secondary-bg-color, #f0f0f0);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--secondary-bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    user-select: none; /* Prevent text selection like a real app */
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: var(--bg-color);
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.header p {
    margin: 8px 0 0;
    color: var(--hint-color);
    font-size: 14px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* Tinder-like Card */
.card-container {
    width: 100%;
    max-width: 350px;
    height: 450px;
    position: relative;
    perspective: 1000px;
    margin-bottom: 30px;
}

.event-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-card.empty-state {
    border: 2px dashed var(--hint-color);
    background-color: transparent;
    box-shadow: none;
}

.event-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.event-card p {
    color: var(--hint-color);
    line-height: 1.5;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 300px;
}

.btn {
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:active {
    transform: scale(0.95);
}

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

.btn-success {
    background-color: #34c759;
    color: white;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .header {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .event-card {
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
}
