/* Agent Store Demo Styles - Unified with Main Theme */

/* Base Styles - 统一主页面样式 */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #0E0E14;
    color: #FFFFFF;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 224, 102, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(26, 75, 64, 0.1) 0%, transparent 25%);
}

/* Circuit Background - 统一电路背景 */
.circuit-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    background-image: 
        linear-gradient(to right, #1A4B40 1px, transparent 1px),
        linear-gradient(to bottom, #1A4B40 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitFlow 20s infinite linear;
}

@keyframes circuitFlow {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Main Store Container */
.agent-store-container {
    min-height: calc(100vh - 120px);
    margin-top: 40px;
    position: relative;
    overflow-y: auto;
    background-color: #0E0E14;
    color: #FFFFFF;
}

/* Filter Section */
.filter-section {
    height: auto;
    min-height: 150px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    background: rgba(14, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 224, 102, 0.1);
}

/* Left Filter Panel - 200px width */
.filter-panel {
    width: 200px;
    height: 180px;
    background-color: rgba(14, 14, 20, 0.6);
    border: 1px solid rgba(255, 224, 102, 0.2);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.filter-panel h4 {
    color: #FFE066;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 15px;
}

.filter-group h5 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Custom Checkboxes - Yellow circle with white check */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.filter-checkbox:hover {
    color: #FFE066;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #FFE066;
    background-color: transparent;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #FFE066;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0E0E14;
    font-size: 10px;
    font-weight: bold;
}

/* Center Search Bar - 300px width */
.search-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-bar {
    width: 300px;
    height: 40px;
    background-color: rgba(14, 14, 20, 0.6);
    border: 1px solid rgba(255, 224, 102, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    backdrop-filter: blur(8px);
}

.search-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    flex: 1;
    height: 100%;
    background-color: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Right Sort Dropdown - 120px width */
.sort-container {
    display: flex;
    align-items: center;
}

.sort-dropdown {
    width: 120px;
    height: 40px;
    background-color: rgba(14, 14, 20, 0.6);
    border: 1px solid rgba(255, 224, 102, 0.2);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    padding: 0 10px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23FFE066' d='M4 5L0 0h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 25px;
    backdrop-filter: blur(8px);
}

.sort-dropdown option {
    background-color: #0E0E14;
    color: #FFFFFF;
}

/* NFT List Section - 600px height */
.nft-list-section {
    height: 600px;
    overflow-y: auto;
    margin-bottom: 30px;
}

/* Custom scrollbar for NFT list */
.nft-list-section::-webkit-scrollbar {
    width: 8px;
}

.nft-list-section::-webkit-scrollbar-track {
    background-color: rgba(14, 14, 20, 0.8);
    border-radius: 4px;
}

.nft-list-section::-webkit-scrollbar-thumb {
    background-color: rgba(255, 224, 102, 0.4);
    border-radius: 4px;
}

.nft-list-section::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 224, 102, 0.7);
}

/* NFT Grid - 3 columns */
.nft-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding: 20px 0;
    overflow: hidden;
    transition: transform 0.1s linear;
    will-change: transform;
    position: relative;
    width: fit-content;
}

/* NFT Card - 280px width × 320px height */
.nft-card {
    width: 280px;
    height: 320px;
    background-color: rgba(14, 14, 20, 0.6);
    border: 1px solid rgba(255, 224, 102, 0.15);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(8px);
}

/* NFT Card Hover Effect */
.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 224, 102, 0.3);
    border-color: rgba(255, 224, 102, 0.5);
    background-color: rgba(14, 14, 20, 0.8);
}

/* NFT Card Header */
.nft-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.nft-rating {
    color: #FFD43B;
    font-size: 14px;
}

/* Shiba Icon with Tail Wiggle Animation */
.nft-shiba-icon {
    transition: transform 0.5s ease-in-out;
}

.nft-card:hover .nft-shiba-icon {
    animation: tailWiggle 0.5s infinite alternate;
}

@keyframes tailWiggle {
    0% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(10deg);
    }
/* NFT Image */
.nft-image {
    flex: 1;
    background-color: rgba(14, 14, 20, 0.4);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 224, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* NFT Info */
.nft-info {
    margin-bottom: 15px;
}

.nft-title {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.nft-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.nft-price {
    color: #FFE066;
    font-size: 16px;
    font-weight: 700;
}

/* NFT Actions - Buy/Rent Buttons */
.nft-actions {
    display: flex;
    gap: 10px;
}

.nft-buy-btn, .nft-rent-btn {
    width: 80px;
    height: 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nft-buy-btn {
    background-color: #FFE066;
    color: #0E0E14;
}

.nft-buy-btn:hover {
    background-color: #FFD43B;
    transform: translateY(-1px);
}

.nft-rent-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nft-rent-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Publish Entry Section - Floating on right */
.publish-section {
    position: absolute;
    top: 200px;
    right: 10%;
    width: 200px;
    height: 300px;
}

.publish-panel {
    width: 100%;
    height: 100%;
    background-color: rgba(14, 14, 20, 0.8);
    border: 1px solid rgba(255, 224, 102, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.publish-header h4 {
    color: #FFE066;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* Publish Steps - 14px size, 20px gap */
.publish-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.publish-step {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.publish-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #FFE066;
    border-radius: 50%;
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(255, 224, 102, 0.5);
}

/* Publish Button - 180px width × 40px height */
.publish-action {
    position: relative;
}

.publish-btn {
    width: 100%;
    height: 40px;
    background-color: #FFE066;
    color: #0E0E14;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.publish-btn:hover {
    background-color: #FFD43B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 224, 102, 0.3);
}

/* Loading Dots Animation */
.loading-dots {
    display: none;
    align-items: center;
    gap: 4px;
}

.loading-dots.show {
    display: flex;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #0E0E14;
    border-radius: 50%;
    animation: loading 1s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Publish Shiba Icon */
.publish-shiba {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    transition: all 0.3s ease;
}

/* Shiba Jump Animation */
.publish-shiba.jump {
    animation: shibaJump 0.3s ease-in-out forwards;
}

@keyframes shibaJump {
    0% {
        top: -40px;
        transform: translateX(-50%);
    }
    100% {
        top: 0;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    /* On medium screens, keep the flow effect but adjust speed in JS */
    .nft-grid {
        /* Flow effect is controlled by JavaScript */
    }
        /* Flow effect is controlled by JavaScript */
    }
    
    .publish-section {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        height: auto;
        margin-top: 30px;
    }
    
    .publish-panel {
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    
    .publish-steps {
        flex-direction: row;
        flex: none;
        gap: 40px;
    }
    
    .publish-shiba {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }
    /* 此处多余的闭合大括号，移除后代码更符合规范 */
/* 此处多余的闭合大括号已移除，修复代码格式问题 */

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }
    
    .filter-panel {
        width: 100%;
        height: auto;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .sort-dropdown {
        width: 100%;
    }
    
    .nft-grid {
        /* On mobile, disable the flow animation and use regular scrolling */
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 20px;
        width: 100%;
    }
    
    .nft-card {
        width: 100%;
        height: auto;
        min-width: 280px;
    }
    
    .publish-panel {
        flex-direction: column;
        text-align: center;
    }
    
    .publish-steps {
        flex-direction: column;
        gap: 15px;
    }
}
