/* NuWggets Auction Widget Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
}

.nuwggets-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Scrolling Ticker */
.nuwggets-ticker {
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    padding: 15px 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.ticker-content {
    display: flex;
    animation: scroll 25s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    margin: 0 60px;
    display: inline-block;
}

.ticker-price {
    color: #FFD700;
    font-size: 28px;
}

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

/* Carousel Section - SCROLLING FIXED */
.nuwggets-carousel {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    padding: 30px 0 50px 0;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    animation: carousel-scroll 60s linear infinite;
    width: max-content;
}

/* Scrolling animation */
@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    flex-shrink: 0;
    width: 120px;
    position: relative;
}

.carousel-thumbnail {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-thumbnail:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    border: 3px solid #FFD700;
    transform: scale(1.05);
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.placeholder-thumb span {
    font-size: 50px;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7), transparent);
    padding: 8px 6px;
    color: white;
    pointer-events: none;
}

.carousel-title {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-price {
    font-size: 14px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 1px;
}

.carousel-bids {
    font-size: 9px;
    color: #ddd;
}

.info-trigger {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #1e3c72;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    white-space: nowrap;
}

.carousel-thumbnail:hover .info-trigger {
    opacity: 1;
}

.info-trigger:hover {
    background: #FFA500;
    transform: translateX(-50%) scale(1.1);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

#modal-title {
    color: #1e3c72;
    font-size: 24px;
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    color: #2a5298;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 5px;
}

.modal-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-section ul {
    list-style: none;
    padding-left: 0;
}

.modal-section ul li {
    color: #555;
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.modal-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
}

.modal-actions {
    text-align: center;
    margin-top: 30px;
}

.modal-bid-button {
    display: inline-block;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.4);
}

.modal-bid-button:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(42, 82, 152, 0.6);
}

/* Quick View Container */
.quick-view-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: slideDown 0.4s ease-out;
}

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

.quick-view-content {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* Left: Small Image */
.quick-view-image {
    flex-shrink: 0;
    width: 200px;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border: 3px solid #FFD700;
}

/* Right: Details */
.quick-view-details {
    flex: 1;
}

.quick-view-details h2 {
    color: #1e3c72;
    font-size: 28px;
    margin-bottom: 15px;
}

.quick-view-details p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Price Box */
.qv-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #FFD700;
}

.qv-current-bid {
    text-align: left;
}

.qv-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.qv-price {
    font-size: 36px;
    font-weight: bold;
    color: #2a5298;
}

.qv-bid-count {
    text-align: right;
}

.qv-bid-count span {
    background: #1e3c72;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
}

/* Timer */
.qv-timer {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 25px;
}

.qv-timer-label {
    display: block;
    font-size: 14px;
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 5px;
}

.qv-timer-display {
    font-size: 24px;
    font-weight: bold;
    color: #1e3c72;
}

/* Bid Button */
.qv-bid-button {
    display: inline-block;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    padding: 18px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(42, 82, 152, 0.4);
    transition: all 0.3s ease;
    margin-right: 15px;
}

.qv-bid-button:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.6);
}

/* Close Button */
.qv-close {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qv-close:hover {
    background: #5a6268;
    transform: scale(1.05);
}

/* Popular Best Sellers Section */
.popular-tokens {
    border-top: 3px solid #FFD700;
    padding-top: 30px;
}

.popular-tokens h3 {
    color: #1e3c72;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.popular-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.popular-card:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
}

.popular-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.popular-info {
    padding: 12px;
    background: #f8f9fa;
}

.popular-title {
    font-size: 13px;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-price {
    font-size: 16px;
    font-weight: bold;
    color: #2a5298;
}

/* Auction Grid */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Auction Card */
.auction-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Image Section */
.auction-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    overflow: hidden;
}

.auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #FFD700;
}

.placeholder-image span {
    font-size: 80px;
}

.placeholder-image p {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

.token-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFD700;
    color: #1e3c72;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Details Section */
.auction-details {
    padding: 25px;
}

.auction-details h3 {
    color: #1e3c72;
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.auction-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Bid Info */
.bid-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.current-bid .label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.current-bid .price {
    font-size: 28px;
    font-weight: bold;
    color: #2a5298;
}

.bid-count {
    text-align: right;
}

.bid-count span {
    background: #1e3c72;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* Countdown Timer */
.countdown-timer {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.timer-label {
    font-size: 12px;
    color: #1e3c72;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.timer-display {
    font-size: 20px;
    font-weight: bold;
    color: #1e3c72;
}

/* Bid Button */
.bid-button {
    display: block;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.bid-button:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(42, 82, 152, 0.5);
}

.bid-button span {
    display: inline-block;
}

/* No Auctions Message */
.no-auctions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.no-auctions h2 {
    color: #1e3c72;
    font-size: 32px;
    margin-bottom: 15px;
}

.no-auctions p {
    color: #666;
    font-size: 18px;
    margin: 10px 0;
}

/* Footer */
.widget-footer {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.widget-footer p {
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auction-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ticker-item {
        font-size: 18px;
        margin: 0 30px;
    }
    
    .ticker-price {
        font-size: 22px;
    }
    
    .carousel-item {
        width: 100px;
    }
    
    .carousel-thumbnail {
        width: 100px;
        height: 100px;
    }
    
    .auction-details h3 {
        font-size: 18px;
    }
    
    .current-bid .price {
        font-size: 22px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .quick-view-content {
        flex-direction: column;
    }
    
    .quick-view-image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .qv-price-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .qv-bid-count {
        text-align: center;
    }
    
    .popular-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .qv-bid-button {
        display: block;
        text-align: center;
        margin: 0 0 15px 0;
    }
}

/* Pulse Animation for Live Updates */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.price.updating {
    animation: pulse 0.5s ease-in-out;
    color: #FFD700;
}