/**
 * AmeriGA Frontend Styles
 */

/* Base Styles */
.ameriga-homepage {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.ameriga-homepage * {
    box-sizing: border-box;
}

/* Custom scrollbar */
.ameriga-homepage::-webkit-scrollbar {
    width: 8px;
}

.ameriga-homepage::-webkit-scrollbar-track {
    background: var(--ameriga-dark, #050507);
}

.ameriga-homepage::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}

.ameriga-homepage::-webkit-scrollbar-thumb:hover {
    background: var(--ameriga-cyan, #00f0ff);
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(15, 17, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar Scroll State */
#ameriga-navbar.scrolled {
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Animation Utilities */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--ameriga-cyan, #00f0ff);
    }
    100% {
        box-shadow: 0 0 20px var(--ameriga-cyan, #00f0ff), 0 0 10px var(--ameriga-blue, #0055ff);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Product Card Hover Effects */
.ameriga-product-card:hover .product-gradient-bar {
    width: 100%;
}

/* Clickable Product Cards */
a.ameriga-product-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

a.ameriga-product-link:hover {
    text-decoration: none !important;
}

a.ameriga-product-link .glass-panel {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

a.ameriga-product-link:hover .glass-panel {
    transform: translateY(-4px);
}

/* External link indicator */
a.ameriga-product-link[target="_blank"] .ameriga-product-title::after {
    content: " ↗";
    font-size: 0.75em;
    opacity: 0;
    transition: opacity 0.2s;
}

a.ameriga-product-link[target="_blank"]:hover .ameriga-product-title::after {
    opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ameriga-homepage h1 {
        font-size: 3rem !important;
    }
    
    .ameriga-homepage .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Remove default WordPress admin bar spacing when on homepage */
.ameriga-homepage.admin-bar {
    margin-top: 0;
}

.admin-bar .ameriga-homepage #ameriga-navbar {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .ameriga-homepage #ameriga-navbar {
        top: 46px;
    }
}

/* Link Styles */
.ameriga-homepage a {
    text-decoration: none;
}

.ameriga-homepage a:hover {
    text-decoration: none;
}

/* Selection Styles */
.ameriga-homepage ::selection {
    background: var(--ameriga-cyan, #00f0ff);
    color: black;
}

/* Legal Pages Styling */
.ameriga-legal-page ::selection {
    background: var(--ameriga-cyan, #00f0ff);
    color: black;
}
