/* WLC Floating Rewards Widget Stylesheet v1.1 */

:root {
    --brand-color: #279d9e;
    --brand-font: 'Righteous', sans-serif;
    --text-color: #333;
    --text-color-light: #666;
    --border-color: #e9e9e9;
}

/* --- Launcher Button --- */
#wlc-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    background-color: var(--brand-color);
    color: white;
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
}
#wlc-launcher:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Panel --- */
#wlc-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    width: 370px;
    background: #fdfdfd;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    visibility: hidden;
    transition: all 0.25s ease;
}
#wlc-panel.wlc-panel-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* --- Panel Header (Logged In) --- */
.wlc-panel-header-user {
    background: var(--brand-color);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}
.wlc-panel-header-user h3 {
    font-family: var(--brand-font);
    margin: 0;
    font-size: 1.5rem;
}
.wlc-panel-header-user .wlc-points-balance {
    font-family: var(--brand-font);
    font-size: 3rem;
    line-height: 1.1;
    margin-top: 10px;
}
.wlc-panel-header-user .wlc-points-label {
    opacity: 0.8;
}
#wlc-close-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    line-height: 1;
    opacity: 0.7;
    cursor: pointer;
    padding: 5px;
}
#wlc-close-panel:hover {
    opacity: 1;
}

/* --- Panel Header (Guest) --- */
.wlc-panel-header-guest {
    padding: 25px 20px;
    text-align: center;
}
.wlc-panel-header-guest h3 {
    font-family: var(--brand-font);
    font-size: 1.6rem;
    color: var(--text-color);
    margin: 0;
}

/* --- Panel Content --- */
#wlc-panel-content {
    flex-grow: 1;
    overflow-y: auto;
}
.wlc-panel-content-inner {
    padding: 10px 20px 20px 20px;
}
.wlc-panel-content-inner p {
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 20px;
}

/* Action Links */
.wlc-action-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.wlc-action-list a:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}
.wlc-action-list a:hover {
    background-color: #f5f5f5;
}
.wlc-action-list a strong {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}
.wlc-action-list a svg {
    color: var(--brand-color);
}

/* CTA Button */
a.wlc-button {
    display: block;
    width: 100%;
    background: var(--brand-color);
    color: white !important;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: filter 0.2s ease;
}
a.wlc-button:hover {
    filter: brightness(90%);
}

/* --- Footer --- */
.wlc-panel-footer {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #aaa;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}
.wlc-panel-footer svg {
    color: var(--brand-color);
}

/* --- Loader --- */
.wlc-loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid var(--brand-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive styles */
@media (max-width: 480px) {
    #wlc-panel {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
    }
    #wlc-launcher {
        bottom: 10px;
        right: 10px;
    }
}