:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --primary-text: #ffffff;
    --secondary-text: #b3b3b3;
    --accent-color: #e94057;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text);
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.main-view {
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page {
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.page.active {
    display: flex;
}

.stack {
    position: relative;
    width: 90vw;
    max-width: 400px;
    height: 75vh;
    max-height: 600px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    touch-action: none;
    user-select: none;
    will-change: transform;
}

.card-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.card-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.card-content p {
    font-size: 16px;
    color: var(--secondary-text);
    text-shadow: 1px 1px 2px var(--shadow-color);
    line-height: 1.4;
}

.card-content span {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    background-color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 15px;
}

.menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid #333;
    padding: 10px 0;
    flex-shrink: 0;
}

.menu button {
    background: none;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.menu button.active {
    color: var(--accent-color);
}

.menu button:hover {
    color: var(--primary-text);
}

.profile-page-container {
    text-align: center;
    padding: 20px;
}

.profile-page-container h2 {
    margin-bottom: 5px;
}
.profile-page-container p {
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--secondary-text);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}