/* ========================================
   Video Action Buttons - Modern Design
   ======================================== */

/* ===== Default User Avatar (No Image) ===== */
.default-user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.default-user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Gradient Background */
.avatar-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 223, 0, 0.85) 0%,
        rgba(245, 196, 0, 0.85) 50%,
        rgba(11, 11, 11, 0.85) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    opacity: 0.9;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Default Avatar Icon */
.default-avatar-icon {
    font-size: 40px;
    color: white;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.default-user-avatar:hover .default-avatar-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Add shine effect */
.default-user-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes shine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Border pulse effect */
.default-user-avatar::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: borderPulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes borderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

/* ===== End Default User Avatar ===== */

/* Action Button Base Styles */
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* Icon Wrapper - No background, just icon */
.action-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Removed background effects */

/* Icon Styles */
.action-icon {
    font-size: 20px;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.action-btn:hover .action-icon-wrapper {
    transform: scale(1.15);
}

.action-btn:active .action-icon-wrapper {
    transform: scale(0.95);
}

/* Action Count (for likes) */
.action-count {
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 30px;
    text-align: center;
}

/* Specific Button Styles - All White Icons */

/* Like Button */
.like-btn .action-icon {
    color: #fff;
}

.like-btn:hover .action-icon {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
}

/* Bookmark Button */
.bookmark-btn .action-icon {
    color: #fff;
}

.bookmark-btn:hover .action-icon {
    animation: bounce 0.5s ease;
}

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

/* Comment Button */
.comment-btn .action-icon {
    color: #fff;
}

.comment-btn:hover .action-icon {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Share Button */
.share-btn .action-icon {
    color: #fff;
}

/* WhatsApp Button */
.whatsapp-btn .action-icon {
    color: #fff;
}

.whatsapp-btn:hover .action-icon {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Report Button */
.report-btn .action-icon {
    color: #fff;
}

.report-btn:hover .action-icon {
    animation: wave 0.5s ease;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
    75% { transform: rotate(-10deg); }
}

/* Contact Button */
.contact-btn .action-icon {
    color: #fff;
}

.contact-btn:hover .action-icon {
    animation: ring 0.5s ease;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* Download Button */
.download-btn .action-icon {
    color: #fff;
}

.download-btn:hover .action-icon {
    animation: download 0.5s ease;
}

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

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 1024px) {
    .action-icon-wrapper {
        width: 38px;
        height: 38px;
    }

    .action-icon {
        font-size: 16px;
    }

    .action-count {
        font-size: 11px;
    }

    .default-user-avatar {
        width: 38px;
        height: 38px;
    }

    .default-avatar-icon {
        font-size: 38px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .action-icon-wrapper {
        width: 36px;
        height: 36px;
    }

    .action-icon {
        font-size: 15px;
    }

    .action-count {
        font-size: 10px;
    }

    .action-btn {
        gap: 0.2rem;
    }

    .default-user-avatar {
        width: 36px;
        height: 36px;
    }

    .default-avatar-icon {
        font-size: 36px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .action-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .action-icon {
        font-size: 13px;
    }

    .action-count {
        font-size: 9px;
    }

    .default-user-avatar {
        width: 32px;
        height: 32px;
    }

    .default-avatar-icon {
        font-size: 32px;
    }
}

/* Extra Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    .action-icon-wrapper {
        width: 28px;
        height: 28px;
    }

    .action-icon {
        font-size: 12px;
    }

    .action-count {
        font-size: 8px;
    }

    .default-user-avatar {
        width: 28px;
        height: 28px;
    }

    .default-avatar-icon {
        font-size: 28px;
    }

    .action-btn {
        gap: 0.15rem;
    }
}

/* Dark Mode Support - No background needed */

/* Accessibility - Focus States */
.action-btn:focus-visible,
.action-btn a:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 4px;
    border-radius: 50%;
}

/* Remove default link styles */
.action-btn a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp Share Button Reset */
.action-btn .react-share__ShareButton {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
