@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Playfair+Display:wght@400;500;600&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0.5rem 0 1.5rem 0;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    border: 2px solid white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: white;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 4rem;
}

section {
    margin-bottom: 2rem;
}

h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

footer {
    background-color: #f4f4f4;
    color: #666;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    border-top: 1px solid #ddd;
    margin-top: 2rem;
}

form {
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 1rem;
}

button:hover {
    background-color: #0056b3;
}

#listings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

#listings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

#filter-bar {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-controls label {
    font-weight: 600;
    margin: 0;
}

.filter-controls select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    background-color: white;
}

.filter-controls select:hover {
    border-color: #007bff;
}

.listings-count-text {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.listing {
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.listing h3 {
    margin: 0 0 0.5rem 0;
}

.listing .category {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0;
}

.listing .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #007bff;
    margin: 0.5rem 0;
}

.listing .description {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    flex-grow: 1;
}

.listing .seller {
    margin: 0.75rem 0 0.5rem 0;
}

.listing .seller a {
    color: #007bff;
    text-decoration: underline;
}

.listing .seller a:hover {
    color: #0056b3;
}

.listing-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.listing-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.listing-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.listing-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.category-badge {
    background-color: #e7f3ff;
    color: #007bff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
}

.listing-description {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.listing-seller {
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.seller-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.seller-info a:hover {
    text-decoration: underline;
}

.btn-view-details {
    display: block;
    width: 100%;
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #007bff;
    box-sizing: border-box;
    margin-top: auto;
}

.btn-view-details:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.listing .view-details {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 0.5rem;
    width: fit-content;
    cursor: pointer;
}

.listing .view-details:hover {
    background-color: #0056b3;
    text-decoration: underline;
}

.trust-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    color: white;
    font-size: 0.8rem;
}

.elite { background-color: #28a745; color: white; }
.trusted { background-color: #007bff; color: white; }
.developing { background-color: #fd7e14; color: white; }
.restricted { background-color: #dc3545; color: white; }
.new-seller { background-color: #dc3545; color: white; }

.status { font-style: italic; }
.status.verified { color: green; }
.status.disputed { color: red; }
.status.unresolved { color: orange; }
.status.unverified { color: #6c757d; }

#profile-info {
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-header h3 {
    margin: 0;
}

.profile-stats {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #007bff;
}

.profile-stats p {
    margin: 0.5rem 0;
}

#listing-history {
    margin-top: 1rem;
}

.listing-history-item {
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.listing-history-item h5 {
    margin: 0 0 0.5rem 0;
}

.listing-history-item h5 a {
    color: #007bff;
    text-decoration: none;
}

.listing-history-item h5 a:hover {
    text-decoration: underline;
}

.listing-history-item h6 {
    margin: 0.5rem 0;
}

.listing-history-item p {
    margin: 0.25rem 0;
}

#listing-info {
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#transaction-info {
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.claim {
    margin-bottom: 0.5rem;
}

.claim select {
    margin-left: 0.5rem;
}