/* --- GLOBAL BODY STYLING --- */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f6efff;
}

/* --- START NAVBAR & LOGO FIX --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* THE LOGO FIX: Keeps it at 50px regardless of original file size */
.logo {
    height: 50px; 
    width: auto;
    display: block;
}

.hamburger {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #4A3267; /* Deep Plum */
    display: none; /* Hidden on desktop, shown via media query */
}

.nav-center {
    display: flex;
    gap: 20px;
}

.nav-center a {
    text-decoration: none;
    color: #4A3267;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.nav-center a:hover {
    color: #DE638A; /* Rose Pink */
}

.nav-right {
    font-weight: bold;
    font-size: 12px;
    color: #4A3267;
}

@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-center { display: none; }
}
/* --- END NAVBAR & LOGO FIX --- */

.label {
    color: #4A3267;
    font-weight: 600;
}

/* Page Wrapper */
.page-wrapper {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
}

/* --- FIXED TINDER DECK CONTAINER --- */
#cards-container {
    position: relative;
    width: 320px;
    height: 580px;
    margin: auto;
}

/* --- FIXED STACKED TINDER CARD --- */
.card {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 1000px;
    pointer-events: auto; /* Ensures buttons remain clickable */
}

/* Inner flip engine */
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card.flip .card-inner {
    transform: rotateY(180deg);
}

/* Front & Back Face Alignment */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 8px 25px rgba(74, 50, 103, 0.15); /* Plum-tinted shadow */
    display: flex;
    flex-direction: column;
}

.card-back {
    transform: rotateY(180deg);
    padding: 20px;
    font-size: 13px;
    overflow-y: auto;
    background: #fff;
}

/* Photo (Square Top Placement) */
.photo {
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #4A3267;
}

/* Content Area inside Cards */
.content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content h3 {
    margin: 0;
    font-size: 18px;
    color: #4A3267;
}

.role {
    font-size: 13px;
    font-weight: 600;
    color: #DE638A;
}

.meta {
    font-size: 12px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Action Container at Card Bottom */
.actions {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 10px;
    background: #faf8ff;
    border-top: 1px solid #f0e6ff;
}

/* Wrapper (Icon + Text) */
.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Reset default button behaviors */
.btn-wrapper button,
.btn-wrapper a {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Icon Sizing */
.custom-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Label text below buttons */
.btn-wrapper span {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* Interactive hover response */
.btn-wrapper button:hover .custom-icon,
.btn-wrapper a:hover .custom-icon {
    transform: scale(1.18);
}