/* DmApp Custom Icons Styles */

/* Base icon styles */
.custom-icon {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon button container */
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    color: #000;
}

.icon-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
}

.icon-btn:active {
    transform: translateY(0);
}

/* Icon label */
.icon-label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

/* Click animation */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.icon-clicked .custom-icon {
    animation: iconPulse 0.3s ease-out;
}

/* Ripple effect */
.icon-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.5);
    pointer-events: none;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Specific icon animations */
.activity-icon {
    transition: transform 0.3s ease;
}

.icon-btn:hover .activity-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.8));
}

.announcement-icon {
    transition: transform 0.3s ease;
}

.icon-btn:hover .announcement-icon {
    animation: iconBounce 0.6s ease infinite;
}

.rating-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-btn:hover .rating-icon {
    transform: rotate(15deg) scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9));
}

.review-icon {
    transition: transform 0.3s ease;
}

.icon-btn:hover .review-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.7));
}

.promote-icon {
    transition: transform 0.3s ease;
}

.icon-btn:hover .promote-icon {
    animation: iconSpin 0.6s ease;
    filter: drop-shadow(0 0 12px rgba(0, 255, 0, 1));
}

.message-icon {
    transition: transform 0.3s ease;
}

.icon-btn:hover .message-icon {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.8));
}

.view-icon {
    transition: transform 0.3s ease;
}

.icon-btn:hover .view-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.7));
}

.tag-icon {
    transition: transform 0.3s ease;
}

.icon-btn:hover .tag-icon {
    transform: rotate(-10deg) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.7));
}

/* Glow effect on active state */
.icon-btn:active .custom-icon {
    filter: drop-shadow(0 0 16px rgba(0, 255, 0, 1)) brightness(1.3);
}

/* Icon sizes */
.icon-sm .custom-icon {
    width: 18px;
    height: 18px;
}

.icon-md .custom-icon {
    width: 24px;
    height: 24px;
}

.icon-lg .custom-icon {
    width: 32px;
    height: 32px;
}

.icon-xl .custom-icon {
    width: 48px;
    height: 48px;
}

/* Activity action buttons with custom icons */
.activity-actions .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
}

.activity-actions .action-btn .custom-icon {
    width: 20px;
    height: 20px;
}

/* Icon in stats display */
.activity-stats .stat-item .custom-icon,
.content-stats .custom-icon {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

/* Loading animation for icons */
@keyframes iconLoadingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.icon-loading .custom-icon {
    animation: iconLoadingPulse 1.5s ease-in-out infinite;
}

/* Success animation */
@keyframes iconSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.icon-success .custom-icon {
    animation: iconSuccess 0.5s ease-out;
    filter: drop-shadow(0 0 12px rgba(0, 255, 0, 1));
}

/* Error shake animation */
@keyframes iconError {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.icon-error .custom-icon {
    animation: iconError 0.4s ease-out;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8));
}

/* Icon groups */
.icon-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Floating icon effect */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.icon-floating .custom-icon {
    animation: iconFloat 2s ease-in-out infinite;
}

/* Badge on icon */
.icon-btn-badge {
    position: relative;
}

.icon-btn-badge::after {
    content: attr(data-badge);
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF0000;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Disabled state */
.icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.icon-btn:disabled .custom-icon {
    filter: grayscale(100%);
}

/* Accessibility - focus states */
.icon-btn:focus {
    outline: 2px solid #00FF00;
    outline-offset: 2px;
}

.icon-btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 255, 0, 0.3);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .icon-btn {
        padding: 8px 12px;
    }
    
    .icon-label {
        font-size: 12px;
    }
    
    .custom-icon {
        width: 20px;
        height: 20px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .icon-btn {
        border-width: 2px;
    }
    
    .custom-icon {
        filter: contrast(1.5);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .custom-icon,
    .icon-btn,
    .icon-ripple {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .icon-btn {
        background: rgba(0, 0, 0, 0.3);
        color: #FFF;
    }
    
    .icon-label {
        color: #FFF;
    }
}
