/**
 * Just Send Gift - Main Stylesheet
 * Version: 1.0.0
 */

/* Base Styles */
* {
    font-family: 'Poppins', sans-serif;
}

:root {
    --jsg-primary: #FF6B6B;
    --jsg-secondary: #FF8E53;
    --jsg-accent: #FFA07A;
    --jsg-text-dark: #1f2937;
    --jsg-text-light: #6b7280;
    --jsg-bg-light: #fff7ed;
}

/* Gradient Utilities */
.jsg-gradient-bg {
    background: linear-gradient(135deg, var(--jsg-primary) 0%, var(--jsg-secondary) 50%, var(--jsg-accent) 100%);
}

.jsg-gradient-text {
    background: linear-gradient(135deg, var(--jsg-primary) 0%, var(--jsg-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effect */
.jsg-card-hover {
    transition: all 0.3s ease;
}

.jsg-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

/* Pulse Animation */
.jsg-pulse-animation {
    animation: jsg-pulse 2s infinite;
}

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

/* Float Animation */
.jsg-float-animation {
    animation: jsg-float 3s ease-in-out infinite;
}

@keyframes jsg-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Dropdown Styles */
.jsg-dropdown-content {
    display: none;
    position: absolute;
    min-width: 220px;
    z-index: 50;
}

.jsg-dropdown:hover .jsg-dropdown-content {
    display: block;
}

/* Modal Styles */
.jsg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.jsg-modal.active {
    display: flex;
}

.jsg-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Step Line */
.jsg-step-line::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #FFE4E1;
    z-index: -1;
}

.jsg-step-line:last-child::after {
    display: none;
}

/* Navigation */
.jsg-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Button Styles */
.jsg-btn-primary {
    background: linear-gradient(135deg, var(--jsg-primary) 0%, var(--jsg-secondary) 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.jsg-btn-primary:hover {
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
    transform: scale(1.05);
}

.jsg-btn-secondary {
    background: white;
    color: var(--jsg-text-dark);
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.jsg-btn-secondary:hover {
    border-color: var(--jsg-primary);
    color: var(--jsg-primary);
}

/* Amount Selection */
.jsg-amount-btn {
    padding: 12px 24px;
    border: 2px solid #fed7aa;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jsg-amount-btn:hover,
.jsg-amount-btn.active {
    border-color: var(--jsg-primary);
    background: #fff7ed;
}

/* Payment Method */
.jsg-payment-method {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jsg-payment-method:hover,
.jsg-payment-method.active {
    border-color: var(--jsg-primary);
    background: #fff7ed;
}

/* Category Cards */
.jsg-category-card {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #fed7aa;
    transition: all 0.3s ease;
}

.jsg-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.15);
}

/* Merchant Card */
.jsg-merchant-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.jsg-merchant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.15);
}

/* Gift Card Preview */
.jsg-gift-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 24px;
    max-width: 360px;
    margin: 0 auto;
}

/* Form Inputs */
.jsg-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.jsg-input:focus {
    outline: none;
    border-color: var(--jsg-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.jsg-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    resize: none;
    transition: all 0.3s ease;
}

.jsg-textarea:focus {
    outline: none;
    border-color: var(--jsg-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Tags */
.jsg-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fff7ed;
    color: var(--jsg-primary);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

/* Badges */
.jsg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--jsg-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tooltip */
.jsg-tooltip {
    position: relative;
}

.jsg-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--jsg-text-dark);
    color: white;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.jsg-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Scrollbar */
.jsg-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.jsg-scrollbar::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.jsg-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.jsg-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .jsg-hero-title {
        font-size: 2rem;
    }
    
    .jsg-step-line::after {
        display: none;
    }
}

/* WordPress Admin Styles */
.jsg-admin-wrap {
    padding: 20px;
}

.jsg-admin-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.jsg-admin-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.jsg-admin-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--jsg-primary) 0%, var(--jsg-secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.jsg-admin-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--jsg-text-dark);
    margin: 0;
}

.jsg-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.jsg-stat-card {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.jsg-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--jsg-primary);
}

.jsg-stat-label {
    font-size: 14px;
    color: var(--jsg-text-light);
}

/* Loading Spinner */
.jsg-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: var(--jsg-primary);
    border-radius: 50%;
    animation: jsg-spin 1s linear infinite;
}

@keyframes jsg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Checkmark */
.jsg-success-check {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--jsg-primary) 0%, var(--jsg-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: jsg-pop 0.5s ease;
}

@keyframes jsg-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* QR Code Placeholder */
.jsg-qr-code {
    width: 150px;
    height: 150px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Share Buttons */
.jsg-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jsg-share-copy {
    background: #f3f4f6;
    color: var(--jsg-text-dark);
}

.jsg-share-copy:hover {
    background: #e5e7eb;
}

.jsg-share-whatsapp {
    background: #25D366;
    color: white;
}

.jsg-share-whatsapp:hover {
    background: #1da851;
}

.jsg-share-email {
    background: #3B82F6;
    color: white;
}

.jsg-share-email:hover {
    background: #2563eb;
}
