/*
 Theme Name: hello-elementor-child
 Template: hello-elementor

*/

/* ============================================
   SCREENSAVER STYLES
   ============================================ */

/* overlay container */
.ss-screensaver {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ss-screensaver.visible {
    display: flex;
    background: rgba(10, 12, 16, 0.6);
    backdrop-filter: blur(6px) saturate(110%);
    -webkit-backdrop-filter: blur(6px) saturate(110%);
}

/* iframe inside overlay */
.ss-screensaver-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    pointer-events: none;
}

/* card */
.ss-card {
    width: min(740px, 92vw);
    max-width: 740px;
    border-radius: 12px;
    padding: 28px 28px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.6);
    transform: translateY(6px);
    animation: ss-card-in .36s cubic-bezier(.2, .9, .2, 1) both;
}

@media (max-width:780px) {
    .ss-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 14px;
        width: min(92vw, 520px);
    }

    .ss-right {
        text-align: center;
    }
}

.ss-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ss-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
}

.ss-right {
    padding: 4px 6px;
    color: #fff;
}

.ss-heading {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ss-desc {
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
    font-size: 15px;
}

.ss-hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* subtle entrance */
@keyframes ss-card-in {
    from {
        transform: translateY(12px) scale(.996);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* avoid blocking text selection globally; only prevent pointer interactions where necessary */
.ss-card {
    user-select: none;
    -webkit-user-select: none;
}

/* accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .ss-card {
        animation: none !important;
        transform: none !important;
    }

    .ss-logo {
        transition: none !important;
    }
}

/* small helper for focus outline when keyboard-navigating */
.ss-card:focus {
    outline: none;
}

.ss-logo:focus {
    outline: 2px solid rgba(108, 92, 231, 0.28);
    border-radius: 8px;
}

/* ensure overlay does not steal scrollbars layout */
.ss-active {
    padding-right: 0 !important;
}

/* custom small context menu shown inside the screensaver */
.ss-context-menu {
    min-width: 260px;
    background: rgba(20, 20, 25, 0.75);
    backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 0 rgba(255, 255, 255, 0.2) inset;
    padding: 12px;
    z-index: 10000000;
    font-size: 12px;
    font-weight: 400;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    animation: menuSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ss-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin: 4px 0;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    background: transparent;
    overflow: hidden;
}

.ss-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.ss-menu-item:hover::before {
    transform: scaleY(1);
}

.ss-menu-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.ss-menu-item:active {
    transform: translateX(4px) scale(0.98);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.15));
}

.ss-menu-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.85;
    font-style: normal;
    transition: all 0.2s ease;
}

.ss-menu-item:hover .ss-menu-icon {
    opacity: 1;
    transform: scale(1.1);
}

.ss-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    margin: 12px 8px;
    position: relative;
}

.ss-menu-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.4), transparent);
}

/* ============================================
   PROTECTION STYLES (disable copy/select)
   ============================================ */

/* Disable text selection sitewide for non-excluded elements */
body:not(.allow-copy) * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection for specific elements */
input,
textarea,
select,
[contenteditable="true"],
.allow-copy,
.allow-copy *,
.ss-screensaver,
.ss-screensaver *,
.ss-context-menu,
.ss-context-menu * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* Disable selection highlighting */
::selection {
    background: transparent;
    color: inherit;
}

::-moz-selection {
    background: transparent;
    color: inherit;
}

/* Re-enable for allowed elements */
input::selection,
textarea::selection,
[contenteditable="true"]::selection,
.allow-copy::selection,
.allow-copy *::selection {
    background: #b3d4fc !important;
    color: #000 !important;
}