/* ============================================
   FAMILY CUSTOM - Gift Card CSS
   ============================================ */

/* Fix menu mobile sur cette page */
@media (max-width: 900px) {
    body .nav-links.mobile-visible {
        z-index: 1001 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 2rem !important;
        background: rgba(20, 20, 20, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        gap: 1.5rem !important;
    }
    
    body .nav-links.mobile-visible li {
        list-style: none !important;
        text-align: center !important;
    }
    
    body .nav-links.mobile-visible .nav-link {
        font-size: 1.3rem !important;
        padding: 0.75rem 1.5rem !important;
        color: #f5f5f5 !important;
        display: block !important;
    }
    
    /* Cacher la recherche mobile dans le menu */
    body .nav-links.mobile-visible .mobile-search-container {
        display: none !important;
    }
}

.gift-card-page {
    padding: 120px 5% 80px;
    min-height: 100vh;
    background: #2d2d2d;
    position: relative;
    z-index: 1;
}

.gift-card-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero */
.gift-card-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.gift-card-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
}

.gift-card-hero h1 i {
    color: var(--color-accent, #e07a5f);
    margin-right: 10px;
}

.gift-card-hero p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Content Grid */
.gift-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Preview Card */
.gift-card-preview {
    position: sticky;
    top: 120px;
}

.preview-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #121212 50%, #0a0a0a 100%);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    aspect-ratio: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #e6c200, #d4af37);
}

.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.card-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    opacity: 0.6;
}

.card-decoration i {
    color: #d4af37;
    font-size: 0.7rem;
}

/* Card Header avec logo */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.card-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.card-logo span {
    color: #f5f5f5;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-badge {
    background: linear-gradient(135deg, #d4af37, #e6c200);
    color: #1a1a2e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Card Body */
.card-body {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 1rem 0;
}

.card-amount {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d4af37, #e6c200, #c9a87c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-message {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-size: 1rem;
    min-height: 1.5em;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-validity {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-validity i {
    color: #d4af37;
}

.card-code {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    color: #d4af37;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
}

/* Form */
.gift-card-form {
    background: #3a3a3a;
    border-radius: 20px;
    padding: 2rem;
}

.gift-card-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #f5f5f5;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--color-accent, #e07a5f);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: #2d2d2d;
    border: 2px solid #4a4a4a;
    border-radius: 12px;
    color: #f5f5f5;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent, #e07a5f);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group textarea {
    resize: none;
    height: 100px;
}

.form-hint {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 6px;
}

.char-count {
    display: block;
    text-align: right;
    color: #666;
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Amount Options */
.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-btn {
    padding: 14px;
    background: #2d2d2d;
    border: 2px solid #4a4a4a;
    border-radius: 12px;
    color: #f5f5f5;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover {
    border-color: var(--color-accent, #e07a5f);
}

.amount-btn.active {
    background: linear-gradient(135deg, var(--color-accent, #e07a5f), #c9a87c);
    border-color: transparent;
    color: white;
}

.amount-btn.custom {
    font-size: 0.9rem;
}

.amount-btn.custom i {
    margin-right: 5px;
}

.custom-amount {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 14px 16px;
    background: #2d2d2d;
    border: 2px solid var(--color-accent, #e07a5f);
    border-radius: 12px;
}

.custom-amount input {
    flex: 1;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 1.2rem;
    font-weight: 600;
    outline: none;
}

.custom-amount span {
    color: #888;
    font-size: 1.2rem;
}

/* Delivery Options */
.delivery-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
    accent-color: var(--color-accent, #e07a5f);
}

.radio-label {
    color: #ccc;
}

/* Summary */
.gift-summary {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #aaa;
}

.summary-row.total {
    border-top: 2px solid #4a4a4a;
    margin-top: 10px;
    padding-top: 15px;
    color: #f5f5f5;
    font-size: 1.3rem;
    font-weight: 600;
}

.summary-row.total span:last-child {
    color: var(--color-accent, #e07a5f);
}

/* Add Button */
.btn-add-gift {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-accent, #e07a5f), #c9a87c);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-gift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(224, 122, 95, 0.4);
}

.gift-info {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

.gift-info i {
    margin-right: 5px;
}

/* How it works */
.gift-how-it-works {
    margin-top: 4rem;
    text-align: center;
}

.gift-how-it-works h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #f5f5f5;
    margin-bottom: 2.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step {
    background: #3a3a3a;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent, #e07a5f), #c9a87c);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon i {
    font-size: 1.5rem;
    color: white;
}

.step h4 {
    color: #f5f5f5;
    font-size: 1rem;
    margin-bottom: 8px;
}

.step p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .gift-card-content {
        grid-template-columns: 1fr;
    }
    
    .gift-card-preview {
        position: static;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gift-card-hero h1 {
        font-size: 1.8rem;
    }
    
    .preview-card {
        padding: 1.5rem;
    }
    
    .card-amount {
        font-size: 2.5rem;
    }
    
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
