@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #ffffff;
    --bg-darker: #2a2a2a;
    --card-bg: #2a2a2a;
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --accent-color: #ff9800;
    --text-light: #f5f5f5;
    --text-muted: #bbb;
    --border-radius: 12px;
    --card-shadow: rgba(0,0,0,0.5) 0px 4px 10px;
    --transition: 0.3s ease;
    --global-font: 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif;
}
 

html,body {
    font-family: var(--global-font);
    background: var(--bg-dark);
    margin: 0;
    padding: 0;
    color: var(--text-light);
    -webkit-font-smoothing: antialiased; /* make font crisp on WebKit browsers */
    -moz-osx-font-smoothing: grayscale;  /* make font crisp on Firefox/macOS */
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

* {
    font-family: var(--global-font);
    box-sizing: border-box;
}






/* 🔝 Top bar */
/* Airbnb-style Nav */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #ff3f38; /* Airbnb pink */
  text-decoration: none;
  margin-right: 30px;
}

.nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fd2a23;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-right a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-right a:hover {
  color: #fd2a23;
}

.user-menu {
  background: #fd2a23;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
}

.user-menu:hover {
  background: #ff3f38;
}








/* 🃏 Centered form card (login, register, add product) */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.form-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.form-card h1 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Inputs & textarea */
.form-card input,
.form-card select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #444;
    background: var(--bg-dark);
    color: black;
    font-size: 1rem;
    transition: var(--transition);
}
.form-card input:focus,
.form-card select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 6px var(--accent-color);
}

/* Buttons */
.form-card button,
.form-card input[type="submit"] {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px;
    width: 100%;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.form-card button:hover,
.form-card input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* Links inside forms */
.form-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}
.form-card a:hover {
    color: var(--primary-color);
}












/* Centered form card for Add/Edit Product */
.form-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* push down instead of centering vertically */
    padding-top: 120px; /* space below the top bar */
    padding-bottom: 150px; /* increased bottom space for Edit Product */
}

/* Form card styling */
.form-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.form-card h1 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.form-card form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Inputs for all form fields */
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card input[type="number"],
.form-card input[type="datetime-local"],
.form-card input[type="file"],
.form-card input[type="description"] {
    width: 100%;          /* full width inside card */
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #444;
    border-radius: 4px;
    background: var(--bg-dark);
    color: black;
    font-size: 1rem;
    box-sizing: border-box;
    text-align: left;     /* better for typing text */
}



/* Submit button */
.form-card input[type="submit"] {
    width: 100%;
    margin-top: 12px;
    background: rgb(124, 124, 124);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.form-card input[type="submit"]:hover {
    background: rgb(190, 190, 190);
}


/* Email & password fields for login form */
.form-card input[type="email"],
.form-card input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #444;
    border-radius: 4px;
    background: var(--bg-dark);
    color: black;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="submit"] {
    width: 100%;
}


































/* 🃏 Grid container for product cards */
/* Product card */
/* Product card */
.product {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* ✅ vertical centering */
    align-items: center;      /* ✅ horizontal centering */
    text-align: center;       /* ✅ text centered */
    transition: var(--transition);
    overflow: hidden;         /* keeps content inside */
    width: 100%;
    box-sizing: border-box;
}

/* Hover effect */
.product:hover {
    transform: translateY(-3px);
}

/* Product info container */
.product-info {
    width: 100%; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering within info */
    align-items: center;     /* horizontal centering */
}

/* Product headings and paragraphs */
.product h2,
.product-info h2 {
    margin: 5px 0;
    font-size: 1rem;
    color: var(--accent-color);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.product p,
.product-info p {
    margin: 3px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* Product image */
.product img,
.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
}

/* Grid container */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}










.product-info p span {
    color: var(--text-light);
}

/* 💰 Bid input & button */
.bid-amount {
    padding: 8px;
    border: 1px solid #444;
    background: var(--bg-dark);
    color: black;
    border-radius: 4px;
    margin: 8px 0;
    width: 85%; /* slightly narrower for smaller card */
    font-size: 0.9rem; /* smaller font */
    transition: var(--transition);
}
.bid-amount:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 6px var(--accent-color);
}

/* Place bid button */
.place-bid {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px;
    width: 85%; /* match input width */
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem; /* smaller font */
    transition: var(--transition);
}
.place-bid:hover {
    background: var(--primary-dark);
}

/* Edit product button */
.edit-product-button {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 8px; /* smaller button */
    background-color: rgb(124, 124, 124);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8em; /* smaller font */
}
.edit-product-button:hover {
    background-color: rgb(190, 190, 190);
}
















/* 🎴 Bid card */
.bid-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 15px; /* smaller padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

/* Hover effect */
.bid-card:hover {
    transform: translateY(-3px);
}

/* Bid image */
.bid-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Bid info text */
.bid-card h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent-color);
}
.bid-card p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}






















.bids-list {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}
.bids-list p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    color: #222;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.modal-content h2 {
    margin-bottom: 15px;
}
.close-btn {
    margin-top: 15px;
    background: #444;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.close-btn:hover {
    background: #222;
}











.delete-btn {
    background: red;
    color: white;
    cursor: pointer;

}
.delete-btn:hover {
    background: darkred;
}



























/* Airbnb-style search bar */
.search-bar {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

.search-bar form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 5px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-bar input, 
.search-bar select {
    border: none;
    outline: none;
    padding: 10px;
    margin-right: 10px;
    font-size: 16px;
    border-radius: 50px;
}

.search-bar button {
    background: #ff3f38;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
}

.search-bar button:hover {
    background: #fd2a23;
}







































main,
.products-grid,
.form-container {
  flex: 1;
  margin-bottom: 40px; /* spacing before footer */
}

/* Footer styling */
.site-footer {
  padding: 20px;
  background: #f7f7f7;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #ddd;
  text-align: center;
  margin-top: 15%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive footer for small screens */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-links {
    justify-content: center;
  }
}
























  details {
    background: #fff;
    color: #000000;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  details[open] {
    background: #ffffff;
    color: #000000;
  }
  summary {
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    outline: none;
    list-style: none;
    color: #000000;
  }
  summary::-webkit-details-marker {
    display: none;
    color: #000000;
  }
  details p {
    margin: 10px 0 0 0;
    line-height: 1.6;
    color: #000000;
  }
























  


  .description-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Adjust vertical spacing */
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.description-wrapper h1 {
    text-align: center;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.description-wrapper p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

@media (max-width: 600px) {
    .description-wrapper h1 {
        font-size: 1.5rem;
    }

    .description-wrapper p {
        font-size: 0.95rem;
    }
}



























.resp-sharing-button__link,
.resp-sharing-button__icon {
  display: inline-block
}

.resp-sharing-button__link {
  text-decoration: none;
  color: #fff;
  margin: 0.5em
}

.resp-sharing-button {
  border-radius: 5px;
  transition: 25ms ease-out;
  padding: 0.5em 0.75em;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif
}

.resp-sharing-button__icon svg {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: top
}

.resp-sharing-button--small svg {
  margin: 0;
  vertical-align: middle
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
  stroke: #fff;
  fill: none
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
  fill: #fff;
  stroke: none
}

.resp-sharing-button--twitter {
  background-color: #55acee
}

.resp-sharing-button--twitter:hover {
  background-color: #2795e9
}

.resp-sharing-button--pinterest {
  background-color: #bd081c
}

.resp-sharing-button--pinterest:hover {
  background-color: #8c0615
}

.resp-sharing-button--facebook {
  background-color: #3b5998
}

.resp-sharing-button--facebook:hover {
  background-color: #2d4373
}

.resp-sharing-button--tumblr {
  background-color: #35465C
}

.resp-sharing-button--tumblr:hover {
  background-color: #222d3c
}

.resp-sharing-button--reddit {
  background-color: #5f99cf
}

.resp-sharing-button--reddit:hover {
  background-color: #3a80c1
}

.resp-sharing-button--google {
  background-color: #dd4b39
}

.resp-sharing-button--google:hover {
  background-color: #c23321
}

.resp-sharing-button--linkedin {
  background-color: #0077b5
}

.resp-sharing-button--linkedin:hover {
  background-color: #046293
}

.resp-sharing-button--email {
  background-color: #777
}

.resp-sharing-button--email:hover {
  background-color: #5e5e5e
}

.resp-sharing-button--xing {
  background-color: #1a7576
}

.resp-sharing-button--xing:hover {
  background-color: #114c4c
}

.resp-sharing-button--whatsapp {
  background-color: #25D366
}

.resp-sharing-button--whatsapp:hover {
  background-color: #1da851
}

.resp-sharing-button--hackernews {
background-color: #FF6600
}
.resp-sharing-button--hackernews:hover, .resp-sharing-button--hackernews:focus {   background-color: #FB6200 }

.resp-sharing-button--vk {
  background-color: #507299
}

.resp-sharing-button--vk:hover {
  background-color: #43648c
}

.resp-sharing-button--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
  background-color: #2d4373;
  border-color: #2d4373;
}

.resp-sharing-button--twitter {
  background-color: #55acee;
  border-color: #55acee;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
  background-color: #2795e9;
  border-color: #2795e9;
}

.resp-sharing-button--email {
  background-color: #777777;
  border-color: #777777;
}

.resp-sharing-button--email:hover,
.resp-sharing-button--email:active {
  background-color: #5e5e5e;
  border-color: #5e5e5e;
}

.resp-sharing-button--pinterest {
  background-color: #bd081c;
  border-color: #bd081c;
}

.resp-sharing-button--pinterest:hover,
.resp-sharing-button--pinterest:active {
  background-color: #8c0615;
  border-color: #8c0615;
}

.resp-sharing-button--linkedin {
  background-color: #0077b5;
  border-color: #0077b5;
}

.resp-sharing-button--linkedin:hover,
.resp-sharing-button--linkedin:active {
  background-color: #046293;
  border-color: #046293;
}
