/* ==========================================================================
   Opera GX Extension Compatibility - Stylesheet
   ========================================================================== */

:root {
    --primary-red: #ff1b2d;
    --primary-red-hover: #ff3344;
    --primary-red-dark: #d60e20;
    --primary-red-glow: rgba(255, 27, 45, 0.35);
    --primary-red-subtle: rgba(255, 27, 45, 0.08);
    --primary-red-border: rgba(255, 27, 45, 0.25);
    
    --bg-dark: #090a0f;
    --bg-card: rgba(255, 255, 255, 0.97);
    --border-card: rgba(255, 255, 255, 0.9);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --success-green: #10b981;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-card: 24px;
    --radius-btn: 14px;
    --radius-pill: 50px;
    --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(255, 27, 45, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255, 27, 45, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(30, 41, 59, 0.5) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Background Broken Icons Animation & Decoration
   ========================================================================== */
.bg-broken-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.broken-icon {
    position: absolute;
    color: rgba(255, 27, 45, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatSlow 8s ease-in-out infinite alternate;
}

.broken-icon .error-badge {
    position: absolute;
    font-size: 0.38em;
    color: rgba(255, 27, 45, 0.85);
    top: -6%;
    right: -10%;
    background: #090a0f;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 0 10px rgba(255, 27, 45, 0.4);
}

/* Floating animation */
@keyframes floatSlow {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(5deg); }
}

/* Icon Positions & Variations */
.icon-pos-1 {
    top: 8%;
    left: 6%;
    font-size: 6.5rem;
    animation-duration: 9s;
    animation-delay: 0s;
}

.icon-pos-2 {
    top: 7%;
    right: 8%;
    font-size: 8rem;
    color: rgba(255, 27, 45, 0.2);
    animation-duration: 11s;
    animation-delay: 1s;
}

.icon-pos-3 {
    top: 45%;
    left: 3%;
    font-size: 5.5rem;
    animation-duration: 10s;
    animation-delay: 2s;
}

.icon-pos-4 {
    top: 42%;
    right: 4%;
    font-size: 6rem;
    animation-duration: 8.5s;
    animation-delay: 0.5s;
}

.icon-pos-5 {
    bottom: 8%;
    left: 7%;
    font-size: 7rem;
    animation-duration: 12s;
    animation-delay: 3s;
}

.icon-pos-6 {
    bottom: 7%;
    right: 7%;
    font-size: 6.5rem;
    animation-duration: 9.5s;
    animation-delay: 1.5s;
}

.icon-pos-7 {
    top: 22%;
    left: 18%;
    font-size: 4rem;
    opacity: 0.4;
    animation-duration: 7s;
}

.icon-pos-8 {
    bottom: 22%;
    right: 18%;
    font-size: 4.5rem;
    opacity: 0.4;
    animation-duration: 8s;
}

/* ==========================================================================
   Page Container & Main Card
   ========================================================================== */
.page-container {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 36px 20px;
}

.store-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 45px rgba(255, 27, 45, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 590px;
    width: 100%;
    padding: 42px 38px;
    text-align: center;
    position: relative;
    animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Top Live Activity Bar */
.live-activity {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--success-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--success-green);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Notice Tag */
.compatibility-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-red-subtle);
    color: #dc2626;
    border: 1px solid var(--primary-red-border);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.compatibility-notice i {
    animation: shakeAlert 3s infinite ease-in-out;
}

@keyframes shakeAlert {
    0%, 80%, 100% { transform: rotate(0deg); }
    85% { transform: rotate(-8deg); }
    90% { transform: rotate(8deg); }
    95% { transform: rotate(-5deg); }
}

/* Browser Visual Transfer */
.browser-transfer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.browser-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--transition-smooth);
}

.chrome-badge {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    position: relative;
}

.chrome-badge i.fa-chrome {
    font-size: 1.15rem;
    color: #94a3b8;
}

.cross-badge {
    font-size: 0.7rem;
    color: #dc2626;
    margin-left: -2px;
}

.transfer-arrow {
    color: var(--primary-red);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    animation: arrowPulse 1.6s infinite ease-in-out;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.65; }
    50% { transform: translateX(5px); opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 27, 45, 0.6)); }
}

.opera-badge {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px var(--primary-red-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.opera-badge i.fa-opera {
    font-size: 1.2rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
    font-size: 1.72rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.store-desc {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.store-desc strong {
    color: var(--text-main);
    font-weight: 700;
}

/* ==========================================================================
   Extension Features Box
   ========================================================================== */
.extension-features {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 24px;
    text-align: left;
    transition: var(--transition-smooth);
}

.extension-features:hover {
    border-color: #cbd5e1;
    background-color: #fcfdfe;
}

.features-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 14px;
}

.features-header i {
    font-size: 1.05rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon-wrap {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.feature-icon-wrap i {
    color: var(--success-green);
    font-size: 0.78rem;
}

.features-list strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1px;
}

.features-list span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.42;
}

/* ==========================================================================
   Step Guide Bar
   ========================================================================== */
.install-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.step-item {
    background: var(--primary-red-subtle);
    border: 1px dashed var(--primary-red-border);
    border-radius: 12px;
    padding: 11px 15px;
    font-size: 0.86rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: var(--transition-smooth);
}

.step-item:hover {
    background: rgba(255, 27, 45, 0.07);
    border-color: rgba(255, 27, 45, 0.4);
}

.step-badge {
    background-color: var(--primary-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.step-text {
    flex: 1;
    font-weight: 500;
}

/* ==========================================================================
   Primary Download Button (CTA)
   ========================================================================== */
.btn-store-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 17px 24px;
    border-radius: var(--radius-btn);
    box-shadow: 
        0 10px 25px var(--primary-red-glow),
        0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shimmer shine effect across button */
.btn-store-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    animation: shineEffect 4.5s infinite;
}

@keyframes shineEffect {
    0%, 60% { left: -100%; }
    100% { left: 200%; }
}

.btn-store-primary:hover {
    background: linear-gradient(135deg, var(--primary-red-hover) 0%, var(--primary-red) 100%);
    box-shadow: 0 14px 34px rgba(255, 27, 45, 0.55);
    transform: translateY(-2.5px);
}

.btn-store-primary:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(255, 27, 45, 0.4);
}

.btn-store-primary i.fa-opera {
    font-size: 2.3rem;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    margin: 0 16px;
    text-align: left;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.btn-sub {
    font-size: 0.78rem;
    opacity: 0.92;
    font-weight: 500;
    margin-top: 2px;
}

.download-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(4px); }
    60% { transform: translateY(2px); }
}

/* ==========================================================================
   Footer Trust Badges
   ========================================================================== */
.verified-footer {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verified-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.verified-footer i.fa-circle-check,
.verified-footer i.fa-shield-halved {
    color: var(--success-green);
    font-size: 0.88rem;
}

.footer-bullet {
    color: #cbd5e1;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 620px) {
    .page-container {
        padding: 20px 14px;
    }

    .store-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.42rem;
    }

    .store-desc {
        font-size: 0.89rem;
    }

    .btn-store-primary {
        padding: 14px 16px;
    }

    .btn-store-primary i.fa-opera {
        font-size: 1.9rem;
    }

    .btn-title {
        font-size: 0.96rem;
    }

    .btn-sub {
        font-size: 0.72rem;
    }

    .icon-pos-7,
    .icon-pos-8 {
        display: none;
    }
}
