/* ============================================
   ADRI AJÁNDÉKKÁRTYA v2.0 - FRONTEND STÍLUSOK
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

.adri-giftcard-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header */
.adri-giftcard-header {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #DBD1CB 0%, #D2C5BC 100%);
    border-radius: 24px 24px 0 0;
    position: relative;
}

.giftcard-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

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

.adri-giftcard-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    color: #5a4a4a;
    margin: 0 0 10px 0;
}

.adri-giftcard-header p {
    color: #6a5a5a;
    font-size: 18px;
    margin: 0;
}

.price-display {
    font-size: 42px;
    font-weight: 700;
    color: #6B8A67;
    margin-top: 20px;
}

/* Test mode notice */
.test-mode-notice {
    background: #fff3cd;
    color: #856404;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    border-left: 4px solid #ffc107;
}

/* Form */
.adri-giftcard-form {
    background: white;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-section {
    padding: 35px 40px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 25px 0;
    font-size: 20px;
    color: #5a4a4a;
    font-weight: 600;
}

.form-section h3 .optional {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8B9A87 0%, #6B8A67 100%);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #5a4a4a;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #dc3545;
}

.form-group label .optional {
    color: #888;
    font-weight: 400;
    font-size: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e4e1;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B9A87;
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 154, 135, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.field-hint {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

/* Message Editor */
.message-editor-container {
    border: 2px solid #e8e4e1;
    border-radius: 12px;
    overflow: hidden;
}

.message-editor-container:focus-within {
    border-color: #8B9A87;
    box-shadow: 0 0 0 4px rgba(139, 154, 135, 0.1);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 12px 15px;
    background: #f9f7f5;
    border-bottom: 1px solid #e8e4e1;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #f0f0f0;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    margin: 0 8px;
}

.font-family-select,
.font-size-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    background: white;
}

.message-editor {
    min-height: 120px;
    padding: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #5a4a4a;
    outline: none;
}

.message-editor:empty::before {
    content: attr(placeholder);
    color: #aaa;
}

/* Payment Section */
.payment-section {
    background: linear-gradient(180deg, #f9f7f5 0%, #f0ebe8 100%);
}

/* Saját kártya input mezők */
.card-input-wrapper {
    background: white;
    border: 2px solid #e8e4e1;
    border-radius: 12px;
    padding: 20px;
}

.card-input-wrapper:focus-within {
    border-color: #8B9A87;
    box-shadow: 0 0 0 4px rgba(139, 154, 135, 0.1);
}

.card-input-row {
    margin-bottom: 15px;
}

.card-input-row:last-child {
    margin-bottom: 0;
}

.card-input-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.card-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.card-input-field {
    position: relative;
}

.card-input-field input,
.card-input-group > input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e4e1;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    letter-spacing: 2px;
    color: #5a4a4a;
    background: #fafafa;
    box-sizing: border-box;
    transition: all 0.2s;
}

.card-input-field input:focus,
.card-input-group > input:focus {
    outline: none;
    border-color: #8B9A87;
    background: white;
}

.card-input-field input::placeholder,
.card-input-group > input::placeholder {
    color: #bbb;
    letter-spacing: 1px;
}

.card-number-group .card-input-field input {
    padding-right: 50px;
}

.card-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

/* Card number formatting */
#card-number {
    font-size: 20px;
}

#card-expiry, #card-cvc {
    font-size: 18px;
    text-align: center;
}

.card-errors {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px 15px;
    background: #fff5f5;
    border-radius: 8px;
    display: none;
}

.order-summary {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-row {
    font-size: 20px;
    font-weight: 600;
}

.total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #6B8A67;
}

.btn-submit {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, #8B9A87 0%, #6B8A67 100%);
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(107, 138, 103, 0.4);
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #7A8977 0%, #5a7a57 100%);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.terms-notice {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 20px 0 0 0;
}

.terms-notice a {
    color: #6B8A67;
}

.secure-notice {
    text-align: center;
    font-size: 13px;
    color: #6B8A67;
    margin-top: 15px;
}

/* Success */
.giftcard-success {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.giftcard-success h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    color: #5a4a4a;
    margin: 0 0 15px 0;
}

.giftcard-success p {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.giftcard-success p.small {
    font-size: 14px;
    color: #888;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    background: white;
    border: 2px solid #8B9A87;
    border-radius: 12px;
    color: #6B8A67;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #8B9A87;
    color: white;
}

/* Error state */
.adri-gc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .adri-giftcard-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .adri-giftcard-header {
        padding: 35px 20px;
    }
    
    .adri-giftcard-header h2 {
        font-size: 28px;
    }
    
    .price-display {
        font-size: 32px;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group input,
    .form-group textarea,
    .message-editor {
        font-size: 16px !important;
    }
}
