/* =============================================
   NAIROBIRAA Dating - Swipe Styles
   ============================================= */

/* Swipe Container */
.swipe-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    height: calc(100vh - 180px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Card Stack */
.card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 550px;
    margin: 0 auto;
}

/* Individual Cards */
.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: grab;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content Overlay */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.card-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.card-content .age {
    font-size: 20px;
    font-weight: normal;
    opacity: 0.9;
}

.card-content .bio {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content .distance {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 3px;
}

.card-content .interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.card-content .interests span {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

/* Photo Indicators */
.photo-indicators {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.photo-indicators .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
}

.photo-indicators .dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin-top: 10px;
    background: transparent;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn.pass {
    color: #e74c3c;
}
.action-btn.pass:hover {
    background: #e74c3c;
    color: white;
}

.action-btn.like {
    color: #2ecc71;
}
.action-btn.like:hover {
    background: #2ecc71;
    color: white;
}

.action-btn.super {
    color: #3498db;
    font-size: 20px;
}
.action-btn.super:hover {
    background: #3498db;
    color: white;
}

.action-btn.undo {
    color: #f39c12;
    font-size: 20px;
}
.action-btn.undo:hover {
    background: #f39c12;
    color: white;
}

/* Swipe Animations */
.swipe-right {
    animation: swipeRight 0.5s forwards;
}

.swipe-left {
    animation: swipeLeft 0.5s forwards;
}

.swipe-super {
    animation: swipeUp 0.5s forwards;
}

@keyframes swipeRight {
    0% { transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { transform: translateX(400px) rotate(20deg); opacity: 0; }
}

@keyframes swipeLeft {
    0% { transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { transform: translateX(-400px) rotate(-20deg); opacity: 0; }
}

@keyframes swipeUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-300px) scale(0.8); opacity: 0; }
}

/* Like/Pass Overlays */
.like-overlay, .pass-overlay, .super-overlay {
    position: absolute;
    top: 30px;
    font-size: 80px;
    font-weight: bold;
    padding: 10px 20px;
    border: 5px solid;
    border-radius: 10px;
    opacity: 0;
    z-index: 5;
    transform: rotate(-20deg);
}

.like-overlay {
    right: 30px;
    color: #2ecc71;
    border-color: #2ecc71;
}

.pass-overlay {
    left: 30px;
    color: #e74c3c;
    border-color: #e74c3c;
    transform: rotate(20deg);
}

.super-overlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    color: #3498db;
    border-color: #3498db;
    font-size: 60px;
}

/* No Profiles Message */
.no-profiles {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-profiles .icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.no-profiles h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-profiles p {
    font-size: 16px;
    color: #999;
}

/* Match Popup */
.match-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.5s;
}

.match-popup .content {
    background: white;
    border-radius: 30px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: bounceIn 0.6s;
}

.match-popup .content .icon {
    font-size: 80px;
    margin-bottom: 10px;
}

.match-popup .content h2 {
    font-size: 32px;
    color: #FF4081;
    margin-bottom: 5px;
}

.match-popup .content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.match-popup .content .match-photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.match-popup .content .match-photos img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FF4081;
}

.match-popup .content .btn-match {
    background: #FF4081;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

.match-popup .content .btn-match:hover {
    background: #E91E63;
    transform: scale(1.05);
}

.match-popup .content .btn-continue {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

.match-popup .content .btn-continue:hover {
    background: #e0e0e0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
    .swipe-container {
        height: calc(100vh - 160px);
        min-height: 400px;
        padding: 5px;
    }
    
    .card-stack {
        max-height: 450px;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .action-buttons {
        gap: 12px;
        padding: 12px;
    }
    
    .card-content h3 {
        font-size: 20px;
    }
    
    .card-content .age {
        font-size: 18px;
    }
    
    .match-popup .content {
        padding: 30px;
    }
    
    .match-popup .content h2 {
        font-size: 26px;
    }
}