/**
 * In-App Notification Styles
 * Based on Figma design: Rectangle 4 (node-id=23-676)
 */

/* Notification Overlay */
.in-app-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px;
}

.in-app-notification-overlay.show {
    display: flex;
    opacity: 1;
}

/* Notification Card - Content Background */
.in-app-notification-card {
    background: #FFFFFF;
    border-radius: 32px;
    max-width: 377px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.in-app-notification-overlay.show .in-app-notification-card {
    transform: scale(1);
}

/* Close Button */
.in-app-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.in-app-notification-close:hover {
    background: #FFFFFF;
    transform: scale(1.1);
}

.in-app-notification-close::before,
.in-app-notification-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #2F3A5F;
}

.in-app-notification-close::before {
    transform: rotate(45deg);
}

.in-app-notification-close::after {
    transform: rotate(-45deg);
}

/* Image Section - Rectangle 4 */
.in-app-notification-image {
    width: calc(100% - 40px);
    height: 255px;
    margin: 20px 20px 0 20px;
    border-radius: 20px;
    object-fit: cover;
    background: #f0f0f0;
}

/* Content Section */
.in-app-notification-content {
    padding: 20px 30px 30px 30px;
}

/* Title - "Just Dropped: Luke Combs..." */
.in-app-notification-title {
    font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 0.9em;
    letter-spacing: -0.01em;
    color: #2F3A5F;
    margin: 0 0 16px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Subtitle - "You asked, we listened..." */
.in-app-notification-subtitle {
    font-family: 'Polymath Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.1em;
    color: #2F3A5F;
    margin: 0 0 16px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Prize Details */
.in-app-notification-details {
    font-family: 'Polymath Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.4em;
    color: #2F3A5F;
    margin: 0 0 20px 0;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Primary Button - "Get your Tickets" */
.in-app-notification-button {
    width: 100%;
    height: 50px;
    background: #ED1E79;
    border: 1px solid #ED1E79;
    border-radius: 25px;
    font-family: 'Polymath Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.24em;
    text-transform: uppercase;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.in-app-notification-button:hover {
    background: #d91a6b;
    border-color: #d91a6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 30, 121, 0.3);
}

.in-app-notification-button:active {
    transform: translateY(0);
}

/* Maybe Later Link */
.in-app-notification-dismiss {
    display: block;
    text-align: center;
    font-family: 'Polymath Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3em;
    text-transform: uppercase;
    color: #2F3A5F;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.in-app-notification-dismiss:hover {
    color: #ED1E79;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .in-app-notification-overlay {
        padding: 10px;
    }
    
    .in-app-notification-card {
        border-radius: 24px;
        max-height: 95vh;
    }
    
    .in-app-notification-image {
        height: 200px;
        margin: 15px 15px 0 15px;
        width: calc(100% - 30px);
    }
    
    .in-app-notification-content {
        padding: 15px 20px 20px 20px;
    }
    
    .in-app-notification-title {
        font-size: 18px;
    }
}

/* Smooth scrolling for overflow content */
.in-app-notification-card {
    -webkit-overflow-scrolling: touch;
}

.in-app-notification-card::-webkit-scrollbar {
    width: 6px;
}

.in-app-notification-card::-webkit-scrollbar-track {
    background: transparent;
}

.in-app-notification-card::-webkit-scrollbar-thumb {
    background: rgba(47, 58, 95, 0.2);
    border-radius: 3px;
}

.in-app-notification-card::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 58, 95, 0.3);
}
