/* Save Job Button - Heart Icon */
.madb-jobs-inbox-save-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    margin-left: auto;
}

.madb-jobs-inbox-save-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

.madb-jobs-inbox-save-btn:active {
    transform: scale(0.95);
}

.madb-jobs-inbox-save-icon {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.madb-jobs-inbox-save-btn:hover .madb-jobs-inbox-save-icon {
    color: #ef4444;
    stroke-width: 2.5;
}

/* Saved state */
.madb-jobs-inbox-save-btn.saved {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
}

.madb-jobs-inbox-save-btn.saved .madb-jobs-inbox-save-icon {
    fill: #ef4444;
    color: #ef4444;
    stroke-width: 2;
}

.madb-jobs-inbox-save-btn.saved:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.05);
}

/* Animation on save */
@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.madb-jobs-inbox-save-btn.saving {
    animation: heartbeat 0.6s ease;
}

/* Light mode styles removed - toggle only affects video opacity */

/* Hero content styling when heart is saved on single job post */
body.single-job.heart-saved .madb-hero-content {
    backdrop-filter: blur(9px);
    background-color: #f80c314d;
}

/* Heart Toggle Animation - Exact CodePen Implementation */
.heart-container {
    width: 100px;
    height: 100px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
}


.heart-container.active .side {
    background-color: red;
}

.heart-container.active .trigger {
    background-color: white;
}

.heart-container .side {
    width: 130px;
    height: 200px;
    background: #F9D6D6;
    display: block;
    border-radius: 100vmax;
    position: absolute;
    bottom: 0;
    isolation: isolate;
    transition: all 0.5s ease;
    transition-delay: 0.2s;
    left: 50%;
    z-index: 2;
}

.heart-container .side--left {
    transform: rotate(-45deg) translateX(-30%);
    border-bottom-left-radius: 5vmax;
}

.heart-container .side--right {
    transform: rotate(45deg) translateX(30%);
    border-bottom-right-radius: 5vmax;
    margin-left: -5px !important;
}

.heart-container .trigger {
    width: 100px;
    aspect-ratio: 1;
    background-color: red;
    border-radius: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    transform: translate(10px, -50px);
    transition: all 0.5s ease;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
    filter: drop-shadow(20px 15px 12px rgba(0, 0, 0, 0.15));
}

@keyframes switchAnim {
    0% {
        transform: translate(10px, -50px);
    }
    50% {
        transform: translate(65px, 0px);
    }
    100% {
        transform: translate(120px, -50px);
    }
}

@keyframes switchAnimReverse {
    100% {
        transform: translate(10px, -50px);
    }
    50% {
        transform: translate(65px, 0px);
    }
    0% {
        transform: translate(120px, -50px);
    }
}

.switchAnim {
    animation: switchAnim;
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-timing-function: ease;
}

.switchAnimReverse {
    animation: switchAnimReverse;
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.02, 0.48, 0.69, 0.97);
}

/* Single Job Hero Layout - Two Column */
body.single-job .madb-hero-text {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

body.single-job .madb-hero-left {
    flex: 0 1 auto;
    max-width: 900px;
}

body.single-job .madb-hero-right {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 300px;
    height: 300px;
}

/* Responsive */
@media (max-width: 968px) {
    body.single-job .madb-hero-text {
        flex-direction: column !important;
    }
    
    body.single-job .madb-hero-right {
        width: 100%;
        justify-content: flex-start !important;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .madb-jobs-inbox-save-btn {
        width: 40px;
        height: 40px;
    }
    
    .madb-jobs-inbox-save-icon {
        width: 20px;
        height: 20px;
    }
    
    .heart-container {
        width: 80px;
        height: 80px;
    }
    
    .heart-container .side {
        width: 104px;
        height: 160px;
    }
    
    .heart-container .trigger {
        width: 80px;
    }
}

/* Adjust listing header to accommodate heart */
.madb-jobs-inbox-listing-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.madb-jobs-inbox-listing-company {
    flex-shrink: 0;
}

.madb-jobs-inbox-listing-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.madb-jobs-inbox-listing-date {
    margin-left: auto;
    flex-shrink: 0;
}
