/* PeteITcms Match - WhatsApp Messenger Style */

.peteitcms-match-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.peteitcms-match-card-stack {
    position: relative;
    max-width: 320px;
    height: 450px;
    width: 100%;
    margin: 0 auto 30px auto;
}

.peteitcms-match-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #202c33;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 168, 132, 0.3);
    cursor: grab;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    border: 2px solid #00a884;
}

.peteitcms-match-card:active {
    cursor: grabbing;
}

.peteitcms-match-card.peteitcms-swipe-left {
    transform: translateX(-150%) rotate(-30deg);
    opacity: 0;
}

.peteitcms-match-card.peteitcms-swipe-right {
    transform: translateX(150%) rotate(30deg);
    opacity: 0;
}

.peteitcms-match-card-image {
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.peteitcms-match-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(17, 27, 33, 0.8) 100%);
}

.peteitcms-match-author-badge {
    display: none !important;
}

.peteitcms-match-card-content {
    padding: 20px;
    height: 40%;
    background: #2a3942;
    color: #e9edef;
}

.peteitcms-match-card-name {
    font-size: 28px;
    font-weight: 700;
    color: #e9edef;
    margin-bottom: 8px;
}

.peteitcms-match-card-meta {
    color: #8696a0;
    font-size: 14px;
    margin-bottom: 12px;
}

.peteitcms-match-card-about {
    color: #e9edef;
    font-size: 14px;
    line-height: 1.5;
}

.peteitcms-match-actions {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.peteitcms-match-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.peteitcms-match-btn:hover {
    transform: scale(1.1);
}

.peteitcms-match-btn i {
    font-size: 28px;
    margin-bottom: 4px;
}

.peteitcms-match-btn span {
    font-size: 11px;
    font-weight: 600;
}

.peteitcms-match-dislike {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.peteitcms-match-dislike:hover {
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.peteitcms-match-like {
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: #111b21;
}

.peteitcms-match-like:hover {
    box-shadow: 0 6px 16px rgba(0, 168, 132, 0.6);
}

.peteitcms-match-info {
    text-align: center;
    color: #8696a0;
    font-size: 14px;
}

.peteitcms-match-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #e9edef;
}

.peteitcms-match-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #2a3942;
    border-top-color: #00a884;
    border-radius: 50%;
    animation: peteitcms-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes peteitcms-spin {
    to { transform: rotate(360deg); }
}

.peteitcms-match-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #202c33;
    border-radius: 20px;
    border: 2px solid #00a884;
}

.peteitcms-match-empty-state i {
    font-size: 64px;
    color: #111b21 !important;
}

.peteitcms-match-empty-state h3 {
    color: #e9edef;
    font-size: 24px;
    margin-bottom: 10px;
}

.peteitcms-match-empty-state p {
    color: #8696a0;
    font-size: 16px;
    margin-bottom: 25px;
}

.peteitcms-match-second-chance-btn {
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.peteitcms-match-second-chance-btn:hover {
    background: linear-gradient(135deg, #06cf9c 0%, #00a884 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 168, 132, 0.4);
}

.peteitcms-match-second-chance-btn i {
    font-size: 20px;
}

/* Match Modal */
.peteitcms-match-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 27, 33, 0.98);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.peteitcms-match-modal.active {
    display: flex;
    animation: peteitcms-modal-fade 0.5s ease;
}

@keyframes peteitcms-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Confetti Effect */
.peteitcms-match-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00a884;
    animation: peteitcms-confetti-fall 3s linear forwards;
}

@keyframes peteitcms-confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Hearts Effect */
.peteitcms-match-heart {
    position: absolute;
    font-size: 30px;
    animation: peteitcms-heart-float 3s ease-out forwards;
    opacity: 0;
}

@keyframes peteitcms-heart-float {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(1.5);
        opacity: 0;
    }
}

.peteitcms-match-modal-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    position: relative;
    z-index: 10;
    animation: peteitcms-content-zoom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes peteitcms-content-zoom {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.peteitcms-match-modal-title {
    font-size: 48px;
    color: #00a884;
    font-weight: 700;
    margin-bottom: 30px;
    animation: peteitcms-title-pulse 1s ease infinite;
    text-shadow: 0 0 20px rgba(0, 168, 132, 0.6),
                 0 0 40px rgba(0, 168, 132, 0.4),
                 0 0 60px rgba(0, 168, 132, 0.2);
}

@keyframes peteitcms-title-pulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(0, 168, 132, 0.6),
                     0 0 40px rgba(0, 168, 132, 0.4);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 30px rgba(0, 168, 132, 0.8),
                     0 0 60px rgba(0, 168, 132, 0.6),
                     0 0 90px rgba(0, 168, 132, 0.4);
    }
}

.peteitcms-match-modal-avatars {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.peteitcms-match-modal-avatars::before {
    content: '💚';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    z-index: 5;
    animation: peteitcms-heart-beat 1s ease infinite;
}

@keyframes peteitcms-heart-beat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.peteitcms-match-modal-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #00a884;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.4),
                0 0 30px rgba(0, 168, 132, 0.6);
    animation: peteitcms-avatar-spin 0.8s ease;
}

@keyframes peteitcms-avatar-spin {
    0% {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

.peteitcms-match-modal-message {
    color: #e9edef;
    font-size: 18px;
    margin-bottom: 30px;
}

.peteitcms-match-modal-btn {
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: #fff !important;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: peteitcms-btn-glow 2s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes peteitcms-btn-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 168, 132, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 168, 132, 0.8),
                    0 0 50px rgba(0, 168, 132, 0.5);
    }
}

.peteitcms-match-modal-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: peteitcms-btn-shine 3s linear infinite;
}

@keyframes peteitcms-btn-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.peteitcms-match-modal-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 168, 132, 0.8);
}

/* Who Likes Me & Matches Grid */
.peteitcms-match-who-likes-container,
.peteitcms-match-matches-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.peteitcms-match-who-likes-container h2,
.peteitcms-match-matches-container h2 {
    color: #e9edef;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.peteitcms-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.peteitcms-match-profile-card {
    background: #202c33;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #00a884;
    position: relative;
}

.peteitcms-match-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 168, 132, 0.4);
}

.peteitcms-match-unmatch-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.peteitcms-match-unmatch-btn:hover {
    background: #ff4444;
    color: #fff;
    transform: scale(1.1);
}

.peteitcms-match-dislike-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.peteitcms-match-dislike-btn:hover {
    background: #ff4444;
    color: #fff;
    transform: scale(1.1);
}

.peteitcms-match-like-back-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.4);
}

.peteitcms-match-like-back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.6);
}

.peteitcms-match-profile-card a {
    text-decoration: none;
    color: inherit;
}

.peteitcms-match-profile-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.peteitcms-match-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.4);
}

.peteitcms-match-profile-info {
    padding: 20px;
    background: #2a3942;
}

.peteitcms-match-profile-info h3 {
    color: #e9edef;
    font-size: 20px;
    margin-bottom: 8px;
}

.peteitcms-match-date {
    color: #8696a0;
    font-size: 14px;
}

.peteitcms-match-empty {
    text-align: center;
    color: #8696a0;
    font-size: 18px;
    padding: 60px 20px;
    background: #202c33;
    border-radius: 16px;
    border: 2px solid #00a884;
}

/* Pagination */
.peteitcms-match-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
}

.peteitcms-match-pagination-btn {
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: white !important;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.peteitcms-match-pagination-btn:hover {
    background: linear-gradient(135deg, #06cf9c 0%, #00a884 100%);
        color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 132, 0.4);
}

.peteitcms-match-pagination-info {
    color: #e9edef;
    font-weight: 600;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .peteitcms-match-card-stack {
        height: 450px;
    }
    
    .peteitcms-match-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}
