/* Glassmorphism Styles */

/* Glass Card */
.glass-card {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Glass effect on hover */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: all 0.8s;
    z-index: 1;
}

.glass-card:hover::before {
    left: 100%;
}

/* Glass noise effect */
.glass-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/noise.png');
    background-repeat: repeat;
    background-size: 100px;
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* Minecraft Background Glass Effect */
.minecraft-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/minecraft-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transition: background-image 0.5s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.7), rgba(30, 30, 30, 0.8));
    z-index: -1;
}

/* Glass items */
.about-item, .game-card, .tab-btn, .action-btn {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Glass button effect */
.tab-btn, .action-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::after, .action-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%
    );
    z-index: -1;
}

/* Custom Glass Borders */
.glass-border {
    position: relative;
}

.glass-border::after {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Glass gradient highlights */
.glass-highlight {
    position: relative;
}

.glass-highlight::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    border-radius: inherit;
}

/* Minecraft-style glass styles */
.minecraft-glass {
    background-color: rgba(87, 132, 255, 0.15);
    border: 2px solid rgba(87, 132, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(87, 132, 255, 0.1);
}

/* Custom glass scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}