/* options.css - Layout for Options Bar & Toast Only */
/* Colors are now handled by variables.css */

/* --- Options Control Bar (ALWAYS BOTTOM-FIXED) --- */
.nav-options {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(35px);

    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;

    background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light, rgba(0, 0, 0, 0.1));
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

    z-index: 99999;
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav-options {
    background: var(--bg-surface-elevated, #1e293b);
    border-color: var(--border-light, #374151);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-options:hover {
    transform: translateX(-50%) translateY(15px);
}

/* --- Option Buttons --- */
.opt-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-main, #333);
    transition: all 0.25s ease;
}

[data-theme="dark"] .opt-btn {
    color: var(--text-main, #fff);
}

.opt-btn:hover {
    background: var(--primary-color, #10b981);
    color: white !important;
    transform: scale(1.15);
    border-color: transparent;
}

/* Icon Styling */
.opt-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* === SECTION TOAST NOTIFICATIONS === */
.hmt-toast,
.hma-toast,
.motions-toast {
    position: relative;
    margin: 30px auto 50px;
    width: auto;
    max-width: 420px;
    display: inline-flex;
    left: 50%;
    transform: translateX(-50%) translateX(100px);
    align-items: center;
    gap: 15px;
    background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 20px;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 25px;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.4));
    box-shadow: var(--shadow-card);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    z-index: 100;
}

.hmt-toast.show,
.hma-toast.show,
.motions-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateX(0);
    pointer-events: all;
}

/* Titles and Text */
.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
}

.toast-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.toast-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
}

[data-theme="dark"] .toast-icon {
    background: rgba(255, 255, 255, 0.1);
}

/* Specific Section Colors (Optional overrides or keep variables) */
.toast-btn {
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.toast-btn:hover {
    transform: translateX(10px);
    border-color: transparent;
}

/* Marketplace (Green) */
.hmt-toast .toast-btn {
    background: linear-gradient(135deg, #00b327, #10b981);
}

.hmt-toast .toast-icon {
    color: #10b981;
}

/* News (Teal) */
.hma-toast .toast-btn {
    background: linear-gradient(135deg, #20c997, #0891b2);
}

.hma-toast .toast-icon {
    color: #0891b2;
}

/* Motions (Orange/Red) */
.motions-toast .toast-btn {
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
}

.motions-toast .toast-icon {
    color: #ff6b6b;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {

    .hmt_toast, .hma_toast, .hmm_toast,
    .hmt-toast, .hma-toast, .motions-toast {
        width: max-content;
        max-width: calc(100vw - 20px);
        transform: translateX(-50%) translateY(40px) scale(0.8);
        padding: 8px 12px;
        gap: 8px;
        border-radius: 16px;
        margin: 10px auto 20px;
    }

    .hmt_toast.show, .hma_toast.show, .hmm_toast.show,
    .hmt-toast.show, .hma-toast.show, .motions-toast.show {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    
    .toast-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .toast-title {
        font-size: 11px;
        margin-bottom: 1px;
        line-height: 1.2;
    }
    
    .toast-text {
        font-size: 9px;
        line-height: 1.2;
    }
    
    .toast-btn {
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 12px;
        flex-shrink: 0;
    }
}