/* Vakantie Tinder Styling */
.vakantie-tinder-section {
    padding: 60px 0;
    min-height: 70vh;
    background: #f8f9fa;
}

/* Start Screen */
.tinder-start {
    text-align: center;
    padding: 60px 30px;
}

.tinder-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.tinder-start h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.tinder-start p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.tinder-start .subtitle {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.btn-start {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    background: #e1b05b !important;
    border-color: #e1b05b !important;
    color: white !important;
}

.btn-start:hover {
    background: #d19f4a !important;
    border-color: #d19f4a !important;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 15px;
    right: 0;
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

/* Card Stack */
.card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 550px;
    margin: 0 auto 30px;
    touch-action: none;
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    transition: transform 0.1s ease;
    touch-action: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

.swipe-card .touch-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: transparent;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card.swiping {
    transition: none !important;
    cursor: grabbing;
}

.swipe-card.swipe-left {
    animation: swipeLeft 0.3s ease-out forwards;
}

.swipe-card.swipe-right {
    animation: swipeRight 0.3s ease-out forwards;
}

@keyframes swipeLeft {
    to {
        transform: translateX(-150%) rotate(-30deg);
        opacity: 0;
    }
}

@keyframes swipeRight {
    to {
        transform: translateX(150%) rotate(30deg);
        opacity: 0;
    }
}

.swipe-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

.swipe-card .card-content {
    padding: 30px;
}

.swipe-card h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.swipe-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Swipe Indicator Overlay */
.swipe-card .swipe-indicator {
    position: absolute;
    top: 50px;
    font-size: 80px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.1s ease;
    pointer-events: none;
    z-index: 10;
}

.swipe-card .swipe-indicator.yes {
    right: 50px;
    color: #4CAF50;
    transform: rotate(20deg);
}

.swipe-card .swipe-indicator.no {
    left: 50px;
    color: #f44336;
    transform: rotate(-20deg);
}

.swipe-card.showing-yes .swipe-indicator.yes,
.swipe-card.showing-no .swipe-indicator.no {
    opacity: 1;
}

/* Swipe Actions */
.swipe-actions {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
}

.swipe-actions button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.swipe-actions button:focus {
    outline: none;
}

.swipe-actions button:active {
    transform: scale(0.95);
}

.swipe-actions .btn-no {
    border-color: #f44336;
    color: #f44336;
}

.swipe-actions .btn-no:hover {
    background: #f44336;
    color: white;
    transform: scale(1.1);
}

.swipe-actions .btn-yes {
    border-color: #4CAF50;
    color: #4CAF50;
}

.swipe-actions .btn-yes:hover {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

/* Results Screen */
.tinder-results {
    text-align: center;
    padding: 40px 30px;
}

.tinder-results h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.tinder-results .intro {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.matches-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.match-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    flex: 0 1 calc(50% - 15px);
    min-width: 250px;
    text-align: center;
}

.match-card .rank {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.match-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.match-card .country {
    font-size: 16px;
    color: #999;
    margin-bottom: 15px;
}

.match-card .score {
    display: inline-block;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.tinder-results .actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.tinder-results .btn-compare {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    background: #e1b05b !important;
    border-color: #e1b05b !important;
    color: white !important;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
}

.tinder-results .btn-compare:hover {
    background: #d19f4a !important;
    border-color: #d19f4a !important;
}

.tinder-results .btn-restart {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #666;
    color: #666;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tinder-results .btn-restart:hover {
    background: #666;
    color: white;
}

/* Loading Screen */
.tinder-loading {
    text-align: center;
    padding: 80px 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tinder-loading p {
    font-size: 18px;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vakantie-tinder-section {
        padding: 30px 0;
    }

    .tinder-logo {
        width: 150px;
    }

    .tinder-start h2 {
        font-size: 32px;
    }

    .card-stack {
        max-width: 100%;
        height: 500px;
    }

    .swipe-card img {
        height: 350px;
    }

    .swipe-card .card-content {
        padding: 20px;
    }

    .swipe-card h3 {
        font-size: 24px;
    }

    .swipe-actions {
        gap: 40px;
    }

    .swipe-actions button {
        width: 60px;
        height: 60px;
    }

    .match-card {
        flex: 0 1 100%;
    }

    .tinder-results h2 {
        font-size: 28px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .swipe-actions button {
        width: 80px;
        height: 80px;
    }

    .swipe-card {
        cursor: grab;
    }

    .swipe-card:active {
        cursor: grabbing;
    }
}
