/**
 * The Green Game - Floating Notifications Styling
 * Premium Redesign
 */

.tgg-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'Roboto', sans-serif;
}

.tgg-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #7ad03a, #5fb82a);
}

.tgg-notification--visible {
    transform: translateX(0);
}

.tgg-notification__link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 48px 20px 24px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.tgg-notification__link:hover {
    background-color: #f9fdf7;
}

/* Icon Styles */
.tgg-notification__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9eb;
    border-radius: 50%;
    color: #7ad03a;
}

.tgg-notification__icon.tgg-icon-review {
    background: #fff8e1;
    color: #f5a623;
}

.tgg-notification__icon svg {
    width: 20px;
    height: 20px;
}

.tgg-star-icon {
    font-size: 24px;
    line-height: 1;
}

/* Content Styles */
.tgg-notification__content {
    flex: 1;
    min-width: 0;
}

.tgg-notification__message {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #4a5568;
}

.tgg-notification--review .tgg-notification__message {
    font-style: italic;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tgg-notification__cta {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7ad03a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Review Specific */
.tgg-notification__header {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.tgg-notification__author {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
}

.tgg-notification__stars {
    color: #f5a623;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.tgg-notification__date {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Close Button */
.tgg-notification__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #a0aec0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    padding: 0;
}

.tgg-notification__close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #718096;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tgg-notification {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
    }

    .tgg-notification__link {
        padding: 16px 44px 16px 16px;
    }
}

/* Dark mode support - Optional but good practice */
@media (prefers-color-scheme: dark) {
    .tgg-notification {
        background: #1a202c;
        border-color: #2d3748;
    }

    .tgg-notification__message {
        color: #e2e8f0;
    }

    .tgg-notification__link:hover {
        background-color: #2d3748;
    }

    .tgg-notification__author {
        color: #f7fafc;
    }
}

/* Print: Hide notifications */
@media print {
    .tgg-notification {
        display: none !important;
    }
}