﻿/* ========================================
   Header Action Card - Big & Beautiful
======================================== */

.page-header-actions {
    margin-bottom: 2rem;
}

.header-action-card {
    display: block;
    position: relative;
    padding: 2rem 2.5rem;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.header-action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Content */
.action-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Icon Section */
.action-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.header-action-card:hover .action-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Pulse Effect */
.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    transform: translate(-50%, -50%);
    animation: pulse-animation 2s ease-out infinite;
}

@keyframes pulse-animation {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Text Section */
.action-text {
    flex: 1;
}

.action-text h5 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.action-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

/* Arrow */
.action-arrow {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.header-action-card:hover .action-arrow {
    transform: translateX(-10px) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Background Gradient */
.action-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.header-action-card.btn-success .action-card-bg {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

.header-action-card.btn-success .action-icon {
    color: #10b981;
}

.header-action-card.btn-primary .action-card-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a3d8a 100%);
}

.header-action-card.btn-primary .action-icon {
    color: #667eea;
}

.header-action-card.btn-info .action-card-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.header-action-card.btn-info .action-icon {
    color: #3b82f6;
}

.header-action-card.btn-warning .action-card-bg {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.header-action-card.btn-warning .action-icon {
    color: #f59e0b;
}

.header-action-card.btn-danger .action-card-bg {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

.header-action-card.btn-danger .action-icon {
    color: #ef4444;
}

/* Hover Effect - Animated Background */
.header-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    z-index: 2;
    transition: left 0.6s ease;
}

.header-action-card:hover::before {
    left: 100%;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .header-action-card {
        padding: 1.5rem 2rem;
    }

    .action-card-content {
        gap: 1.5rem;
    }

    .action-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .action-text h5 {
        font-size: 20px;
    }

    .action-text p {
        font-size: 13px;
    }

    .action-arrow {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .header-action-card {
        padding: 1.25rem 1.5rem;
    }

    .action-card-content {
        gap: 1rem;
    }

    .action-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        border-radius: 16px;
    }

    .action-text h5 {
        font-size: 17px;
    }

    .action-text p {
        font-size: 12px;
    }

    .action-arrow {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Dark Mode */
body.dark-mode .header-action-card,
[data-theme="dark"] .header-action-card {
    background: #1e293b;
}

body.dark-mode .action-icon,
[data-theme="dark"] .action-icon {
    background: rgba(30, 41, 59, 0.9);
}

body.dark-mode .header-action-card:hover,
[data-theme="dark"] .header-action-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Multiple Buttons Layout */
.page-header-actions {
    display: grid;
    gap: 1rem;
}

/* اگر بیشتر از یک دکمه داشتیم */
.page-header-actions:has(.header-action-card:nth-child(2)) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .page-header-actions:has(.header-action-card:nth-child(2)) {
        grid-template-columns: 1fr;
    }
}