/* Airdrop Manager Pro - Frontend Styles */

/* Reset and Base */
.amp-container * {
    box-sizing: border-box;
}

/* Submit Form Styles */
.amp-submit-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f8f9fa;
}

.amp-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.amp-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.amp-form-header p {
    color: #666;
    font-size: 16px;
}

/* Progress Steps */
.amp-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.amp-progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.amp-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.amp-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #999;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.amp-step.active .amp-step-circle {
    background: #0066ff;
    border-color: #0066ff;
    color: #fff;
}

.amp-step.completed .amp-step-circle {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.amp-step-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.amp-step.active .amp-step-label {
    color: #0066ff;
    font-weight: 600;
}

/* Form Sections */
.amp-form-section {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.amp-form-section.hidden {
    display: none;
}

.amp-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Form Groups */
.amp-form-group {
    margin-bottom: 25px;
}

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

.amp-form-group label .required {
    color: #ff0000;
    margin-left: 3px;
}

.amp-form-group .helper-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Form Controls */
.amp-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.amp-form-control:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.amp-form-control.error {
    border-color: #dc3545;
}

textarea.amp-form-control {
    min-height: 120px;
    resize: vertical;
}

select.amp-form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Two Column Layout */
.amp-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.amp-col {
    flex: 1;
}

/* Image Upload */
.amp-image-upload {
    border: 2px dashed #e0e0e0;
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.amp-image-upload:hover {
    border-color: #0066ff;
    background: #f0f7ff;
}

.amp-image-upload.has-image {
    padding: 20px;
}

.amp-upload-placeholder {
    color: #666;
}

.amp-upload-placeholder svg {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.amp-image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto 15px;
}

.amp-remove-image {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.amp-remove-image:hover {
    background: #c82333;
}

/* Package Selection */
.amp-packages {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.amp-package-card {
    background: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.amp-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.amp-package-card.selected {
    border-color: #0066ff;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
}

.amp-package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amp-package-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 15px;
    margin-bottom: 15px;
}

.amp-package-price {
    font-size: 40px;
    font-weight: 800;
    color: #0066ff;
    margin-bottom: 20px;
}

.amp-package-price span {
    font-size: 20px;
    color: #666;
}

.amp-package-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    flex-grow: 1;
}

.amp-package-features li {
    padding: 10px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.amp-package-features li:last-child {
    border-bottom: none;
}

.amp-package-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: 700;
    margin-right: 10px;
}

.amp-select-button {
    width: 100%;
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #0066ff;
    color: #0066ff;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
    display: block;
}

.amp-select-button:hover,
.amp-package-card.selected .amp-select-button {
    background: #0066ff;
    color: #fff;
}

/* Payment Section */
.amp-payment-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.amp-order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #e0e0e0;
}

.amp-order-summary strong {
    font-size: 18px;
    color: #1a1a1a;
}

.amp-total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #0066ff;
}

.amp-payment-instructions {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
}

.amp-payment-instructions h4 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 16px;
}

.amp-payment-instructions p {
    color: #856404;
    margin-bottom: 15px;
    line-height: 1.6;
}

.amp-usdt-address {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #ffc107;
    margin: 15px 0;
    position: relative;
}

.amp-address-label {
    font-size: 12px;
    color: #856404;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.amp-address-value {
    font-family: monospace;
    font-size: 14px;
    color: #1a1a1a;
    word-break: break-all;
    margin-bottom: 10px;
}

.amp-copy-button {
    background: #ffc107;
    color: #1a1a1a;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.amp-copy-button:hover {
    background: #e0a800;
}

.amp-copy-button.copied {
    background: #28a745;
    color: #fff;
}

/* Form Navigation */
.amp-form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.amp-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.amp-btn-primary {
    background: #0066ff;
    color: #fff;
}

.amp-btn-primary:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.amp-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.amp-btn-secondary:hover {
    background: #5a6268;
}

.amp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.amp-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amp-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.amp-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.amp-alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Loading Spinner */
.amp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: amp-spin 0.8s linear infinite;
}

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

/* Airdrop List Styles */
.amp-airdrop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.amp-airdrop-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.amp-airdrop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.amp-airdrop-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.amp-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.amp-airdrop-content {
    padding: 25px;
}

.amp-airdrop-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.amp-airdrop-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.amp-airdrop-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.amp-airdrop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.amp-view-details {
    color: #0066ff;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.amp-view-details:hover {
    color: #0052cc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .amp-packages {
        flex-wrap: wrap;
    }
    
    .amp-package-card {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .amp-submit-form {
        padding: 20px 15px;
    }
    
    .amp-form-section {
        padding: 25px 20px;
    }
    
    .amp-row {
        flex-direction: column;
        gap: 0;
    }
    
    .amp-packages {
        flex-direction: column;
    }
    
    .amp-package-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .amp-progress-steps {
        flex-wrap: wrap;
    }
    
    .amp-step {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }
    
    .amp-form-navigation {
        flex-direction: column;
    }
    
    .amp-btn {
        width: 100%;
        justify-content: center;
    }
    
    .amp-airdrop-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .amp-package-price {
        font-size: 32px;
    }
    
    .amp-section-title {
        font-size: 18px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
