/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    margin-bottom: 10px;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: blue;
}

a:hover {
    color: #3eb370;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 0.95rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s;
}

nav ul li a:hover {
    background-color: #2d2d44;
    color: #3498db;
}

/* Active nav item */
nav ul li a.active {
    background-color: #4d4d74;
    color: #fff;
}

/* Main Content Styles */
main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Banner */
.banner {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
    animation: fadeSlide 8s infinite;
}

@keyframes fadeSlide {
    0% { opacity: 0.8; }
    33% { opacity: 1; }
    66% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Core Features */
.core-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.feature-item {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-item img {
    max-width: 55px;
    margin-bottom: 5px;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.feature-item h2 {
    color: #3498db;
    margin-top: 0;
}

/* Latest Updates */
.latest-updates {
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1px;
}

.latest-updates h2 {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 1px;
    margin-top: 0;
}

.latest-updates ul {
    list-style: none;
    padding: 0;
}

.latest-updates li {
    margin-bottom: 3px;
    padding-left: 20px;
    border-left: 3px solid #ddd;
    transition: background-color 0.2s ease-in-out;
}

.latest-updates li:hover {
    background-color: #f0f0f0;
}

/* Market Page Styles */
.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    text-align: center;
    padding: 0px 10px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ddd;
}

.market-header h1 {
    font-size: 2.0rem;
    color: #e74c3c;
    margin-bottom: 0rem;
}

.search-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 10px;
}

.search-filter input, .search-filter select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-filter input {
    width: 250px;
    flex-grow: 1;
    max-width: 300px;
}

.search-filter select {
    min-width: 100px;
    cursor: pointer;
}

.search-filter button {
    padding: 0.7rem 1.2rem;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-filter button:hover {
    background-color: #2d2d44;
}

/* Card Listings Styles */
.card-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 3px;
}

.card-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-item img {
    width: 40%;
    height: auto;
    margin: auto;
    object-fit: cover;
    border-bottom: 0px solid #eee;
    border-radius: 6px;
    margin-bottom: 0px;
}

.card-item h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 0px;
}

.card-item p {
    padding: 0 1rem 0.5rem;
    color: #555;
    margin-bottom: 0px;
    font-size: 0.95em;
}

.card-item p:last-child {
    padding-bottom: 0rem;
}

.card-item a, .card-item button {
    display: inline-block;
    margin: 10px;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.card-item a:hover, .card-item button:hover {
    background-color: #45a049;
}

/* Price styling */
.card-item p:nth-of-type(1) {
    font-weight: bold;
    color: #2c3e50;
}

/* Rating styling */
.card-item p:nth-of-type(2) {
    color: #f39c12;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
    text-align: center;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
    text-decoration: none;
    background-color: #f9f9f9;
    margin: 0 4px;
}

.pagination a:hover, .pagination a.active {
    background-color: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination a:first-child {
    margin-right: 8px;
}

.pagination a:last-child {
    margin-left: 8px;
}

.pagination a[style*="hidden"] {
    visibility: hidden !important;
}

/* No results message */
.no-results {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    margin: 3rem 0;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Loading indicator */
.loading {
    text-align: center;
    margin: 2rem 0;
}

.loading::after {
    content: "Loading...";
    display: inline-block;
    font-size: 1.2rem;
    color: #2c3e50;
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: "Loading."; }
    33% { content: "Loading.."; }
    66% { content: "Loading..."; }
}

/* Auction Styles */
/* Common auction styles */
.auction-header {
    padding: 0px 0;
    color: #e74c3c;
    font-size: 1.5rem;
    text-align: center;
}

.auction-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Navigation links instead of tabs */
.auction-navigation {
    display: flex;
    gap: 10px;
}

.auction-navigation a {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.0rem;
}

.auction-navigation a.active {
    background-color: #4CAF50;
    color: white;
}

.auction-navigation a:hover:not(.active) {
    background-color: #e0e0e0;
}

.auction-search-container {
    width: 300px;
}

.auction-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.0rem;
}

/* Auction Listings */
.auction-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.auction-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: white;
    position: relative;
    font-size: 1.0rem;
}

.auction-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auction-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f9f9f9;
}

.auction-item h3 {
    padding: 10px 15px;
    margin: 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
}

.auction-item p {
    padding: 8px 15px;
    margin: 0;
    color: #555;
}

.auction-item a, .auction-item button {
    display: inline-block;
    margin: 15px;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.auction-item a:hover, .auction-item button:hover {
    background-color: #45a049;
}

/* Specific button styles */
.place-bid-btn {
    background-color: #2196F3;
}

.place-bid-btn:hover {
    background-color: #0b7dda;
}

.notify-btn {
    background-color: #FF9800;
}

.notify-btn:hover {
    background-color: #e68a00;
}

.notify-btn.notified {
    background-color: #4CAF50;
}

.view-results-btn {
    background-color: #9C27B0;
}

.view-results-btn:hover {
    background-color: #7B1FA2;
}

/* Time display styles */
.time-info {
    color: #e53935;
    font-weight: bold;
}

/* Status styles */
.auction-item.ended .time-info {
    color: #f44336;
}

.auction-item.starting .time-info {
    color: #4CAF50;
}

/* Past auctions specific styling */
.past-item {
    opacity: 0.9;
}

.past-item .time-info {
    color: #757575;
}

/* Responsive design */
@media (max-width: 768px) {
    .auction-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .auction-search-container {
        width: 100%;
    }
    
    .auction-listings {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Add active state to navigation */
nav ul li a.active {
    background-color: #4CAF50;
    color: white;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #34495e;
}

footer p {
    margin: 0.5rem 0;
}

/* Card Hover Effects */
.card-item {
    position: relative;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.card-item:hover::before {
    opacity: 1;
}

/* First Edition Badge */
.first-edition {
    position: relative;
}

.first-edition::after {
    content: '1st Edition';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* Rare Card Badge */
.rare-card {
    position: relative;
}

.rare-card::after {
    content: 'Rare';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f39c12;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2c3e50;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 0.8;
}

.back-to-top:hover {
    opacity: 1;
}

/* Filter Pills */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    background-color: #2c3e50;
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.filter-pill .remove {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}

/* Support Page Styles */
.support-container {
    max-width: 960px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.support-header {
    text-align: center;
    margin-bottom: 30px;
}

.support-header h1 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.support-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.support-option {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    border: 1px solid #eee;
}

.support-option:hover {
    background-color: #eee;
    transform: translateY(-2px);
}

.support-option.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.support-option h3 {
    color: inherit;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1em;
}

.support-option p {
    color: #777;
    font-size: 0.9em;
}

.support-content-area {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.support-content-area h2 {
    color: #333;
    margin-bottom: 20px;
}

#live-chat-section {
    display: none;
}

#live-chat-section iframe {
    width: 100%;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact-form-section {
    display: none;
}

#contact-form-section form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact-form-section form input[type="text"],
#contact-form-section form input[type="email"],
#contact-form-section form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#contact-form-section form button[type="submit"] {
    background-color: #e74c3c;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease-in-out;
}

#contact-form-section form button[type="submit"]:hover {
    background-color: #c0392b;
}

#faq-section ul {
    list-style: none;
    padding: 0;
}

#faq-section ul li {
    margin-bottom: 15px;
    padding-left: 0;
    border-left: none;
    transition: background-color 0.2s ease-in-out;
    border-bottom: 1px solid #eee;
}

#faq-section ul li:last-child {
    border-bottom: none;
}

#faq-section ul li:hover {
    background-color: #f0f0f0;
}

.faq-question-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 0;
}

.faq-toggle-icon {
    font-size: 1.2em;
    color: #777;
    transition: transform 0.2s ease-in-out;
}

.faq-toggle-icon.active {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 10px 0 15px 0;
    margin-top: 0;
    border-top: 1px solid #eee;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Placeholder Image Styles */
.card-item img[src^="placeholder"] {
    background: linear-gradient(135deg, #e0f7fa, #80deea, #4dd0e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.card-item img[src^="placeholder"]::after {
    content: 'Card Image';
    font-size: 1rem;
    color: #555;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
        display: block;
    }
    
    .market-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-filter {
        width: 100%;
        margin-top: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-filter input, 
    .search-filter select {
        width: 100%;
        margin-bottom: 10px;
        margin-left: 0;
    }
    
    .card-listings {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
/* Profile Customization Styles */

/* Settings Sections */
.settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.settings-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Profile Picture */
.profile-picture-container {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.profile-picture-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid #e9ecef;
}

#profile-picture-upload {
    flex: 1;
}

/* Buttons */
.save-button,
.add-button,
.change-password-button {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.save-button:hover,
.add-button:hover {
    background-color: #2980b9;
}

.change-password-button {
    margin-left: 0.5rem;
    background-color: #6c757d;
}

.change-password-button:hover {
    background-color: #5a6268;
}

/* Social Links */
.social-link-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.platform-input,
.url-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.remove-link-button {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.remove-link-button:hover {
    background-color: #c82333;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Success Message */
.success-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    text-align: center;
}

/* About Me Section in Overview */
.about-me-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Social Links in Overview */
.social-links-overview {
    margin-top: 1.5rem;
}

#overview-social-links a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    color: #3498db;
    text-decoration: none;
}

#overview-social-links a:hover {
    text-decoration: underline;
}

/* profile.css */
/* ... previous styles ... */

/* Additions for Edit Listing Form */
#edit-listing-form {
    background-color: #f0f0f0;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#edit-listing-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

#edit-listing-form input[type="text"],
#edit-listing-form input[type="number"],
#edit-listing-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

#edit-listing-form textarea {
    resize: vertical;
    height: 100px;
}

#save-edit-listing-button,
#cancel-edit-listing-button {
    margin-right: 10px;
}