/* Comparison Page Layout */
.boat-compare-wrapper {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.boat-compare-wrapper.ready {
    opacity: 1;
}

.compare-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.compare-page-header h1 {
    font-size: 56px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: #111;
    letter-spacing: -2.5px;
}

.compare-page-header p {
    font-size: 20px;
    color: #666;
    margin-top: 15px;
}

/* Compare Grid */
.boat-compare-grid {
    display: flex;
    gap: 40px;
    position: relative;
    border-radius: 30px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.compare-col {
    flex: 1;
    background: #fdfdfe;
    border-radius: 20px;
    padding: 40px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.divider-circle {
    width: 50px;
    height: 50px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    border: 6px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Empty State */
.empty-col-message {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #bbb;
}

.empty-icon-wrap {
    margin-bottom: 25px;
    color: #eee;
}

.empty-col-message h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ddd;
    margin-bottom: 10px;
}

.empty-col-message p {
    font-size: 15px;
    max-width: 250px;
}

/* Detailed Compare Views */
.compare-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

.compare-app-info {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.compare-app-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.compare-app-name {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #27CFC3;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.compare-item-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin: 0;
}

.remove-compare-item {
    background: #fdfdfe;
    border: 1px solid #eee;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: #888;
}

.remove-compare-item:hover {
    background: #fdeaea;
    color: #ef4444;
    border-color: #fdeaea;
    transform: translateY(-1px);
}

.compare-item-media {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    background: #fdfdfe;
    border: 1px solid rgba(0, 0, 0, 0.03);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-heuristic-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.compare-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.compare-score-circle.high {
    background: #27CFC3;
}

.compare-score-circle.med {
    background: #ff9800;
}

.compare-score-circle.low {
    background: #f44336;
}

.compare-pass-fail {
    display: flex;
    gap: 15px;
    font-weight: 700;
    font-size: 14px;
}

.compare-pass-fail .pass {
    color: #27CFC3;
}

.compare-pass-fail .fail {
    color: #f44336;
}

.compare-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.compare-item-details {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.detail-label {
    font-size: 13px;
    font-weight: 700;
    color: #bbb;
}

.detail-value {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.btn-view-full {
    display: block;
    width: 100%;
    padding: 18px;
    margin-top: 30px;
    background: #27CFC3;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.btn-view-full:hover {
    transform: translateY(-2px);
    background: #1fb9af;
}

/* Compare Button for Cards */
.boat-compare-btn {
    position: absolute;
    top: 15px;
    right: 60px;
    /* Offset to be next to Save button (which is at right: 15px) */
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.boat-compare-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.boat-compare-btn.active {
    background: #27CFC3;
    color: #fff;
    border-color: #27CFC3;
    box-shadow: 0 8px 20px rgba(39, 207, 195, 0.3);
}

/* Specific positioning overrides to stay next to save button */
.app-card-media .boat-compare-btn {
    top: 20px;
    right: 65px;
}

.screenshot-card-premium .boat-compare-btn {
    top: 12px;
    right: 56px;
}

.heuristic-card-premium .boat-compare-btn {
    top: 15px;
    right: 60px;
}

/* Footer Bar */
.boat-compare-footer-bar {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back-library {
    color: #111;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.btn-clear-all {
    background: transparent;
    border: 1px solid #eee;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-all:hover {
    background: #fdeaea;
    color: #ef4444;
    border-color: #fdeaea;
}

/* Floating Status Bar for Comparison */
#compare-sticky-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111;
    color: #fff;
    padding: 12px 12px 12px 25px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#compare-sticky-nav.visible {
    transform: translateX(-50%) translateY(0);
}

.compare-previews {
    display: flex;
    align-items: center;
    gap: -10px;
    /* Slight overlap for premium look */
}

.sticky-thumb-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #111;
    background: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sticky-thumb-wrap:not(:first-child) {
    margin-left: -10px;
}

.sticky-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-indicator-text {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.compare-actions-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-go-compare {
    background: #27CFC3;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.2s;
}

.btn-go-compare:hover {
    background: #1fb9af;
    transform: translateY(-1px);
}

#sticky-clear-all {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

#sticky-clear-all:hover {
    background: #ef4444;
}

@media (max-width: 900px) {
    .boat-compare-grid {
        flex-direction: column;
        gap: 0;
    }

    .compare-divider {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        height: 1px;
        margin: 40px 0;
    }

    .divider-circle {
        transform: scale(0.8);
    }
}