/* تصميم بطاقات مطبخ الإبداع - النسخة المطورة */

/* البطاقة العريضة المبهرة */
.creative-hero-card {
    min-height: 350px;
    position: relative;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: none;
}

.creative-hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: transparent;
    z-index: -1;
}

.creative-hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0,0,0,0.25);
}

.hero-emoji {
    animation: hero-magic 5s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(255,255,255,0.9));
    position: relative;
}

.hero-emoji::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: hero-glow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes hero-magic {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 25px rgba(255,255,255,0.9)) hue-rotate(0deg) brightness(1);
    }
    20% { 
        transform: translateY(-20px) rotate(-8deg) scale(1.15);
        filter: drop-shadow(0 0 35px rgba(255,255,255,1)) hue-rotate(72deg) brightness(1.2);
    }
    40% { 
        transform: translateY(-25px) rotate(0deg) scale(1.3);
        filter: drop-shadow(0 0 45px rgba(255,255,255,1)) hue-rotate(144deg) brightness(1.4);
    }
    60% { 
        transform: translateY(-20px) rotate(8deg) scale(1.15);
        filter: drop-shadow(0 0 35px rgba(255,255,255,1)) hue-rotate(216deg) brightness(1.2);
    }
    80% { 
        transform: translateY(-10px) rotate(-4deg) scale(1.05);
        filter: drop-shadow(0 0 30px rgba(255,255,255,1)) hue-rotate(288deg) brightness(1.1);
    }
}

@keyframes hero-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes border-glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* بطاقة تحفيز الاشتراك */
.creative-subscription-card {
    min-height: 250px;
    border-radius: 18px !important;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.creative-subscription-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    background: linear-gradient(45deg, #10b981, #059669, #047857, #065f46);
    z-index: -1;
    animation: subscription-border 4s linear infinite;
}

.creative-subscription-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.subscription-emoji {
    animation: subscription-dance 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.7));
    position: relative;
}

.subscription-emoji::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: 50%;
    animation: subscription-rotate 2s linear infinite;
    z-index: -1;
}

@keyframes subscription-dance {
    0%, 100% { 
        transform: scale(1) rotate(0deg) translateY(0px);
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.7)) brightness(1) saturate(1);
    }
    25% { 
        transform: scale(1.2) rotate(-12deg) translateY(-8px);
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.9)) brightness(1.3) saturate(1.2);
    }
    50% { 
        transform: scale(1.4) rotate(0deg) translateY(-12px);
        filter: drop-shadow(0 0 40px rgba(255,255,255,1)) brightness(1.6) saturate(1.4);
    }
    75% { 
        transform: scale(1.2) rotate(12deg) translateY(-8px);
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.9)) brightness(1.3) saturate(1.2);
    }
}

@keyframes subscription-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes subscription-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* الشريط العاجل */
.creative-alert-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7, #fed7aa);
    border-radius: 20px !important;
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.12), 0 5px 10px rgba(245, 158, 11, 0.06);
    position: relative;
    overflow: hidden;
    border: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.creative-alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: alert-shine 2s ease-in-out infinite;
}

.creative-alert-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.18), 0 8px 16px rgba(245, 158, 11, 0.1);
}

@keyframes alert-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes alert-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.alert-emoji {
    animation: alert-explosion 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.9));
    position: relative;
}

.alert-emoji::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    border-radius: 50%;
    animation: alert-pulse-ring 1.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes alert-explosion {
    0%, 100% { 
        transform: scale(1) rotate(0deg) translateY(0px);
        filter: drop-shadow(0 0 15px rgba(255,255,255,0.9)) brightness(1) contrast(1);
    }
    20% { 
        transform: scale(1.4) rotate(-20deg) translateY(-5px);
        filter: drop-shadow(0 0 25px rgba(255,255,255,1)) brightness(1.6) contrast(1.2);
    }
    40% { 
        transform: scale(1.6) rotate(0deg) translateY(-8px);
        filter: drop-shadow(0 0 35px rgba(255,255,255,1)) brightness(2.2) contrast(1.4);
    }
    60% { 
        transform: scale(1.4) rotate(20deg) translateY(-5px);
        filter: drop-shadow(0 0 25px rgba(255,255,255,1)) brightness(1.6) contrast(1.2);
    }
    80% { 
        transform: scale(1.1) rotate(-10deg) translateY(-2px);
        filter: drop-shadow(0 0 20px rgba(255,255,255,1)) brightness(1.2) contrast(1.1);
    }
}

@keyframes alert-pulse-ring {
    0% { 
        opacity: 0.8;
        transform: scale(0.5);
    }
    50% { 
        opacity: 0.4;
        transform: scale(1.5);
    }
    100% { 
        opacity: 0;
        transform: scale(2);
    }
}

.alert-text {
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
    animation: alert-text-pulse 1.5s ease-in-out infinite;
    font-weight: 900;
    letter-spacing: 1px;
}

@keyframes alert-text-pulse {
    0%, 100% { 
        text-shadow: 0 3px 6px rgba(0,0,0,0.5);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 3px 15px rgba(255,255,255,0.8), 0 3px 6px rgba(0,0,0,0.5);
        transform: scale(1.05);
    }
}

/* ثلاث بطاقات متحركة */
.creative-triple-container {
    gap: 1.5rem;
    perspective: 1000px;
}

.creative-triple-card {
    border-radius: 16px !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 180px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
}

.creative-triple-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #c084fc, #ddd6fe);
    z-index: -1;
    animation: triple-border-rotate 6s linear infinite;
}

.creative-triple-card:nth-child(1)::before {
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #c084fc, #ddd6fe);
}

.creative-triple-card:nth-child(2)::before {
    background: linear-gradient(45deg, #06b6d4, #0891b2, #0e7490, #155e75);
}

.creative-triple-card:nth-child(3)::before {
    background: linear-gradient(45deg, #f59e0b, #d97706, #b45309, #92400e);
}

.creative-triple-card:hover {
    transform: translateY(-8px) scale(1.05) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.triple-emoji {
    animation: triple-magic 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.8));
    position: relative;
}

.triple-emoji::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
    animation: triple-sparkle 3s ease-in-out infinite;
    z-index: -1;
}

.creative-triple-card:nth-child(1) .triple-emoji {
    animation-delay: 0s;
}

.creative-triple-card:nth-child(1) .triple-emoji::before {
    animation-delay: 0s;
}

.creative-triple-card:nth-child(2) .triple-emoji {
    animation-delay: 0.8s;
}

.creative-triple-card:nth-child(2) .triple-emoji::before {
    animation-delay: 0.8s;
}

.creative-triple-card:nth-child(3) .triple-emoji {
    animation-delay: 1.6s;
}

.creative-triple-card:nth-child(3) .triple-emoji::before {
    animation-delay: 1.6s;
}

@keyframes triple-magic {
    0%, 100% { 
        transform: scale(1) rotate(0deg) translateY(0px);
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.8)) hue-rotate(0deg) brightness(1);
    }
    20% { 
        transform: scale(1.25) rotate(-15deg) translateY(-12px);
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.9)) hue-rotate(72deg) brightness(1.3);
    }
    40% { 
        transform: scale(1.5) rotate(0deg) translateY(-18px);
        filter: drop-shadow(0 0 40px rgba(255,255,255,1)) hue-rotate(144deg) brightness(1.6);
    }
    60% { 
        transform: scale(1.25) rotate(15deg) translateY(-12px);
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.9)) hue-rotate(216deg) brightness(1.3);
    }
    80% { 
        transform: scale(1.1) rotate(-8deg) translateY(-6px);
        filter: drop-shadow(0 0 25px rgba(255,255,255,0.9)) hue-rotate(288deg) brightness(1.1);
    }
}

@keyframes triple-sparkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.3) rotate(180deg);
    }
}

@keyframes triple-border-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* نظام الألوان المطورة - متناسق مع ألوان المنصة الحالية */
.from-sky-400.to-purple-500 {
    background: linear-gradient(135deg, #1e40af, #3b82f6, #8b5cf6, #a855f7);
    box-shadow: 0 25px 50px rgba(30, 64, 175, 0.4);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.from-emerald-400.to-yellow-400 {
    background: linear-gradient(135deg, #059669, #10b981, #f59e0b, #d97706);
    box-shadow: 0 25px 50px rgba(5, 150, 105, 0.4);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.from-pink-400.to-orange-400 {
    background: linear-gradient(135deg, #be185d, #ec4899, #f97316, #ea580c);
    box-shadow: 0 25px 50px rgba(190, 24, 93, 0.4);
    border: 2px solid rgba(236, 72, 153, 0.3);
}

.from-red-400.to-purple-500 {
    background: linear-gradient(135deg, #dc2626, #ef4444, #8b5cf6, #a855f7);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.4);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

/* ألوان إضافية مودرن - مستوحاة من ألوان المنصة */
.from-amber-400.to-rose-500 {
    background: linear-gradient(135deg, #d97706, #f59e0b, #f43f5e, #ec4899);
    box-shadow: 0 25px 50px rgba(217, 119, 6, 0.4);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.from-cyan-400.to-indigo-500 {
    background: linear-gradient(135deg, #0891b2, #22d3ee, #6366f1, #4f46e5);
    box-shadow: 0 25px 50px rgba(8, 145, 178, 0.4);
    border: 2px solid rgba(34, 211, 238, 0.3);
}

.from-lime-400.to-teal-500 {
    background: linear-gradient(135deg, #65a30d, #a3e635, #14b8a6, #0d9488);
    box-shadow: 0 25px 50px rgba(101, 163, 13, 0.4);
    border: 2px solid rgba(163, 230, 53, 0.3);
}

.from-violet-400.to-pink-500 {
    background: linear-gradient(135deg, #7c3aed, #a78bfa, #ec4899, #f43f5e);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.4);
    border: 2px solid rgba(167, 139, 250, 0.3);
}

/* تأثيرات تجاوبية للهاتف */
@media (max-width: 768px) {
    .creative-hero-card {
        min-height: 280px;
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    .hero-emoji {
        font-size: 3.5rem !important;
    }
    
    .creative-hero-card h2 {
        font-size: 1.75rem !important;
    }
    
    .creative-subscription-card {
        min-height: 200px;
        padding: 1.25rem !important;
    }
    
    /* تحسينات خاصة ببطاقة التنبيه على الموبايل */
    .creative-alert-card {
        padding: 1rem !important;
        border-radius: 16px !important;
    }
    
    .creative-alert-card .flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .creative-alert-card .alert-icon-container > div {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .creative-alert-card .alert-icon-container span {
        font-size: 1rem !important;
    }
    
    .creative-alert-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem;
    }
    
    .creative-alert-card p {
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem;
    }
    
    .creative-alert-card .inline-flex {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .subscription-emoji {
        font-size: 2.5rem !important;
    }
    
    .creative-triple-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .creative-triple-card {
        min-height: 140px;
        padding: 1rem !important;
    }
    
    .triple-emoji {
        font-size: 2rem !important;
    }
    
    .alert-text {
        font-size: 1.1rem !important;
        padding: 0.75rem;
    }
    
    .alert-emoji {
        font-size: 1.5rem !important;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .creative-hero-card {
        min-height: 250px;
        padding: 1rem !important;
    }
    
    .hero-emoji {
        font-size: 3rem !important;
    }
    
    .creative-hero-card h2 {
        font-size: 1.5rem !important;
    }
    
    .creative-subscription-card {
        min-height: 180px;
        padding: 1rem !important;
    }
    
    .creative-triple-card {
        min-height: 120px;
        padding: 0.75rem !important;
    }
    
    .alert-text {
        font-size: 1rem !important;
        padding: 0.5rem;
    }
}

/* ===== البطاقات الزرية ===== */
.creative-button-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin: 4px;
    text-align: center;
}

.creative-button-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.creative-button-card:active {
    transform: scale(0.98);
}

.button-icon {
    font-size: 1rem;
    animation: buttonIconBounce 2s infinite;
    transition: all 0.3s ease;
}

.creative-button-card:hover .button-icon {
    animation: buttonIconPulse 0.6s infinite;
    transform: scale(1.1);
}

.button-text {
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    line-height: 1.2;
}

/* رسوم متحركة للأيقونات */
@keyframes buttonIconBounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-4px); 
    }
    60% { 
        transform: translateY(-2px); 
    }
}

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

/* تحسينات للبطاقات الزرية على الموبايل */
@media (max-width: 768px) {
    .creative-button-card {
        min-width: 120px;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .button-icon {
        font-size: 0.9rem;
    }
    
    .button-text {
        font-size: 1rem;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .creative-button-card {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .button-icon {
        font-size: 0.8rem;
    }
    
    .button-text {
        font-size: 0.9rem;
    }
}

/* تأثيرات خاصة للبطاقات الزرية */
.creative-button-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.creative-button-card:hover::before {
    left: 100%;
}

/* تأثيرات الألوان المختلفة */
.creative-button-card.gradient {
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.creative-button-card.solid {
    background: #3B82F6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.creative-button-card.outline {
    background: transparent;
    border: 2px solid #3B82F6;
    color: #3B82F6;
}

.creative-button-card.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

/* ضمان أن الأزرار في الوسط */
.creative-kitchen-container {
    text-align: center;
}

.creative-kitchen-container .inline-block {
    vertical-align: middle;
}

/* تأثيرات خاصة مودرن */
.creative-hero-card,
.creative-subscription-card,
.creative-triple-card {
    position: relative;
    overflow: hidden;
}

/* تأثير اللمعان المطور */
.creative-hero-card::before,
.creative-subscription-card::before,
.creative-triple-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.creative-hero-card:hover::before,
.creative-subscription-card:hover::before,
.creative-triple-card:hover::before {
    opacity: 1;
    animation: modern-shine 1s ease-in-out;
}

@keyframes modern-shine {
    0% { 
        transform: translateX(-100%) translateY(-100%) rotate(45deg) scale(0.5);
        opacity: 0;
    }
    50% { 
        transform: translateX(0%) translateY(0%) rotate(45deg) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translateX(100%) translateY(100%) rotate(45deg) scale(0.5);
        opacity: 0;
    }
}

/* تأثيرات النص المطورة */
.creative-hero-card h2,
.creative-subscription-card h3,
.creative-triple-card h4 {
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.creative-subscription-card p,
.creative-triple-card p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 600;
}

/* تأثيرات إضافية للبطاقات */
.creative-hero-card:hover h2,
.creative-subscription-card:hover h3,
.creative-triple-card:hover h4 {
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* تأثيرات الأزرار */
.creative-hero-card .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.creative-hero-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.creative-hero-card .btn:hover::before {
    left: 100%;
}

/* تأثيرات خاصة للشريط العاجل */
.creative-alert-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: alert-pulse 2s ease-in-out infinite;
}

@keyframes alert-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}
