/* BLORBA Custom Styles */

/* Desktop Area */
.blorba-desktop {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #008081;
    overflow: hidden;
    position: relative;
}

/* scanlines baby */
.blorba-desktop::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

/* CRT Vignette/Bloom Effect */
.blorba-desktop::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 9998;
}

.desktop-area {
    flex: 1;
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: none;
}

/* Desktop Icon */
.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    height: fit-content;
    cursor: pointer;
    padding: 5px;
    border: 1px solid transparent;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon:active,
.desktop-icon.selected {
    background: #000080;
}

.desktop-icon:active .desktop-icon-label,
.desktop-icon.selected .desktop-icon-label {
    background: #000080;
    color: white;
}

.desktop-icon-image {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-icon-image img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}

.desktop-icon-placeholder {
    font-size: 32px;
    display: none;
}

.desktop-icon-label {
    color: white;
    font-size: 11px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    padding: 2px 4px;
    line-height: 1.2;
}

/* Dialog Overlay */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-overlay.show {
    display: flex;
}

/* Dialog Window */
.dialog-window {
    max-width: 380px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        inset -1px -1px 0 #000,
        inset 1px 1px 0 #fff,
        inset -2px -2px 0 #808080,
        inset 2px 2px 0 #dfdfdf,
        4px 4px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dialog-window.dragging {
    opacity: 0.9;
}

.dialog-window .card-header {
    cursor: move;
}

.dialog-close {
    width: 18px;
    height: 18px;
    padding: 0;
    font-size: 10px;
    line-height: 18px;
    min-width: auto;
    font-weight: bold;
}

/* Keygen Window */
.keygen-window {
    max-width: 450px;
}

.keygen-ascii {
    font-family: monospace;
    font-size: 10px;
    line-height: 1.1;
    color: #000080;
    background: #c0c0c0;
    padding: 10px;
    border: 2px inset #808080;
    margin: 0;
    overflow: hidden;
}

/* Progress Bar */
.progress-bar-container {
    height: 20px;
    background: #fff;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    box-shadow: inset 1px 1px 0 #000;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #000080;
    transition: width 0.1s linear;
}

/* Price Tag */
.price-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff0000;
    /* animation: blink-price 1s steps(2, start) infinite; */
}

@keyframes blink-price {
    to { visibility: hidden; }
}

/* Blink Animation */
.blink {
    animation: blink-text 0.8s steps(2, start) infinite;
}

@keyframes blink-text {
    0%, 49.9% { opacity: 1; }
    50%, 100% { opacity: 0.5; }
}

/* Cracked Panel */
.cracked-panel {
    background: linear-gradient(135deg, #006060 0%, #004040 100%);
}

.crack-btn {
    animation: pulse-btn 1.5s ease-in-out infinite;
}

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Trust Badges */
.trust-badges .badge {
    font-size: 0.65rem;
    margin: 0 2px;
}

/* Download Section */
.download-section {
    padding: 15px;
    background: #c0c0c0;
    border: 2px inset #808080;
}

/* Popup Styles */
.popup-window {
    position: fixed;
    z-index: 2000;
    box-shadow:
        inset -1px -1px 0 #000,
        inset 1px 1px 0 #fff,
        inset -2px -2px 0 #808080,
        inset 2px 2px 0 #dfdfdf,
        4px 4px 10px rgba(0, 0, 0, 0.4);
    animation: popup-appear 0.2s ease-out;
}

@keyframes popup-appear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-window .card {
    margin: 0;
}

.popup-icon {
    font-size: 32px;
    margin-right: 15px;
}

.popup-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.popup-text {
    flex: 1;
    padding-top: 5px;
}

/* Visitor Counter */
.visitor-counter {
    font-family: monospace;
    background: #000;
    color: #0f0;
    padding: 2px 6px;
    border: 1px inset #808080;
}

/* Card Footer */
.card-footer {
    padding: 8px;
    border-top: 2px solid #808080;
}

/* Serial Display */
#serial-display {
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: large;
}

.navbar-footer .nav-link img {
    opacity: 1 !important;
}

/* Download button styling */
#download-btn {
    background-color: #28a745;
    color: white;
}

#download-btn:hover,
#download-btn:focus {
    background-color: #28a745;
    color: white;
}

@font-face {
    font-family: 'VGA';
    src: url('../fonts/vga-new.ttf') format('truetype');
}

/* Bootscreen Styles */
.bootscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.bootscreen-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.bootscreen-container {
    width: 1024px;
    height: 768px;
    max-width: 90vw;
    aspect-ratio: 4 / 3;
    background-color: #000000;
    color: #C0C0C0;
    border: none;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    image-rendering: pixelated;
}

.bootscreen-canvas {
    flex: 1;
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

/* Responsive */
@media (max-width: 576px) {
    .dialog-window {
        max-width: 95%;
        margin: 10px;
    }

    .keygen-ascii {
        font-size: 6px;
    }

    .desktop-icon {
        width: 60px;
    }

    .desktop-icon-image {
        width: 32px;
        height: 32px;
    }

    .desktop-icon-placeholder {
        font-size: 24px;
    }
}

/* License Warning */
.license-warning {
    padding: 10px;
    background: #c0c0c0;
    border: 2px inset #808080;
}

.warning-icon {
    font-size: 32px;
    line-height: 1;
}

/* Crack Banner - Popup Ad Style */
.crack-banner {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 300px;
    /* background: linear-gradient(135deg, #ff6b00 0%, #ff0000 50%, #ff6b00 100%); */
    background: #e90000;
    background-size: 200% 200%;
    /* animation: banner-gradient 1s ease infinite, banner-appear 0.3s ease-out; */
    border: 3px solid #ffff00;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.8), 4px 4px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 1500;
    display: none;
    font-family: Arial, sans-serif;
}

.crack-banner.show {
    display: block;
}

@keyframes banner-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes banner-appear {
    from {
        transform: translateY(-50%) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.crack-banner-close {
    position: absolute;
    top: 2px;
    right: 5px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.crack-banner-close:hover {
    color: #ffff00;
}

.crack-banner-content {
    padding: 15px;
    text-align: center;
    color: white;
}

.crack-banner-flash {
    font-size: 16px;
    font-weight: bold;
    color: #ffff00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: blink-text 0.5s steps(2, start) infinite;
    margin-bottom: 10px;
}

.crack-banner-text {
    font-size: 14px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.crack-banner-cta {
    display: inline-block;
    background: #00ff00;
    color: #000;
    font-weight: bold;
    padding: 8px 20px;
    border: 2px solid #008800;
    animation: pulse-btn 0.8s ease-in-out infinite;
}

/* Mobile banner */
@media (max-width: 576px) {
    .crack-banner {
        right: 10px;
        left: 10px;
        width: auto;
        top: auto;
        bottom: 60px;
        transform: none;
    }

    @keyframes banner-appear {
        from {
            transform: scale(0.5);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }
}

/* Desktop boot transition */
.desktop-area.loading-mode .desktop-icon {
    display: none;
}

footer.loading-mode {
    display: none;
}
