/**
 * Glass Container Component Styles
 * 
 * This file contains the CSS styles for glass-effect containers used throughout the application.
 * These containers are specifically designed to maintain consistent styling across both light and dark modes.
 */

/* Base Glass Container - Force consistency regardless of theme */
.glass-container {
    /* Force darker purple-blue background that doesn't change with theme */
    background-color: rgba(30, 30, 60, 0.4) !important;
    background: rgba(30, 30, 60, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    
    /* Consistent border and shape */
    border: 1px solid rgba(216, 91, 8, 0.548) !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    
    /* Text always white */
    color: white !important;
    
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

/* Top edge highlight */
.glass-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(190, 76, 9, 0.877),
        rgba(235, 99, 9, 0.5),
        rgba(216, 88, 13, 0.397)
    ) !important;
    z-index: 1;
}

/* Ensure all content is white regardless of theme */
.glass-container h1,
.glass-container h2,
.glass-container h3,
.glass-container p,
.glass-container span,
.glass-container div,
.glass-container a:not(.btn) {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Headings */
.glass-container h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Paragraphs */
.glass-container p {
    margin-bottom: 1.75rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 650px;
}

/* Hero Specific Glass Container */
.hero-glass-container {
    max-width: 800px;
    margin: 0 auto;
    z-index: 3;
    transform: translateZ(0);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .glass-container {
        padding: 2rem;
    }
    
    .glass-container h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    .glass-container {
        padding: 1.75rem;
        border-radius: 0.75rem !important;
    }
    
    .glass-container h1 {
        font-size: 2rem;
    }
}

/* Override any vars or theme-based styling directly */
html[data-theme="dark"] .glass-container,
html[data-theme="light"] .glass-container,
body[data-theme="dark"] .glass-container,
body[data-theme="light"] .glass-container,
[data-theme="dark"] .glass-container,
[data-theme="light"] .glass-container,
.bg-white .glass-container,
.bg-gray-50 .glass-container,
.bg-gray-100 .glass-container,
.glass-container {
    --bg-primary: rgba(30, 30, 60, 0.4) !important;
    --bg-secondary: rgba(30, 30, 60, 0.4) !important;
    --card-bg: rgba(30, 30, 60, 0.4) !important;
    --text-primary: white !important;
    --text-secondary: rgba(255, 255, 255, 0.9) !important;
    background-color: rgba(30, 30, 60, 0.4) !important;
    background: rgba(30, 30, 60, 0.4) !important;
    color: white !important;
}

/* Ensure transitions don't affect our glass appearance */
.theme-transition .glass-container,
.glass-container {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Remove any theme transitions for glass container elements */
.theme-transition .glass-container * {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: transparent !important;
}
