/* ============================================
   Anti-Theft Modal Styles
   ============================================ */

.anti-theft-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.anti-theft-modal.active {
    display: flex;
}

.anti-theft-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.modal-header {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 16px 16px 0 0;
}

.warning-header {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.purchase-header {
    background: linear-gradient(135deg, #d4af37, #f4d03f, #d4af37);
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.purchase-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.modal-header .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

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

.modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.modal-header .subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Body Styles */
.modal-body {
    padding: 2rem;
}

.detection-box {
    background: #fef2f2;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    margin-bottom: 2rem;
}

.detection-box h3 {
    color: #991b1b;
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
}

.detection-box p {
    color: #7f1d1d;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.detection-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #991b1b;
}

.message-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.message-box p {
    margin: 0;
    line-height: 1.8;
}

.price-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 2.5rem;
    border-radius: 12px;
    border: 3px solid #d4af37;
    text-align: center;
    margin-bottom: 2rem;
}

.price-box h3 {
    color: #92400e;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.price-box .price {
    font-size: 3.5rem;
    font-weight: 900;
    color: #d97706;
    margin: 1rem 0;
}

.price-box p {
    color: #78716c;
    font-size: 0.95rem;
    margin: 0;
}

.confirmation-notice {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #6b7280;
    margin-bottom: 2rem;
}

.confirmation-notice h4 {
    color: #374151;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.confirmation-notice p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Form Styles */
.buyer-form {
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.buyer-form h4 {
    color: #374151;
    margin: 0 0 1.5rem 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.agreement-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    border: 2px solid #d4af37;
    margin-top: 1rem;
}

.agreement-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.agreement-box label {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    cursor: pointer;
    font-weight: normal;
}

/* Director Message */
.director-message {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-left: 4px solid #d4af37;
    border-radius: 8px;
}

.director-message p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
}

.director-message .signature {
    text-align: right;
    color: #6b7280;
    margin-top: 0.75rem;
    font-style: normal;
}

/* Footer Styles */
.modal-footer {
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.btn-primary,
.btn-confirm,
.btn-cancel {
    padding: 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-confirm {
    flex: 1;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #d1d5db;
    color: #6b7280;
}

.btn-confirm:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-confirm .price-tag {
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-cancel {
    flex: 0 0 200px;
    background: white;
    color: #6b7280;
    border: 2px solid #d1d5db;
}

.btn-cancel:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .anti-theft-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 2rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-cancel {
        flex: 1;
    }
    
    .price-box .price {
        font-size: 2.5rem;
    }
}

/* Gallery Warning Banner Additional Styles */
.gallery-warning-banner {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
