/* 
 * CSS classes to replace inline styles that were removed
 * This file contains all the styles that were previously inline
 */

/* Two-Factor Authentication Styles */
.backup-tokens-header {
    color: var(--color-error) !important;
}

.backup-tokens-note {
    font-size: 1.8rem;
}

.two-factor-setup-header {
    color: var(--color-error) !important;
}

.two-factor-setup-text {
    color: var(--color-text);
    font-size: 1.8rem;
}

.two-factor-primary-method {
    font-size: 1.8rem;
}

/* Form Visibility Styles */
.form__field.hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* Encryption Key Warning */
.encryption-key-warning {
    color: red;
    margin-left: 0.5rem;
    font-weight: 600;
}

/* Modal Styles */
.modal.hidden {
    display: none !important;
}

.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal .close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.modal .close:hover,
.modal .close:focus {
    background: rgba(0, 0, 0, 0.8);
    text-decoration: none;
}

/* Forum Post Detail Styles */
.modal-trigger {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-trigger:hover {
    transform: scale(1.02);
}

.bookmark-btn.bookmarked {
    background-color: var(--color-success, #4CAF50);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .backup-tokens-note,
    .two-factor-setup-text,
    .two-factor-primary-method {
        font-size: 1.4rem;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal .close {
        top: -35px;
        font-size: 24px;
        width: 30px;
        height: 30px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .encryption-key-warning {
        color: #ff6b6b;
    }
    
    .modal {
        background-color: rgba(0, 0, 0, 0.9);
    }
}

/* Form styles */
.inline-form {
    display: inline !important;
}

/* User actions menu */
#user-actions-menu.hidden {
    display: none !important;
}

#user-actions-menu {
    display: block;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* Image modal specific styles */
.image-modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.image-modal.hidden {
    display: none !important;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .encryption-key-warning {
        color: #ff0000;
        font-weight: 700;
        text-decoration: underline;
    }

    .modal, .image-modal {
        background-color: rgba(0, 0, 0, 0.95);
    }

    .modal .close, .modal-close {
        border: 2px solid white;
    }
}

/* Form display styles */
.inline-form {
    display: inline !important;
}

.inline-form-full-width {
    display: inline !important;
    width: 100% !important;
}

/* Auction Bid Page Styles */
.auction-title {
    color: var(--color-main);
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: var(--font-bold);
    text-align: left;
}

.auction-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    text-align: left;
    border: 2px solid #000;
    border-radius: 1rem;
    padding: 2rem;
}

.auction-info-column {
    background-color: var(--color-light-grey, #f8f9fa);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--color-main);
}

.bid-form-column {
    background-color: var(--color-light-grey, #f8f9fa);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--color-accent, #3478f6);
}

.auction-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auction-info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: var(--font-medium);
    color: var(--color-sub);
    font-size: 1.4rem;
}

.info-value {
    font-weight: var(--font-bold);
    color: var(--color-text);
    font-size: 1.6rem;
}

.time-remaining {
    margin-top: 1rem;
}

.time-remaining .timer-value {
    color: var(--color-error, #e74c3c) !important;
    font-weight: var(--font-bold);
    font-size: 1.6rem;
}

.bid-form {
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Fix button alignment issues */
.form-actions .btn {
    margin: 0 !important;
    padding: 1rem 2rem !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.buy-now-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    height: 1px;
    background: var(--color-light);
}

.divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-light-grey, #f8f9fa);
    padding: 0 1rem;
    color: var(--color-sub);
    font-weight: var(--font-medium);
}

.auction-ended {
    color: var(--color-error, #e74c3c) !important;
    font-weight: var(--font-bold);
}

/* Top Bids Section */
.top-bids-list {
    margin-top: 0.5rem;
}

.bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-light);
    font-size: 1.2rem;
}

.bid-item:last-of-type {
    border-bottom: none;
}

.bid-amount {
    font-weight: var(--font-bold);
    color: var(--color-main);
    font-size: 1.3rem;
}

.bid-user {
    font-weight: var(--font-medium);
    color: var(--color-text);
    flex: 1;
    text-align: center;
}

.bid-time {
    font-size: 1.1rem;
    color: var(--color-sub);
}

.total-bids-count {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--color-main);
    font-weight: var(--font-bold);
    color: var(--color-main);
    text-align: center;
    font-size: 1.3rem;
}

.no-bids {
    color: var(--color-sub);
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Bid Form Styling */
.bid-form-column .form__field label {
    font-weight: var(--font-bold) !important;
    color: var(--color-text) !important;
    font-size: 1.6rem !important;
}

.bid-form-column .form-help {
    color: var(--color-error, #e74c3c) !important;
    font-weight: var(--font-medium) !important;
    margin-bottom: 0.8rem !important;
    display: block !important;
}

/* Auction Image Slider */
.auction-images-section {
    margin-top: 3rem;
    width: 100%;
}

.image-slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-light-grey, #f8f9fa);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid #000;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slider-image.active {
    opacity: 1;
}

.slider-image img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
}

.slider-arrow-left {
    left: 1rem;
}

.slider-arrow-right {
    right: 1rem;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-light-grey, #f8f9fa);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--color-light);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--color-main);
}

.indicator:hover {
    background: var(--color-accent, #3478f6);
}

.buy-now-text {
    margin-bottom: 1.5rem;
    color: var(--color-text);
    font-size: 1.6rem;
}

.btn--large {
    font-size: 1.8rem;
}

/* Responsive Design for Auction Layout */
@media (max-width: 768px) {
    .auction-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .auction-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .auction-info-column,
    .bid-form-column {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn--large {
        padding: 1.2rem 2rem;
        font-size: 1.6rem;
    }

    .image-slider {
        height: 300px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .slider-arrow-left {
        left: 0.5rem;
    }

    .slider-arrow-right {
        right: 0.5rem;
    }
}

/* Two-factor authentication styles */
.error-color {
    color: var(--color-error) !important;
}

.danger-bg {
    background: #c92a2a !important;
}

.medium-note {
    font-size: 1.5rem !important;
}

.large-note {
    font-size: 1.6rem !important;
}

.extra-large-note {
    font-size: 1.8rem !important;
}

.no-list-style {
    list-style: none !important;
    padding: 0 !important;
}

/* Visibility control classes */
.hidden {
    display: none !important;
}

.show-inline-block {
    display: inline-block !important;
}

/* Modal overflow control */
.modal-open {
    overflow: hidden !important;
}

/* Support link styling */
.support-link {
    color: var(--color-link) !important;
    text-decoration: underline !important;
}

/* Bold text styling */
.bold-text {
    font-weight: bold !important;
}

/* Video preview styling */
.video-preview-max-height {
    max-height: 300px !important;
}

/* Progress bar styling */
.progress-thin {
    height: 6px !important;
}

.progress-0 {
    width: 0% !important;
}

.progress-25 {
    width: 25% !important;
}

.progress-50 {
    width: 50% !important;
}

.progress-75 {
    width: 75% !important;
}

.progress-100 {
    width: 100% !important;
}

/* Form row layout for side-by-side fields */
.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

/* Item form styling */
.item-group {
    background: var(--color-bg-secondary, #f8f9fa);
    border: 1px solid var(--color-border, #e9ecef);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.item-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-primary, #007bff);
}

.item-header h4 {
    margin: 0;
    color: var(--color-text, #333);
    font-size: 2rem;
    font-weight: var(--font-bold, 600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-header h4::before {
    content: "📦";
    font-size: 1.8rem;
}

.item-fields {
    margin-top: 0;
}

.item-fields .form-row:last-child {
    margin-bottom: 0;
}

/* Better spacing for form groups in items */
.item-fields .form-group {
    margin-bottom: 1.5rem;
    display: block !important;
    width: 100% !important;
}

.item-fields .form-group:last-child {
    margin-bottom: 0;
}

/* Ensure form-group-half only applies to elements inside form-row */
.form-row .form-group-half {
    flex: 1;
    margin-bottom: 0;
    display: block !important;
}

/* Make sure regular form-group is not affected by flex */
.item-fields > .form-group {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    clear: both !important;
}

/* Force item name and description to be full width blocks */
.item-fields .form-group:not(.form-group-half) {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    flex: none !important;
}

/* Enhanced form labels in items */
.item-fields .form-label {
    font-size: 1.4rem;
    font-weight: var(--font-medium, 500);
    color: var(--color-text-secondary, #666);
    margin-bottom: 0.8rem;
    display: block;
}

/* Form control sizing */
.item-fields .form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Specific sizing for quantity and price in form-row */
.form-row .form-group-half .form-control {
    width: 100%;
    max-width: none;
}

/* Override any Bootstrap or other CSS that might be causing flex layout */
.item-fields .form-group:nth-child(1),
.item-fields .form-group:nth-child(2) {
    display: block !important;
    width: 100% !important;
    float: none !important;
    flex: none !important;
    clear: both !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Ensure the form-row only affects the quantity/price row */
.item-fields .form-row {
    display: flex !important;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    clear: both;
}

/* Make sure only form-group-half elements are flexed */
.item-fields .form-row .form-group-half {
    flex: 1 !important;
    display: block !important;
}

/* Remove item button styling */
.remove-item-btn {
    background: var(--color-error, #dc3545);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: var(--font-medium, 500);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-item-btn::before {
    content: "🗑️";
    font-size: 1.2rem;
}

.remove-item-btn:hover {
    background: var(--color-error-dark, #c82333);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* Add item button styling */
.add-item-btn {
    background: var(--color-success, #28a745);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: var(--font-medium, 500);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem auto;
}

.add-item-btn::before {
    content: "➕";
    font-size: 1.3rem;
}

.add-item-btn:hover {
    background: var(--color-success-dark, #218838);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

/* Mobile responsive form rows */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

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

    .item-group {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .item-header h4 {
        font-size: 1.8rem;
    }
}
