/**
 * Gift Card Design Templates
 * WooCommerce Gift Card Pro
 */

/* ========================================
   BASE GIFT CARD STYLES
   ======================================== */

.gift-card-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gift-card-header {
    padding: 30px;
    text-align: center;
}

.gift-card-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.gift-card-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.8;
}

.gift-card-body {
    padding: 30px;
}

.gift-card-recipient {
    font-size: 20px;
    margin-bottom: 20px;
}

.gift-card-message {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.6;
}

.gift-card-code-section {
    text-align: center;
    margin: 30px 0;
}

.gift-card-code-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.gift-card-code {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    display: inline-block;
    font-family: 'Courier New', monospace;
}

.gift-card-amount {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.gift-card-instructions {
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.gift-card-footer {
    padding: 20px 30px;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========================================
   CLASSIC DESIGN
   ======================================== */

.gift-card-design-classic .gift-card-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.gift-card-design-classic .gift-card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.gift-card-design-classic .gift-card-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.gift-card-design-classic .gift-card-message {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid rgba(255, 255, 255, 0.5);
}

.gift-card-design-classic .gift-card-code {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.gift-card-design-classic .gift-card-amount {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gift-card-design-classic .gift-card-instructions {
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   MODERN DESIGN
   ======================================== */

.gift-card-design-modern .gift-card-container {
    background: #ffffff;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.gift-card-design-modern .gift-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 40px 30px;
}

.gift-card-design-modern .gift-card-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 36px;
    letter-spacing: 2px;
}

.gift-card-design-modern .gift-card-message {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    font-style: normal;
}

.gift-card-design-modern .gift-card-code {
    background: #f7fafc;
    color: #667eea;
    border: 2px solid #667eea;
    font-weight: 600;
}

.gift-card-design-modern .gift-card-amount {
    color: #667eea;
    font-weight: 300;
}

.gift-card-design-modern .gift-card-instructions {
    background: #edf2f7;
    border-radius: 0;
    border-left: 3px solid #cbd5e0;
}

/* ========================================
   ELEGANT DESIGN
   ======================================== */

.gift-card-design-elegant .gift-card-container {
    background: linear-gradient(to bottom, #1a1a1a 0%, #2d2d2d 100%);
    color: #d4af37;
    border: 3px solid #d4af37;
}

.gift-card-design-elegant .gift-card-header {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid #d4af37;
}

.gift-card-design-elegant .gift-card-title {
    font-family: 'Georgia', serif;
    color: #d4af37;
    font-weight: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gift-card-design-elegant .gift-card-body {
    color: #e8e8e8;
}

.gift-card-design-elegant .gift-card-message {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #e8e8e8;
    font-family: 'Georgia', serif;
}

.gift-card-design-elegant .gift-card-code {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.gift-card-design-elegant .gift-card-amount {
    color: #d4af37;
    font-family: 'Georgia', serif;
}

.gift-card-design-elegant .gift-card-instructions {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #b8b8b8;
}

.gift-card-design-elegant .gift-card-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: #888;
}

/* ========================================
   FESTIVE DESIGN
   ======================================== */

.gift-card-design-festive .gift-card-container {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.gift-card-design-festive .gift-card-container::before {
    content: '🎉';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
    top: -20px;
    right: -20px;
    transform: rotate(15deg);
}

.gift-card-design-festive .gift-card-container::after {
    content: '🎊';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    bottom: -10px;
    left: -10px;
    transform: rotate(-15deg);
}

.gift-card-design-festive .gift-card-header {
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 3px dotted rgba(255, 255, 255, 0.5);
}

.gift-card-design-festive .gift-card-title {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    font-weight: 900;
}

.gift-card-design-festive .gift-card-message {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
}

.gift-card-design-festive .gift-card-code {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gift-card-design-festive .gift-card-amount {
    color: #ffeb3b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 900;
}

.gift-card-design-festive .gift-card-instructions {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* ========================================
   BIRTHDAY DESIGN
   ======================================== */

.gift-card-design-birthday .gift-card-container {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #ffffff;
    position: relative;
}

.gift-card-design-birthday .gift-card-container::before {
    content: '🎂';
    position: absolute;
    font-size: 120px;
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gift-card-design-birthday .gift-card-header {
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
}

.gift-card-design-birthday .gift-card-header::after {
    content: '🎈 🎁 🎉';
    display: block;
    font-size: 24px;
    margin-top: 10px;
}

.gift-card-design-birthday .gift-card-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 900;
    animation: bounce 2s infinite;
}

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

.gift-card-design-birthday .gift-card-message {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gift-card-design-birthday .gift-card-code {
    background: rgba(255, 255, 255, 0.4);
    color: #d81b60;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-weight: 900;
}

.gift-card-design-birthday .gift-card-amount {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    font-weight: 900;
}

.gift-card-design-birthday .gift-card-instructions {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
}

/* ========================================
   CHRISTMAS DESIGN
   ======================================== */

.gift-card-design-christmas .gift-card-container {
    background: linear-gradient(135deg, #165b33 0%, #c41e3a 50%, #165b33 100%);
    color: #ffffff;
    position: relative;
    border: 5px solid #ffd700;
}

.gift-card-design-christmas .gift-card-container::before {
    content: '❄️';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
    top: 10px;
    right: 10px;
    animation: snowflake 3s infinite;
}

.gift-card-design-christmas .gift-card-container::after {
    content: '🎄';
    position: absolute;
    font-size: 80px;
    opacity: 0.15;
    bottom: 10px;
    left: 10px;
}

@keyframes snowflake {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(360deg); }
}

.gift-card-design-christmas .gift-card-header {
    background: rgba(255, 215, 0, 0.2);
    border-bottom: 3px solid #ffd700;
}

.gift-card-design-christmas .gift-card-header::before {
    content: '🎅 ⭐ 🎄';
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
}

.gift-card-design-christmas .gift-card-title {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    font-family: 'Georgia', serif;
}

.gift-card-design-christmas .gift-card-message {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
}

.gift-card-design-christmas .gift-card-code {
    background: rgba(255, 215, 0, 0.3);
    color: #ffffff;
    border: 3px solid #ffd700;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.gift-card-design-christmas .gift-card-amount {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 900;
}

.gift-card-design-christmas .gift-card-instructions {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.gift-card-design-christmas .gift-card-footer {
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

/* ========================================
   CUSTOM DESIGN (Base Template)
   ======================================== */

.gift-card-design-custom .gift-card-container {
    background: #ffffff;
    color: #333333;
    border: 2px solid #cccccc;
}

.gift-card-design-custom .gift-card-header {
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.gift-card-design-custom .gift-card-title {
    color: #333333;
}

.gift-card-design-custom .gift-card-message {
    background: #fafafa;
    border-left: 4px solid #cccccc;
}

.gift-card-design-custom .gift-card-code {
    background: #f5f5f5;
    color: #333333;
    border: 2px solid #cccccc;
}

.gift-card-design-custom .gift-card-amount {
    color: #333333;
}

.gift-card-design-custom .gift-card-instructions {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 600px) {
    .gift-card-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .gift-card-title {
        font-size: 24px;
    }
    
    .gift-card-code {
        font-size: 20px;
        letter-spacing: 2px;
        padding: 10px 20px;
    }
    
    .gift-card-amount {
        font-size: 28px;
    }
    
    .gift-card-header,
    .gift-card-body {
        padding: 20px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .gift-card-container {
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .gift-card-design-classic .gift-card-container,
    .gift-card-design-modern .gift-card-header,
    .gift-card-design-festive .gift-card-container,
    .gift-card-design-birthday .gift-card-container,
    .gift-card-design-christmas .gift-card-container {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .gift-card-title,
    .gift-card-code,
    .gift-card-amount {
        color: #000000 !important;
        text-shadow: none !important;
    }
}

/* ========================================
   EMAIL COMPATIBILITY
   ======================================== */

.gift-card-email-wrapper {
    background-color: #f4f4f4;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.gift-card-email-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
}

/* Inline styles for better email client support */
.gift-card-inline-styles {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
