/**
 * Auction Week Front-end Styles
 */

/* Status Badges */
.aw-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.aw-status-upcoming {
    background-color: #e5e5e5;
    color: #333;
}

.aw-status-live {
    background-color: #4caf50;
    color: white;
}

.aw-status-sold {
    background-color: #2196f3;
    color: white;
}

.aw-status-not_sold {
    background-color: #ff9800;
    color: white;
}

.aw-status-ended {
    background-color: #c62828;
    color: white;
}

/* Home Page */
.aw-home {
    margin: 20px 0;
}

.aw-featured-attempts h2 {
    margin-bottom: 20px;
}

/* Title Styles - Matching First Image (Simple Design) */
.aw-home .rt-container-fluid.rt-tpg-container {
    margin-bottom: 30px;
}

.aw-home .tpg-header-wrapper {
    margin-bottom: 20px;
}

/* محاذاة عناوين المزادات لليمين (الموقع عربي) */
.aw-home .tpg-widget-heading-wrapper,
.section-title-style-style4 .tpg-widget-heading-wrapper,
.rt-container-fluid .tpg-header-wrapper .tpg-widget-heading-wrapper,
.tpg-el-main-wrapper .tpg-widget-heading-wrapper.heading-style4,
[dir="rtl"] .tpg-widget-heading-wrapper.heading-style4,
[dir="rtl"] .section-title-style-style4 .tpg-widget-heading-wrapper {
    position: relative;
    text-align: right !important;
    padding: 0;
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    direction: rtl !important;
}


.aw-home .tpg-widget-heading-wrapper.heading-style4:before,
.section-title-style-style4 .tpg-widget-heading-wrapper.heading-style4:before {
    background-color: #3e9799;
    bottom: -17px;
    height: 6px;
    right: 0;
    transform: skewX(25deg);
    width: 45px;
    content: '';
    position: absolute;
}

/* Thin grey line on the left only */
.aw-home .tpg-widget-heading-line.line-left,
.section-title-style-style4 .tpg-widget-heading-line.line-left {
    flex: 1;
    height: 1px;
    background-color: #D3D3D3;
    margin-left: 0;
    margin-right: 15px;
    max-width: none;
}

/* Hide right line */
.aw-home .tpg-widget-heading-line.line-right,
.section-title-style-style4 .tpg-widget-heading-line.line-right {
    display: none;
}

.aw-home .tpg-widget-heading,
.section-title-style-style4 .tpg-widget-heading,
.tpg-widget-heading-wrapper.heading-style4 .tpg-widget-heading,
[dir="rtl"] .tpg-widget-heading-wrapper .tpg-widget-heading {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2E8B99;
    text-align: right !important;
    z-index: 1;
    background-color: transparent;
    order: -1 !important;
}

.aw-home .tpg-widget-heading span,
.section-title-style-style4 .tpg-widget-heading span {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

/* Thick underline matching text color */
.aw-home .tpg-widget-heading span::after,
.section-title-style-style4 .tpg-widget-heading span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: #2E8B99;
}

.aw-attempts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.aw-attempt-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aw-attempt-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.aw-attempt-content {
    padding: 15px;
}

.aw-attempt-content h3 {
    margin: 0 0 10px 0;
}

.aw-attempt-status {
    margin: 10px 0;
}

.aw-attempt-date {
    color: #666;
    font-size: 14px;
}

.aw-attempt-price {
    margin: 10px 0;
    font-size: 18px;
}

/* Auctions Listing */
.aw-auctions-listing {
    margin: 20px 0;
}

.aw-auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.aw-auction-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aw-auction-card h3 {
    margin-top: 0;
}

.aw-auction-description {
    margin: 15px 0;
    color: #666;
}

.aw-auction-dates {
    margin: 15px 0;
}

.aw-auction-dates p {
    margin: 5px 0;
}

/* Auction Page */
.aw-auction-page {
    margin: 20px 0;
}

.aw-attempts-list {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.aw-attempt-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

.aw-attempts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.aw-attempts-table th,
.aw-attempts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.aw-attempts-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Asset Page */
.aw-asset-page {
    margin: 20px 0;
}

.aw-asset-media {
    margin: 20px 0;
}

.aw-asset-media img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.aw-asset-description {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Attempt Page */
.aw-attempt-page {
    margin: 20px 0;
}

.aw-attempt-header {
    margin-bottom: 20px;
}

.aw-attempt-status-large {
    font-size: 18px;
    margin: 10px 0;
}

.aw-attempt-media {
    margin: 20px 0;
}

.aw-attempt-media img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Countdown Timer */
.aw-countdown-container {
    margin: 30px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.aw-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.aw-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.aw-countdown-value {
    font-size: 36px;
    font-weight: bold;
    color: #2196f3;
    line-height: 1;
}

.aw-countdown-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Attempt Info */
.aw-attempt-info {
    margin: 30px 0;
}

.aw-info-table {
    width: 100%;
    border-collapse: collapse;
}

.aw-info-table th,
.aw-info-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.aw-info-table th {
    width: 200px;
    font-weight: bold;
    background-color: #f5f5f5;
}

/* Score Display */
.aw-attempt-score {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.aw-score-display {
    text-align: center;
    margin: 20px 0;
}

.aw-score-value {
    font-size: 48px;
    font-weight: bold;
    color: #2196f3;
}

.aw-score-label {
    font-size: 24px;
    color: #666;
}

.aw-score-breakdown {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.aw-score-breakdown p {
    margin: 8px 0;
}

/* Statistics Page */
.aw-statistics-page {
    margin: 20px 0;
}

.aw-filter-form {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.aw-filter-form label {
    margin-right: 15px;
}

.aw-statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.aw-stat-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: white;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aw-stat-card h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.aw-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2196f3;
    margin: 0;
}

.aw-valuation-stats {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.aw-valuation-stats p {
    margin: 10px 0;
}

/* Awards Page */
.aw-awards-page {
    margin: 20px 0;
}

.aw-awards-explanation {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.aw-awards-explanation ul {
    margin: 15px 0;
    padding-left: 30px;
}

.aw-awards-sections {
    margin: 30px 0;
}

.aw-award-section {
    margin: 40px 0;
}

.aw-awards-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.aw-awards-table th,
.aw-awards-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.aw-awards-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Buttons */
.aw-button {
    display: inline-block;
    padding: 10px 20px;
    background: #2196f3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.aw-button:hover {
    background: #1976d2;
    color: white;
}

.aw-attempt-actions {
    margin: 30px 0;
    display: flex;
    gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .aw-attempts-grid,
    .aw-auctions-grid {
        grid-template-columns: 1fr;
    }
    
    .aw-statistics-grid {
        grid-template-columns: 1fr;
    }
    
    .aw-countdown {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .aw-countdown-item {
        min-width: 60px;
    }
    
    .aw-countdown-value {
        font-size: 24px;
    }
}












