/**
 * GameOver Saved Posts - Frontend Styles
 */

/* Wrapper */
.flavor-sp-wrapper {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Save Button */
.flavor-sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
    border: none;
}
.flavor-sp-btn:hover { color: #ffffff; }
.flavor-sp-btn:active { transform: translateY(0) !important; }
.flavor-sp-btn.flavor-sp-loading { cursor: not-allowed; }

/* Counter */
.flavor-sp-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

/* List Container */
.flavor-sp-list-container {
    max-width: 100%;
}
.flavor-sp-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
}
.flavor-sp-count {
    font-weight: 500;
}
.flavor-sp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.flavor-sp-list-wrapper {
    position: relative;
    min-height: 50px;
    transition: opacity 0.2s ease;
}
.flavor-sp-loading-page .flavor-sp-list-wrapper {
    opacity: 0.4;
    pointer-events: none;
}

/* List Items */
.flavor-sp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.flavor-sp-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.flavor-sp-item.flavor-sp-removing {
    opacity: 0.5;
}

/* Thumbnail */
.flavor-sp-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}
.flavor-sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details */
.flavor-sp-details {
    flex-grow: 1;
    min-width: 0;
}
.flavor-sp-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
    margin-bottom: 5px;
}
.flavor-sp-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.flavor-sp-title:hover {
    color: #667eea;
}
.flavor-sp-date {
    font-size: 12px;
    color: #999;
}

/* Remove Button */
.flavor-sp-remove {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    font-size: 14px;
    font-weight: bold;
}
.flavor-sp-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}
.flavor-sp-remove.flavor-sp-loading {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.flavor-sp-empty {
    text-align: center;
    padding: 60px 20px;
}
.flavor-sp-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.flavor-sp-empty h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}
.flavor-sp-empty p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.flavor-sp-browse-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.flavor-sp-browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: #ffffff;
}

/* Private & Login */
.flavor-sp-private {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.flavor-sp-login-msg {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}
.flavor-sp-login-msg a {
    color: #667eea;
    font-weight: 500;
}

/* ==================== */
/* PAGINATION - MODERN DESIGN */
/* ==================== */
.flavor-sp-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

/* Alignment Classes */
.flavor-sp-pagination-left {
    justify-content: flex-start !important;
}
.flavor-sp-pagination-center {
    justify-content: center !important;
}
.flavor-sp-pagination-right {
    justify-content: flex-end !important;
}

/* Page Buttons */
.flavor-sp-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.flavor-sp-page-btn:hover:not(:disabled):not(.active) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.flavor-sp-page-btn:active:not(:disabled) {
    transform: translateY(0);
}

.flavor-sp-page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.flavor-sp-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.flavor-sp-page-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Arrow Buttons */
.flavor-sp-page-btn.flavor-sp-page-prev,
.flavor-sp-page-btn.flavor-sp-page-next {
    min-width: 42px;
    padding: 0;
    background: #f8fafc;
}

.flavor-sp-page-btn.flavor-sp-page-prev:hover:not(:disabled),
.flavor-sp-page-btn.flavor-sp-page-next:hover:not(:disabled) {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.flavor-sp-page-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Dots */
.flavor-sp-page-dots {
    color: #94a3b8;
    padding: 0 6px;
    font-size: 14px;
    letter-spacing: 2px;
    user-select: none;
}

/* Simple Style Info */
.flavor-sp-page-info {
    font-size: 15px;
    font-weight: 500;
    padding: 0 20px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.flavor-sp-page-current {
    font-weight: 700;
    font-size: 18px;
    color: #667eea;
}
.flavor-sp-page-total {
    opacity: 0.7;
}

/* ==================== */
/* NOTIFICATIONS */
/* ==================== */
.flavor-sp-notification {
    position: fixed;
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 350px;
}
.flavor-sp-notification-visible {
    opacity: 1;
}

/* Notification Positions */
.flavor-sp-notification-bottom-right {
    bottom: 30px;
    right: 30px;
    transform: translateY(20px);
}
.flavor-sp-notification-bottom-right.flavor-sp-notification-visible {
    transform: translateY(0);
}
.flavor-sp-notification-bottom-left {
    bottom: 30px;
    left: 30px;
    transform: translateY(20px);
}
.flavor-sp-notification-bottom-left.flavor-sp-notification-visible {
    transform: translateY(0);
}
.flavor-sp-notification-bottom-center {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
}
.flavor-sp-notification-bottom-center.flavor-sp-notification-visible {
    transform: translateX(-50%) translateY(0);
}
.flavor-sp-notification-top-right {
    top: 30px;
    right: 30px;
    transform: translateY(-20px);
}
.flavor-sp-notification-top-right.flavor-sp-notification-visible {
    transform: translateY(0);
}
.flavor-sp-notification-top-left {
    top: 30px;
    left: 30px;
    transform: translateY(-20px);
}
.flavor-sp-notification-top-left.flavor-sp-notification-visible {
    transform: translateY(0);
}
.flavor-sp-notification-top-center {
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
}
.flavor-sp-notification-top-center.flavor-sp-notification-visible {
    transform: translateX(-50%) translateY(0);
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */
@media (max-width: 768px) {
    .flavor-sp-item {
        flex-wrap: wrap;
    }
    .flavor-sp-thumb {
        width: 60px;
        height: 45px;
    }
    .flavor-sp-details {
        flex-basis: calc(100% - 120px);
    }
    .flavor-sp-title {
        white-space: normal;
    }
    .flavor-sp-notification {
        left: 15px !important;
        right: 15px !important;
        max-width: none;
    }
    .flavor-sp-pagination {
        justify-content: center !important;
    }
    .flavor-sp-page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .flavor-sp-btn {
        width: 100%;
        justify-content: center;
    }
    .flavor-sp-wrapper {
        flex-direction: column;
    }
    .flavor-sp-item {
        padding: 12px;
    }
    .flavor-sp-thumb {
        display: none;
    }
    .flavor-sp-details {
        flex-basis: calc(100% - 50px);
    }
    .flavor-sp-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
