/**
 * Account Manager Styles
 * For listing management on account page
 */

.gd-account-manager {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gd-account-manager h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
}

/* No Listings Message */
.gd-no-listings {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.gd-no-listings p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Listings Manager */
.gd-listings-manager {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Listing Card */
.gd-listing-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.gd-listing-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

/* Listing Header */
.gd-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
}

.gd-listing-header h3 {
    margin: 0;
    font-size: 22px;
}

.gd-listing-header h3 a {
    color: white;
    text-decoration: none;
}

.gd-listing-header h3 a:hover {
    text-decoration: underline;
}

.gd-listing-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gd-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.gd-status-publish {
    background: #10b981;
    color: white;
}

.gd-status-draft {
    background: #f59e0b;
    color: white;
}

.gd-status-pending {
    background: #6366f1;
    color: white;
}

/* Listing Body */
.gd-listing-body {
    padding: 25px;
}

/* Field Section */
.gd-field-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

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

.gd-field-section h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gd-field-section h4 i {
    color: #0073aa;
}

/* Trading Names Manager */
.gd-trading-names-manager {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.gd-current-names {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 40px;
}

.gd-empty-message {
    color: #999;
    font-style: italic;
    margin: 0;
}

.gd-name-chip {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 2px solid #0073aa;
    border-radius: 20px;
    padding: 8px 12px 8px 16px;
    gap: 10px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gd-name-text {
    color: #0073aa;
    font-weight: 500;
    font-size: 14px;
}

.gd-remove-name {
    background: #dc3545;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.gd-remove-name:hover {
    background: #c82333;
    transform: scale(1.1);
}

.gd-remove-name i {
    font-size: 10px;
}

/* Add Name Form */
.gd-add-name-form {
    display: flex;
    gap: 10px;
}

.gd-new-name-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.gd-new-name-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.gd-add-name-btn {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.gd-add-name-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

/* Editable Fields */
.gd-editable-field {
    position: relative;
}

.gd-field-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: all 0.2s;
}

.gd-field-display:hover {
    background: #f0f0f0;
}

.gd-field-value {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.gd-field-value em {
    color: #999;
}

.gd-edit-field-btn {
    background: #0073aa;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gd-edit-field-btn:hover {
    background: #005a87;
    transform: scale(1.1);
}

.gd-field-edit {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gd-field-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #0073aa;
    border-radius: 6px;
    font-size: 15px;
}

.gd-field-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.gd-save-field,
.gd-cancel-edit {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gd-save-field {
    background: #10b981;
    color: white;
}

.gd-save-field:hover {
    background: #059669;
}

.gd-cancel-edit {
    background: #6c757d;
    color: white;
}

.gd-cancel-edit:hover {
    background: #5a6268;
}

/* Quick Fields */
.gd-quick-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gd-quick-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.gd-quick-field label i {
    color: #0073aa;
}

/* Loading State */
.gd-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.gd-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid #0073aa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success Message */
.gd-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: slideIn 0.3s ease-out;
    z-index: 9999;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error Message */
.gd-error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    animation: slideIn 0.3s ease-out;
    z-index: 9999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gd-listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gd-listing-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .gd-quick-fields {
        grid-template-columns: 1fr;
    }
    
    .gd-add-name-form {
        flex-direction: column;
    }
    
    .gd-add-name-btn {
        width: 100%;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

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

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

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

