/*
 Theme Name:   GiftCodeNgon Child
 Theme URI:    https://giftcodengon.com
 Description:  GeneratePress Child Theme
 Author:       GiftCodeNgon
 Author URI:   https://giftcodengon.com
 Template:     generatepress
 Version:      4.13.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  giftcodengon-child
*/

/* Custom styles will be added here */

/* PWA Install Button */
.pwa-install-btn {
    background: var(--color-primary) !important;
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 6px 12px;
    /* Smaller padding */
    border-radius: var(--radius-md);
    margin-right: 12px;
    cursor: pointer;
    font-size: var(--text-sm);
    /* Smaller text */
    display: none;
    /* JS toggles this */
    align-items: center;
    gap: 6px;
    transition: var(--transition-base);
}

.pwa-install-btn:hover {
    background: var(--color-primary-hover) !important;
}

.pwa-install-btn i {
    width: auto;
    margin: 0;
    font-size: 1.1em;
}

/* Pulse animation matching primary color */
@keyframes pwaPulse {
    0% {
        box-shadow: 0 0 0 0 var(--color-primary-light);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Mobile Layout Fixes */
@media (max-width: 768px) {

    /* 1. Share & Install Button on same row */
    .hero-share {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .pwa-install-btn {
        margin-right: 0;
        margin-bottom: 0;
        /* No new line */
        order: 1;
        /* Ensure order */
    }

    .share-label {
        display: none;
        /* Hide 'Chia sẻ:' text on mobile to save space if needed, or keep smaller */
    }

    .share-buttons {
        order: 2;
        display: flex;
        gap: 8px;
    }

    /* 2. Featured Stats (Usage & Reviews) Side-by-Syde */
    .hero-featured-stats {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px;
        margin-bottom: 15px;
    }

    .hero-featured-stat {
        flex: 1;
        /* Equal width */
        min-width: 0;
        /* Prevent overflow */
        padding: 10px !important;
        justify-content: center;
        text-align: center;
    }

    .hero-featured-stat .stat-label {
        font-size: 11px;
        /* Smaller label */
        white-space: nowrap;
    }

    .hero-featured-stat .stat-value {
        font-size: 16px;
        /* Smaller value */
    }

    .hero-featured-stat i {
        font-size: 18px;
        /* Smaller icon */
    }
}
