/* GoodFellas Banner Plugin - Frontend Styles */

/* Base Container */
.gf-banner-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

.gf-banner-container * {
    box-sizing: border-box;
}

/* Modal Style Container */
.gf-banner-style-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gf-banner-style-modal.gf-banner-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Overlay Backdrop */
.gf-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

/* Modal Banner Card */
.gf-banner-style-modal .gf-banner-inner {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(15px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gf-banner-style-modal.gf-banner-visible .gf-banner-inner {
    transform: scale(1) translateY(0);
}

/* Bottom Bar Style Container */
.gf-banner-style-bottom_bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    width: 92%;
    max-width: 800px;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gf-banner-style-bottom_bar.gf-banner-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.gf-banner-style-bottom_bar .gf-banner-inner {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 22px;
    gap: 18px;
}

/* Close Button */
.gf-banner-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gf-banner-close:hover {
    background: rgba(0, 0, 0, 0.18);
    transform: scale(1.08);
}

/* Banner Media Image */
.gf-banner-media {
    width: 100%;
    max-height: 260px;
    overflow: hidden;
    background: #f1f5f9;
}

.gf-banner-style-bottom_bar .gf-banner-media {
    width: 80px;
    height: 80px;
    max-height: 80px;
    border-radius: 10px;
    flex-shrink: 0;
}

.gf-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Area */
.gf-banner-content {
    padding: 24px 28px;
}

.gf-banner-style-bottom_bar .gf-banner-content {
    padding: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-right: 28px;
}

.gf-banner-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.gf-banner-style-bottom_bar .gf-banner-title {
    font-size: 17px;
    margin: 0;
}

.gf-banner-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 18px;
}

.gf-banner-style-bottom_bar .gf-banner-text {
    margin-bottom: 0;
    font-size: 14px;
}

.gf-banner-actions {
    margin-top: 8px;
}

.gf-banner-style-bottom_bar .gf-banner-actions {
    margin-top: 0;
    flex-shrink: 0;
}

.gf-banner-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gf-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .gf-banner-style-bottom_bar {
        width: 95%;
        bottom: 12px;
    }

    .gf-banner-style-bottom_bar .gf-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .gf-banner-style-bottom_bar .gf-banner-content {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
    }

    .gf-banner-style-bottom_bar .gf-banner-media {
        width: 100%;
        height: 140px;
        max-height: 140px;
    }
}
