/* GesundLich Popup Styles */

* {
    font-family: 'Source Sans Pro', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
}

:root {
    --gl-primary: #c00000;
    --gl-primary-hover: #a00000;
    --gl-dark: #1f2937;
    --gl-gray: #6b7280;
    --gl-light-gray: #f3f4f6;
    --gl-border: #e5e7eb;
}

/* Floating Button */
#gl-popup-button {
    position: fixed;
    bottom: 30px;
    width: 70px;
    height: 70px;
    background: var(--gl-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    z-index: 9998;
    transition: all 0.3s ease;
}

#gl-popup-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
}

#gl-popup-button.bottom-right { right: 30px; }
#gl-popup-button.bottom-left { left: 30px; }

#gl-popup-button svg {
    width: 28px;
    height: 28px;
}

/* Main Popup Container */
.gl-popup {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 450px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 9999;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.gl-popup.open {
    display: block;
}

.gl-popup.bottom-left {
    right: auto;
    left: 30px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup Header */
.gl-popup-header {
    background: var(--gl-light-gray);
    padding: 20px;
    border-bottom: 1px solid var(--gl-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gl-popup-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gl-popup-title img {
    width: 40px;
    height: 40px;
}

.gl-popup-title h1 {
    margin: 0;
    font-size: 18px;
    color: var(--gl-dark);
    font-weight: 600;
}

.gl-popup-title .tradeMark {
    font-size: 12px;
    vertical-align: super;
}

.gl-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gl-gray);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.gl-close-btn:hover {
    background: white;
    color: var(--gl-dark);
}

/* Main Menu Screen */
.gl-main-menu {
    padding: 20px;
}

.gl-main-menu h4 {
    color: var(--gl-dark);
    font-size: 14px;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.gl-menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gl-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #ECECEC;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.gl-menu-item:hover {
    background: var(--gl-light-gray);
    transform: translateX(4px);
}

.gl-menu-icon {
    width: 40px;
    height: 40px;
    background: var(--gl-light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gl-menu-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gl-gray);
}

.gl-menu-content {
    flex: 1;
}

.gl-menu-content .gl-menu-title {
    display: block;
    margin: 0 0 2px 0;
    font-size: 15px;
    color: #392C2C;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.gl-menu-content p {
    margin: 0;
    font-size: 13px;
    color: #392C2C;
    font-weight: 400;
    font-family: 'Source Sans Pro', sans-serif;
}

.gl-menu-arrow {
    color: var(--gl-gray);
}

/* Sub Screens */
.gl-sub-screen {
    display: none;
}

.gl-sub-screen.active {
    display: block;
}

/* Hide main menu when submenu is active */
.gl-popup.submenu-active .gl-main-menu {
    display: none;
}

/* Submenu Headers */
.gl-submenu-header {
    background: var(--gl-primary);
    color: white;
    padding: 16px 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gl-submenu-header h1 {
    font-size: 24px !important;
    font-weight: 600;
    margin: 0;
    color: white;
    font-family: 'Montserrat', sans-serif !important;
}

.gl-submenu-header svg {
    color: white;
}

/* Hide entire popup header in submenus */
.gl-popup.submenu-active .gl-popup-header {
    display: none;
}

.gl-back-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.gl-back-btn:hover {
    background: #f8f8f8;
    transform: scale(1.05);
}

.gl-back-btn svg {
    color: var(--gl-primary);
    width: 20px;
    height: 20px;
}

/* Downloads Screen */
.gl-downloads-content {
    padding: 20px;
    padding-top:5px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Source Sans Pro', sans-serif;
}

.gl-downloads-content * {
    font-family: 'Source Sans Pro', sans-serif;
}

.gl-download-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--gl-border);
    border-radius: 12px;
    margin-bottom: 12px;
}

.gl-download-icon {
    width: 40px;
    height: 40px;
    background: var(--gl-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gl-download-info {
    flex: 1;
}

.gl-download-info h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #392C2C;
    font-weight: 600;
}

.gl-download-info p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: var(--gl-gray);
    line-height: 1.4;
}

.gl-download-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--gl-gray);
}

.gl-download-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gl-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.gl-download-btn:hover {
    background: var(--gl-primary-hover);
}

/* Events Screen */
.gl-events-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Source Sans Pro', sans-serif;
}

.gl-events-content * {
    font-family: 'Source Sans Pro', sans-serif;
}

.gl-event-item {
    padding: 20px;
    background: var(--gl-light-gray);
    border-radius: 12px;
    margin-bottom: 12px;
}

.gl-event-item a{
    color: #fff;
}

.gl-event-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.gl-event-date {
    background: var(--gl-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.gl-event-item h5 {
    margin: 12px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #392C2C;
}

.gl-event-item p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--gl-gray);
    line-height: 1.5;
}

.gl-signup-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--gl-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.gl-signup-btn:hover {
    background: var(--gl-primary-hover);
}

/* Feedback Screen */
.gl-feedback-content {
    padding: 20px;
    font-family: 'Source Sans Pro', sans-serif;
}

.gl-feedback-content * {
    font-family: 'Source Sans Pro', sans-serif;
}

.gl-feedback-intro {
    font-size: 14px;
    color: var(--gl-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.gl-feedback-group {
    margin-bottom: 20px;
}

.gl-feedback-group label {
    display: block;
    font-size: 14px;
    color: var(--gl-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.gl-rating-stars {
    display: flex;
    gap: 8px;
}

.gl-star {
    width: 40px;
    height: 40px;
    background: var(--gl-light-gray);
    border: 2px solid var(--gl-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gl-star:hover {
    background: #fee2e2;
    border-color: var(--gl-primary);
}

.gl-star.selected {
    background: var(--gl-primary);
    border-color: var(--gl-primary);
}

.gl-star svg {
    width: 24px;
    height: 24px;
    color: var(--gl-primary);
}

.gl-star.selected svg {
    color: white;
}

.gl-feedback-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--gl-border);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.gl-feedback-textarea:focus {
    outline: none;
    border-color: var(--gl-primary);
}

.gl-feedback-email {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gl-border);
    border-radius: 8px;
    font-size: 14px;
}

.gl-feedback-email:focus {
    outline: none;
    border-color: var(--gl-primary);
}

.gl-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gl-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.gl-submit-btn:hover:not(:disabled) {
    background: var(--gl-primary-hover);
}

.gl-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Message */
.gl-success-message {
    padding: 20px;
    text-align: center;
}

.gl-success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.gl-success-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.gl-success-message h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--gl-dark);
}

.gl-success-message p {
    margin: 0;
    color: var(--gl-gray);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .gl-popup {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        bottom: 100px;
    }
}