:root {
    --bg-dark: #10101d;
    --bg-header: #1a1a2e;
    --card-bg: #2c2c54;
    --text-light: #f5f5f7;
    --text-muted: #b0b0c0;
    --primary-color: #e94560;
    --accent-purple: #a23fed;
    --like-color: #2ed573;
    --dislike-color: #ff4757;
    --superlike-color: #575fcf;
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    --radius: 40px;
    --font-main: 'Poppins', sans-serif;
}

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

html {
    overscroll-behavior-y: contain;
}

body {
    font-family: var(--font-main);
    background: #0f0c29;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    overflow: hidden;
}

.main-wrapper {
    width: 100%; max-width: 500px; height: 95vh;
    max-height: 950px; min-height: 800px;
    background: rgba(16, 16, 29, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    overflow: hidden; position: relative;
    border: 2px solid #333; z-index: 1;
}

.main-header {
    padding: 20px 30px; text-align: center;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.9), rgba(16, 16, 29, 0.9) 100%);
    flex-shrink: 0; border-bottom: 1px solid #2a2a3e;
    position: relative;
}

/* Świąteczny pasek na górze */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; /* Cieńszy pasek */
    background: repeating-linear-gradient(
        90deg,
        #ff4757, #ff4757 20px,
        #2ed573 20px, #2ed573 40px,
        #f1c40f 40px, #f1c40f 60px,
        #3742fa 60px, #3742fa 80px
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 100;
    animation: christmas-lights-move 30s linear infinite;
    opacity: 0.8;
}

@keyframes christmas-lights-move {
    0% { background-position: 0 0; }
    100% { background-position: 500px 0; }
}

.header-top { display: flex; align-items: center; justify-content: space-between; height: 50px; margin-bottom: 15px; gap: 15px; position: relative; z-index: 101; }

.logo-container { display: flex; align-items: center; gap: 15px; }

.logo-icon { color: var(--primary-color); font-size: 2.5rem; }
.logo-text { font-weight: 800; font-size: 2.1rem; color: #fff; margin: 0; }

/* PRZYWRÓCONY ORYGINALNY STYL TRUST BADGE */
.trust-badge { 
    background: var(--accent-purple); 
    color: #fff; 
    font-size: 0.9rem; 
    padding: 9px 15px; 
    border-radius: 16px; 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    white-space: nowrap; 
    flex-shrink: 0;
    position: relative; /* Zapewnia widoczność nad tłem */
    z-index: 102; /* Wyżej niż pasek świąteczny */
    box-shadow: 0 4px 15px rgba(162, 63, 237, 0.4); /* Delikatny cień dla wyróżnienia */
}

.hero-cta-box { margin-bottom: 10px; }
.hero-title { font-size: 1.6rem; font-weight: 800; color:#fff; }
.hero-lead { font-size: 1rem; color: var(--text-muted); margin-top: 8px; }

.hero-cta-btn {
    margin-top: 15px; background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    color: #fff; font-weight: 600; font-size: 1.3rem; border: none;
    border-radius: 999px; padding: 16px 35px; cursor: pointer; width: 100%;
    box-shadow: 0 6px 30px #a23fed66; transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-cta 2.5s infinite;
}

@keyframes pulse-cta {
    0% { transform: scale(1); box-shadow: 0 6px 30px #a23fed66; }
    50% { transform: scale(1.03); box-shadow: 0 10px 40px #e9456088; }
    100% { transform: scale(1); box-shadow: 0 6px 30px #a23fed66; }
}

.swipe-area { flex-grow: 1; display: flex; flex-direction: column; padding: 20px; position: relative; overflow: hidden; }
.card-stack-wrapper { flex-grow: 1; position: relative; }
.card-stack, #status-message { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }

#status-message { display: none; align-items: center; justify-content: center; color: #777; text-align: center; padding: 20px; flex-direction: column; }
#status-message h3 { font-size: 1.8rem; }

.profile-card {
    width: 100%; height: 100%; background-color: var(--card-bg);
    border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; position: absolute; cursor: grab;
    display: flex; flex-direction: column; justify-content: flex-end;
    border: 3px solid transparent;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-card:nth-of-type(1) { z-index: 3; }
.profile-card:nth-of-type(2) { transform: translateY(0) scale(0.95); z-index: 2; }
.profile-card:nth-of-type(3) { transform: translateY(0) scale(0.9); z-index: 1; }
.profile-card.dragging { transition: none; }

.profile-card img { position: absolute; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.profile-status {
    position: absolute; top: 25px; left: 25px; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px); color: #fff; padding: 8px 16px; border-radius: 99px;
    font-size: 0.9rem; font-weight: 600; text-shadow: 1px 1px 3px #0008;
    display: flex; align-items: center; gap: 8px;
}

.profile-status.online:before {
    content: ''; display: block; width: 10px; height: 10px;
    background-color: var(--like-color); border-radius: 50%;
    animation: pulse-online 2s infinite;
}

.profile-status.recent { color: var(--text-muted); }

@keyframes pulse-online {
    0% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 213, 115, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

.swipe-overlay { position: absolute; top: 60px; font-size: 3.5rem; font-weight: 800; text-transform: uppercase; border: 6px solid; border-radius: 25px; padding: 8px 25px; opacity: 0; z-index: 20; transition: opacity 0.2s ease; }
#like-overlay { color: var(--like-color); border-color: var(--like-color); transform: rotate(-15deg); left: 30px;}
#nope-overlay { color: var(--dislike-color); border-color: var(--dislike-color); transform: rotate(15deg); right: 30px;}

.profile-info { position: relative; z-index: 10; padding: 30px; background: linear-gradient(to top, rgba(0, 0, 0, 1) 30%, transparent); color: white; }
.profile-info h2 { font-size: 2.2rem; font-weight: 600; text-shadow: 2px 2px 5px #000; }
.profile-info p { font-size: 1.3rem; opacity: 0.9; margin-top: 10px; text-shadow: 1px 1px 3px #000; }

.action-footer { display: flex; justify-content: space-around; align-items: center; padding: 20px 30px 30px 30px; flex-shrink: 0; background: rgba(16, 16, 29, 0.8); border-top: 1px solid #2a2a3e; }

/* Świąteczne przyciski (efekt szkła) */
.control-btn {
    width: 80px; height: 80px; border-radius: 50%; border: none; 
    background-color: rgba(42, 42, 62, 0.6); 
    color: #888;
    font-size: 2.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4), inset 0 0 10px rgba(255,255,255,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.control-btn:hover { transform: scale(1.15); border-color: rgba(255,255,255,0.3); }

.control-btn.like { color: var(--like-color); width: 95px; height: 95px; font-size: 3.2rem; text-shadow: 0 0 15px rgba(46, 213, 115, 0.4); }
.control-btn.dislike { color: var(--dislike-color); text-shadow: 0 0 10px rgba(255, 71, 87, 0.4); }
.control-btn.superlike { color: var(--superlike-color); text-shadow: 0 0 10px rgba(87, 95, 207, 0.4); }

.control-btn.active-like { transform: scale(1.2); box-shadow: 0 0 35px var(--like-color); }
.control-btn.active-dislike { transform: scale(1.2); box-shadow: 0 0 35px var(--dislike-color); }

.popup { display: none; position: fixed; z-index: 9998; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); justify-content: center; align-items: center; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.popup-content { background: var(--bg-header); color: #fff; border-radius: 30px; padding: 2.5rem 3rem; width: 90%; max-width: 480px; text-align: center; position: relative; border: 1px solid var(--accent-purple); box-shadow: 0 10px 60px #000; }
.close-popup { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; font-weight: 300; cursor: pointer; color: #888; transition: color 0.2s; }
.close-popup:hover { color: #fff; }

.popup-content h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.popup-content p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.1rem; line-height: 1.6; }

.popup-cta-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple)); color: #fff; font-weight: 800; font-size: 1.4rem;
    text-transform: uppercase; letter-spacing: 1px; border: none; border-radius: 999px;
    padding: 20px 40px; cursor: pointer; width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-cta-btn:hover { transform: scale(1.05); box-shadow: 0 8px 30px #e9456088; }

.trust-logos { margin-top: 30px; font-size: 0.9rem; color: #aaa; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.trust-logos span { display: flex; align-items: center; }
.trust-logos i { margin-right: 10px; color: var(--like-color); font-size: 1.2rem; }

#notification-container { position: fixed; bottom: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }

.notification-popup {
    background: linear-gradient(135deg, var(--bg-header), var(--card-bg)); color: var(--text-light); padding: 15px 20px;
    border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.4); border: 1px solid var(--accent-purple);
    display: flex; align-items: center; gap: 15px; opacity: 0; transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.notification-popup.show { opacity: 1; transform: translateX(0); }
.notification-popup i { font-size: 1.5rem; color: var(--like-color); }
.notification-popup div strong { font-weight: 800; color: #fff; }

/* === RESPONSIVE DESIGN === */

@media (max-width: 500px) {
    body { padding: 0; }
    .main-wrapper {
        width: 100%; height: 100vh; height: 100dvh;
        max-height: none; min-height: 0; border-radius: 0; border: none;
    }
    .main-header { padding: 10px 15px; }
    .header-top { margin-bottom: 10px; }
    .logo-container { gap: 10px; }
    .logo-icon { font-size: 2rem; }
    .logo-text { font-size: 1.5rem; }
    .trust-badge { font-size: 11px; padding: 6px 10px; font-weight: 500; }
    .hero-title { font-size: 1.3rem; margin-top: 5px; }
    .hero-lead { font-size: 0.9rem; }
    .hero-cta-btn { font-size: 1rem; padding: 12px 20px; }
    .swipe-area { padding: 10px; }
    .profile-card { border-radius: 20px; }
    .profile-info { padding: 20px; }
    .profile-info h2 { font-size: 1.8rem; }
    .profile-info p { font-size: 1rem; }
    .action-footer {
        padding: 10px 20px; padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
    .control-btn { width: 60px; height: 60px; font-size: 1.6rem; }
    .control-btn.like { width: 75px; height: 75px; font-size: 2.2rem; }
    .popup-content { width: 95%; padding: 1.5rem; }
    .popup-content h3 { font-size: 1.6rem; }
    .popup-content p { font-size: 0.9rem; }
    #notification-container {
        bottom: 110px; bottom: calc(100px + env(safe-area-inset-bottom));
        right: 10px; width: calc(100% - 20px); align-items: flex-end;
    }
    .notification-popup { padding: 10px 15px; font-size: 0.8rem; }
    .notification-popup i { font-size: 1.2rem; }
}

@media (max-height: 750px) {
    .main-header { padding-top: 10px; padding-bottom: 5px; }
    .header-top { margin-bottom: 5px; }
    .hero-title { font-size: 1.1rem; margin: 0; }
    .hero-lead { font-size: 0.8rem; margin-top: 2px; }
    .hero-cta-btn { font-size: 0.9rem; padding: 8px 15px; margin-top: 8px; }
    .profile-info { padding: 15px; }
    .profile-info h2 { font-size: 1.5rem; }
    .profile-info p { font-size: 0.9rem; }
    .action-footer { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
    .control-btn { width: 55px; height: 55px; font-size: 1.5rem; }
    .control-btn.like { width: 70px; height: 70px; font-size: 2rem; }
}

/* === EFEKTY ŚWIĄTECZNE (ŚNIEG) === */
.snowflake {
    position: fixed;
    top: -30px;
    color: #ffffff;
    font-size: 1em;
    user-select: none;
    z-index: 10001;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear forwards;
}

@keyframes snowfall {
    0% { transform: translateY(-30px) translateX(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) translateX(100px) rotate(360deg); opacity: 0.3; }
}
