/* Actions Grid Remasterized - Premium Experience */

/* Header Enhancements */
.actions-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title-enhanced {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.magic-sparkles {
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0.8;
}

/* Grid Layout */
.actions-grid-remasterized {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Premium Action Cards */
.action-card-premium {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    min-height: 180px;
    z-index: 1; /* Ensure card is clickable */
}

.action-card-premium:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1; /* Ensure it stays behind clickable content */
}

.action-card-premium:hover .card-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

.featured-glow {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
}

/* Featured Card */
.featured-card {
    border: 2px solid rgba(236, 72, 153, 0.4);
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.05));
}

.featured-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(45deg, #ec4899, #f59e0b);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Action Header */
.action-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

/* Icon Containers with Animations */
.action-icon-container {
    position: relative;
    width: 45px;
    height: 45px;
}

.main-icon {
    font-size: 2rem;
    display: block;
    text-align: center;
    line-height: 45px;
    position: relative;
    z-index: 2;
}

/* Orbit Animation - DISABLED */
.icon-orbit {
    position: relative;
    width: 100%;
    height: 100%;
    /* animation: mainIconFloat 3s ease-in-out infinite; */
}

.orbit-icon {
    position: absolute;
    font-size: 1rem;
    /* animation: orbit 4s linear infinite; */
    display: none; /* Hide orbit icons */
}

.orbit-1 {
    /* animation-delay: 0s; */
    top: 0;
    left: 50%;
}

.orbit-2 {
    /* animation-delay: -1.33s; */
    top: 50%;
    right: 0;
}

.orbit-3 {
    /* animation-delay: -2.66s; */
    bottom: 0;
    left: 0;
}

/* Pulse Animation - DISABLED */
.icon-pulse {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring, .pulse-ring-2 {
    position: absolute;
    border: 2px solid rgba(236, 72, 153, 0.4);
    border-radius: 50%;
    /* animation: pulse 2s ease-out infinite; */
    display: none; /* Hide pulse rings */
    pointer-events: none; /* Ensure they don't block clicks */
}

.pulse-ring {
    width: 60px;
    height: 60px;
}

.pulse-ring-2 {
    width: 80px;
    height: 80px;
    /* animation-delay: 0.5s; */
}

/* Rotate Animation - DISABLED */
.icon-rotate {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotate-ring {
    position: absolute;
    font-size: 1.5rem;
    /* animation: rotate 3s linear infinite; */
    display: none; /* Hide rotate ring */
    top: -10px;
    right: -10px;
}

/* Action Badges */
.action-badge {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.demo-badge {
    background: linear-gradient(45deg, #10b981, #06b6d4);
}

.register-badge {
    background: linear-gradient(45deg, #ec4899, #f59e0b);
}

.login-badge {
    background: linear-gradient(45deg, #6366f1, #3b82f6);
}

/* Enhanced Content */
.action-content-enhanced {
    margin-bottom: 0.8rem;
}

.action-title-premium {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.action-subtitle-premium {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

/* Feature Tags */
.action-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.feature-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Call to Action */
.action-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.featured-cta {
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(245, 158, 11, 0.1));
    border-color: rgba(236, 72, 153, 0.3);
}

.action-card-premium:hover .action-cta {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.cta-text {
    font-weight: 600;
    color: var(--primary);
}

.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.action-card-premium:hover .cta-arrow {
    transform: translateX(5px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.float-2 {
    top: 20%;
    right: 10%;
    animation-delay: -1s;
}

.float-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: -2s;
}

.float-4 {
    bottom: 10%;
    right: 5%;
    animation-delay: -3s;
}

.float-5 {
    top: 50%;
    left: 50%;
    animation-delay: -4s;
}

/* Animations */
@keyframes titleGlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px rgba(99, 102, 241, 0.3)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 15px rgba(99, 102, 241, 0.5)); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.05); }
}

/* DISABLED ANIMATIONS */
/*
@keyframes mainIconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(30px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
*/

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(120deg); }
    66% { transform: translateY(5px) rotate(240deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .actions-grid-remasterized {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .section-title-enhanced {
        font-size: 1.3rem;
    }
    
    .action-card-premium {
        padding: 0.8rem;
        min-height: 160px;
    }
    
    .floating-elements {
        display: none;
    }
    
    .actions-header {
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .featured-ribbon {
        font-size: 0.65rem;
        padding: 4px 35px;
    }
    
    .action-features {
        gap: 0.2rem;
    }
    
    .feature-tag {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
    
    .action-card-premium {
        padding: 0.7rem;
        min-height: 150px;
    }
    
    .section-title-enhanced {
        font-size: 1.2rem;
    }
    
    .action-icon-container {
        width: 40px;
        height: 40px;
    }
    
    .main-icon {
        font-size: 1.8rem;
        line-height: 40px;
    }
}