/**
 * Stylish Dark Mode Thank You Pages
 * Animated, Modern, Professional Design
 */

/* Dark Mode Base Styles */
.wcm-thankyou-wrapper {
    background: linear-gradient(135deg, #0a0a1e 0%, #1a1a3e 25%, #2a2a5e 50%, #1a1a3e 75%, #0a0a1e 100%);
    min-height: 100vh;
    padding: 60px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: gradientShift 20s ease infinite;
    background-size: 200% 200%;
    position: relative;
    overflow-x: hidden;
}

.wcm-thankyou-wrapper::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Main Container */
.wcm-thankyou-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Header */
.wcm-thankyou-header {
    text-align: center;
    margin-bottom: 40px;
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wcm-success-icon {
    display: inline-block;
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out, pulse 2s ease-in-out infinite 1s;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.wcm-success-icon svg {
    filter: drop-shadow(0 0 20px rgba(40, 167, 69, 0.5));
}

.wcm-success-icon circle {
    stroke: #28a745;
    stroke-width: 2;
    fill: none;
    animation: drawCircle 0.8s ease-out forwards;
    stroke-dasharray: 63;
    stroke-dashoffset: 63;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

.wcm-success-icon path {
    stroke: #28a745;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    animation: drawCheck 0.4s ease-out 0.8s forwards;
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.wcm-thankyou-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(102, 126, 234, 0.5);
    animation: slideInRight 0.6s ease-out 0.2s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wcm-thankyou-subtitle {
    font-size: 20px;
    color: #ffffff !important;
    margin: 0 0 20px 0;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Card Style */
.wcm-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Hover effect removed as per user request */
/* .wcm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(102, 126, 234, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
} */

.wcm-card:nth-child(1) { animation-delay: 0.2s; }
.wcm-card:nth-child(2) { animation-delay: 0.4s; }
.wcm-card:nth-child(3) { animation-delay: 0.6s; }
.wcm-card:nth-child(4) { animation-delay: 0.8s; }
.wcm-card:nth-child(5) { animation-delay: 1s; }

.wcm-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wcm-card h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.wcm-card p {
    color: #d4d4e0;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 20px 0;
    font-weight: 400;
}

/* Order Details */
.wcm-order-details {
    animation-delay: 0.4s;
}

.wcm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.wcm-detail-row:last-child {
    border-bottom: none;
}

/* Detail row hover effect removed as per user request */
/* .wcm-detail-row:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
    border-radius: 10px;
} */

.wcm-detail-label {
    font-size: 16px;
    color: #8e8ea0;
    font-weight: 500;
}

.wcm-detail-value {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wcm-detail-value::before {
    content: '•';
    color: #28a745;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
}

/* Product Info */
.wcm-product-info {
    animation-delay: 0.5s;
}

.wcm-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wcm-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.wcm-product-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.wcm-product-item::before {
    content: '✓';
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.wcm-product-name {
    color: #ffffff;
    font-weight: 600;
    flex: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wcm-product-price {
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

/* Schedule Box */
.wcm-schedule-box {
    animation-delay: 0.6s;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    position: relative;
    overflow: hidden;
}

.wcm-schedule-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wcm-schedule-content {
    position: relative;
    z-index: 1;
}

.wcm-schedule-time {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 20px 0;
    padding: 25px;
    background: rgba(40, 167, 69, 0.15);
    border-radius: 15px;
    border: 2px solid rgba(40, 167, 69, 0.3);
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.4), 0 0 40px rgba(40, 167, 69, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.6), 0 0 60px rgba(40, 167, 69, 0.3);
    }
}

.wcm-schedule-note {
    text-align: center;
    font-size: 16px;
    color: #d4d4e0;
    font-style: italic;
}

/* WhatsApp Section */
.wcm-whatsapp-section {
    animation-delay: 0.7s;
}

.wcm-whatsapp-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.wcm-whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.wcm-whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.wcm-whatsapp-button:hover::before {
    left: 100%;
}

.wcm-whatsapp-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff;
    background: linear-gradient(135deg, #20c997 0%, #0f7c5e 100%);
}

.wcm-whatsapp-button:active {
    transform: translateY(-1px) scale(0.98);
}

.wcm-whatsapp-button svg {
    width: 24px;
    height: 24px;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* Footer Note */
.wcm-footer-note {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-top: 30px;
    animation: fadeIn 0.6s ease-out 1.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wcm-footer-note p {
    color: #d4d4e0;
    font-size: 15px;
    margin: 10px 0;
    line-height: 1.7;
}

.wcm-footer-note p:first-child {
    color: #28a745;
    font-weight: 700;
    font-size: 17px;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

/* Confetti Animation */
.wcm-confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #667eea;
    position: absolute;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcm-thankyou-wrapper {
        padding: 40px 15px;
    }
    
    .wcm-thankyou-header h1 {
        font-size: 36px;
    }
    
    .wcm-thankyou-subtitle {
        font-size: 16px;
    }
    
    .wcm-card {
        padding: 25px 20px;
    }
    
    .wcm-card h2 {
        font-size: 22px;
    }
    
    .wcm-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .wcm-schedule-time {
        font-size: 24px;
        padding: 15px;
    }
    
    .wcm-whatsapp-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wcm-thankyou-header h1 {
        font-size: 28px;
    }
    
    .wcm-success-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .wcm-card {
        padding: 20px 15px;
    }
}

/* Print Styles */
@media print {
    .wcm-thankyou-wrapper {
        background: #fff;
        padding: 20px;
    }
    
    .wcm-card {
        background: #fff;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .wcm-thankyou-header h1,
    .wcm-card h2,
    .wcm-detail-value,
    .wcm-product-name {
        color: #000;
    }
    
    .wcm-whatsapp-button {
        background: #25D366;
        color: #fff;
    }
}

/* Additional Animations */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.wcm-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Success Badge */
.wcm-success-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Loader for dynamic content */
.wcm-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
