/* Glassmorphism Design System */

/* Base glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Elevated glass card */
.glass-card-elevated {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

/* Glass card hover effect */
.glass-card:hover,
.glass-card-elevated:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Glass input field */
.glass-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: #212121;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #E53935;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.glass-input::placeholder {
    color: #9E9E9E;
}

/* Glass button */
.glass-button {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.glass-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.glass-button:active {
    transform: translateY(0);
}

.glass-button:disabled {
    background: #BDBDBD;
    box-shadow: none;
    cursor: not-allowed;
}

/* Glass button secondary */
.glass-button-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #212121;
    box-shadow: none;
}

.glass-button-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

/* Glass overlay */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50;
}

/* Glass panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
}

/* Glass navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Glass modal */
.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

/* Glass badge */
.glass-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(229, 57, 53, 0.1);
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #E53935;
}

/* Glass divider */
.glass-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
}

/* Glass tooltip */
.glass-tooltip {
    background: rgba(33, 33, 33, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Red accent variants */
.glass-card-accent {
    border-left: 3px solid #E53935;
}

.glass-card-accent:hover {
    border-left-color: #C62828;
}

/* Glass effect for dark backgrounds */
.glass-card-dark {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.glass-card-dark:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Animated glass effect */
@keyframes glassShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.glass-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: glassShimmer 2s infinite;
}

/* Frosted glass text effect */
.frosted-text {
    color: transparent;
    background: linear-gradient(135deg, #212121 0%, #757575 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Glass reflection effect */
.glass-reflection {
    position: relative;
    overflow: hidden;
}

.glass-reflection::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.glass-reflection:hover::after {
    left: 100%;
}
