/*
 * pack-support.css — ad-blocker notice + "support" reminder (pack pages)
 * Must load AFTER font-awesome: .support-icon overrides .fa font-size at equal
 * specificity, so it is linked where the old inline <style> block was.
 */

/* Adblock message styles */
#adblock-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 32, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.adblock-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(26, 26, 64, 0.9), rgba(26, 26, 64, 0.7));
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(138, 43, 226, 0.3);
    color: var(--text);
    overflow: hidden;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from { transform: translate(-50%, -40%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

.adblock-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.adblock-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%238a2be2' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.adblock-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(138, 43, 226, 0.5);
    position: relative;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    from { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(138, 43, 226, 0.5); }
    to { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 25px rgba(138, 43, 226, 0.7); }
}

.adblock-icon i {
    font-size: 2.5rem;
    color: white;
}

.adblock-container h2 {
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.adblock-container h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.adblock-message-text {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.adblock-message-text span {
    color: var(--primary-light);
    font-weight: 500;
}

.adblock-image {
    max-width: 200px;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: perspective(800px) rotateY(5deg);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.adblock-image:hover {
    transform: perspective(800px) rotateY(0) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.adblock-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.refresh-button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.refresh-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.0));
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.refresh-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(138, 43, 226, 0.5);
}

.refresh-button:hover::before {
    transform: translateX(0);
}

.continue-button {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.continue-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
    .adblock-container {
        padding: 30px 20px;
    }
    
    .adblock-icon {
        width: 60px;
        height: 60px;
    }
    
    .adblock-icon i {
        font-size: 1.8rem;
    }
    
    .adblock-container h2 {
        font-size: 1.6rem;
    }
    
    .adblock-message-text {
        font-size: 1rem;
    }
    
    .adblock-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .refresh-button, .continue-button {
        width: 100%;
    }
}

/* Support reminder styles */
.support-reminder {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 64, 0.9), rgba(26, 26, 64, 0.8));
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    max-width: 300px;
    animation: slideUp 0.5s ease-out;
}

.support-reminder-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.9rem;
}

.support-icon {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.reenable-button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
}

.reenable-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dismiss-buttons {
    display: flex;
    gap: 5px;
}

.dismiss-reminder-button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dismiss-reminder-button:hover {
    color: var(--text);
    transform: scale(1.1);
}

.permanent-dismiss {
    color: rgba(255, 100, 100, 0.6);
}

.permanent-dismiss:hover {
    color: rgba(255, 100, 100, 0.9);
}

@media (max-width: 576px) {
    .support-reminder {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .support-reminder-content {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .reenable-button {
        margin-left: auto;
        margin-right: 10px;
    }
}
