/* ==================== tinder.css - Laptop optimiert ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0c;
    --card-bg: #121215;
    --text: #f1f1f3;
    --text-muted: #a0a0a5;
    --accent-green: #00ff9d;
    --accent-blue: #0066ff;
    --accent-pink: #ff2d95;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
}

.app-viewport {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==================== HEADER ==================== */
header {
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(12px);
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 100;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff2d95, #0066ff);
    border-radius: 50%;
}

.brand-name {
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: -0.8px;
}

/* ==================== DECK AREA (Laptop optimiert) ==================== */
.deck-area {
    flex: 1;
    position: relative;
    padding: 40px 40px 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-wrapper {
    position: absolute;
    width: 100%;
    max-width: 420px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.card-wrapper:nth-child(1)  { z-index: 3; }
.card-wrapper:nth-child(2)  { z-index: 2; transform: translateX(-50%) scale(0.93); opacity: 0.75; }
.card-wrapper:nth-child(3)  { z-index: 1; transform: translateX(-50%) scale(0.86); opacity: 0.45; }

.main-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    user-select: none;
    height: 620px;
    display: flex;
    flex-direction: column;
}

.image-container {
    position: relative;
    height: 460px;
    flex-shrink: 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-shadow-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.profile-meta {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-hint {
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.identity-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.profile-age {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-green);
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Swipe Animationen */
.swipe-left-anim {
    animation: swipeLeft 0.45s forwards !important;
}

.swipe-right-anim {
    animation: swipeRight 0.45s forwards !important;
}

@keyframes swipeLeft {
    to { transform: translate(-500px, -80px) rotate(-28deg) !important; opacity: 0; }
}

@keyframes swipeRight {
    to { transform: translate(500px, -80px) rotate(28deg) !important; opacity: 0; }
}

/* ==================== ACTION BUTTONS ==================== */
.action-controls {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 50px;
    z-index: 50;
}

.control-btn {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: none;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
    transition: all 0.2s ease;
}

.btn-dislike {
    background: #ff4757;
    color: white;
}

.btn-like {
    background: #00ff9d;
    color: #08080a;
    transform: scale(1.12);
}

.control-btn:hover {
    transform: scale(1.15);
}

.control-btn:active {
    transform: scale(0.9);
}

/* ==================== DETAIL SCREEN ==================== */
.screen-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 200;
    display: none;
    flex-direction: column;
}

.screen-layer.active {
    transform: translateY(0);
    display: flex;
}

.sub-header {
    padding: 16px 30px;
    background: rgba(10,10,12,0.98);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.back-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text);
    padding: 4px 10px;
    cursor: pointer;
}

.detail-hero-image {
    height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 65%;
    background: linear-gradient(transparent, var(--bg));
}

.detail-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
}

.detail-content-box {
    padding: 25px 30px;
}

.detail-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 25px 0;
}

.dashboard-tile {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 18px 20px;
    text-align: center;
}

.tile-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tile-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-green);
    margin-top: 6px;
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section h3 {
    margin-bottom: 12px;
    color: var(--accent-blue);
    font-size: 1.25rem;
}

/* ==================== MATCH LIST & CHAT ==================== */
.match-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    margin-bottom: 14px;
    transition: background 0.2s;
}

.match-item:hover {
    background: rgba(255,255,255,0.1);
}

.match-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.chat-messages {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #0a0a0c;
}

.message {
    max-width: 70%;
    padding: 14px 18px;
    border-radius: 20px;
    line-height: 1.45;
}

.message.received {
    background: #1e1e24;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.message.sent {
    background: var(--accent-blue);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    color: white;
}

.chat-input-area {
    padding: 16px 30px;
    background: var(--card-bg);
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

#chat-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 30px;
    padding: 16px 22px;
    color: white;
    font-size: 1.05rem;
}

.send-btn {
    width: 52px;
    height: 52px;
    background: var(--accent-green);
    color: #08080a;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== RESPONSIVE (Laptop + große Bildschirme) ==================== */
@media (min-width: 1024px) {
    .card-wrapper {
        max-width: 460px;
    }
    
    .main-card {
        height: 680px;
    }
    
    .image-container {
        height: 510px;
    }
}

@media (max-width: 1023px) {
    .deck-area {
        padding: 30px 20px 110px;
    }
}