/*
 * Styles for the Preferred Source Banner
 */

/* Base Banner Styles */
.lcb-banner-container {
    display: none; /* Hidden by default, JS will show it */
    position: fixed;
    background-color: #2c3e50; /* Dark blue/grey - default */
    color: #ffffff;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    z-index: 10000;
    border-radius: 8px;
    
    /* Flexbox layout */
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lcb-message {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    width: 100%;
}

.lcb-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.lcb-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.lcb-button:hover {
    background-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lcb-button-deny {
    background-color: rgba(255, 255, 255, 0.7);
}

.lcb-button-ok {
    background-color: rgba(255, 255, 255, 0.9);
}

.lcb-credit {
    position: absolute;
    bottom: 3px;
    right: 8px;
    font-size: 9px;
    opacity: 0.4;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lcb-credit:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* ========================================
   POSITION STYLES
   ======================================== */

/* Full Width Bottom (Default) */
.lcb-position-bottom-full {
    bottom: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
}

/* Square Left Side */
.lcb-position-left-square {
    bottom: 20px;
    left: 20px;
    width: 380px;
    max-width: calc(100% - 40px);
}

/* Square Right Side */
.lcb-position-right-square {
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100% - 40px);
}

/* Center Top */
.lcb-position-center-top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: calc(100% - 40px);
}

/* ========================================
   COLOR SCHEMES
   ======================================== */

/* Dark Blue (Default) */
.lcb-color-dark-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.lcb-color-dark-blue .lcb-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.lcb-color-dark-blue .lcb-button:hover {
    background-color: #ffffff;
    color: #5568d3;
}

/* Light / White */
.lcb-color-light {
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lcb-color-light .lcb-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.lcb-color-light .lcb-button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* Green */
.lcb-color-green {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff;
}

.lcb-color-green .lcb-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #059669;
}

.lcb-color-green .lcb-button:hover {
    background-color: #ffffff;
    color: #047857;
}

/* Red */
.lcb-color-red {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #ffffff;
}

.lcb-color-red .lcb-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #dc2626;
}

.lcb-color-red .lcb-button:hover {
    background-color: #ffffff;
    color: #b91c1c;
}

/* Orange */
.lcb-color-orange {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: #ffffff;
}

.lcb-color-orange .lcb-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #ea580c;
}

.lcb-color-orange .lcb-button:hover {
    background-color: #ffffff;
    color: #c2410c;
}

/* Purple */
.lcb-color-purple {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: #ffffff;
}

.lcb-color-purple .lcb-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #7c3aed;
}

.lcb-color-purple .lcb-button:hover {
    background-color: #ffffff;
    color: #6d28d9;
}

/* Black */
.lcb-color-black {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #ffffff;
}

.lcb-color-black .lcb-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1f2937;
}

.lcb-color-black .lcb-button:hover {
    background-color: #ffffff;
    color: #111827;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Responsive styles for bottom-full position on larger screens */
@media (min-width: 768px) {
    .lcb-position-bottom-full {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 40px;
        text-align: left;
    }
    
    .lcb-position-bottom-full .lcb-message {
        max-width: 75%;
        margin-right: 20px;
        font-size: 16px;
    }
    
    .lcb-position-bottom-full .lcb-button {
        flex-shrink: 0;
    }
}

/* Mobile adjustments for square positions */
@media (max-width: 480px) {
    .lcb-position-left-square,
    .lcb-position-right-square,
    .lcb-position-center-top {
        width: calc(100% - 20px);
        left: 10px;
        right: auto;
        transform: none;
    }
    
    .lcb-position-center-top {
        top: 10px;
    }
}
