/* =========================
   TRADER ROUTE GLOBAL STYLES
   ========================= */

/* BASE RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background-color: #f6f8fa;
  color: #222;
  line-height: 1.5;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-container img {
  height: 45px;
}

.logo-text {
  font-size: 15px;
  color: #555;
  font-weight: 500;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #008b6a;
}

/* HEADER BUTTONS */
.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  justify-content: flex-end;
}

.login-btn, .join-btn {
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
  transition: .3s;
}

.login-btn {
  background: #f1f1f1;
  padding: 7px 14px;
}

.login-btn:hover {
  background: #e0e0e0;
}

.join-btn {
  background: #008b6a;
  color: #fff;
  padding: 8px 15px;
}

.join-btn:hover {
  background: #006b52;
}

/* FOOTER */
footer {
  background: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

/* SECTIONS AND CONTAINERS */
section, .container {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}

/* BUTTONS */
button {
  font-family: inherit;
}

/* RESPONSIVE HEADER */
@media(max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
  }
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================
   === USER MENU INTEGRATION ===
   ========================= */

#userIcon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}

#userMenuContainer {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

#userDropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  width: 180px;
  z-index: 999;
  overflow: hidden;
}

#userDropdown a {
  display: block;
  padding: 10px 12px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

#userDropdown a:hover {
  background: #f9f9f9;
}

/* =========================
   === COLOR FIX STANDARDIZATION ===
   ========================= */
:root {
  --green: #008b6a;
  --green-dark: #006b52;
  --bg: #f6f8fa;
}

/* =========================
   === FORMS & INPUTS (GENERAL)
   ========================= */
input, select, textarea {
  font-family: inherit;
  outline: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 4px rgba(0,139,106,0.3);
}

/* =========================
   === SUCCESS & ERROR MESSAGES
   ========================= */
.status {
  text-align: center;
  font-size: 14px;
  color: #555;
}

/* =========================
   === GLOBAL SPACING FIXES
   ========================= */
.wrapper {
  padding: 40px 50px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 50px auto;
}

@media(max-width: 768px) {
  .wrapper {
    padding: 25px;
    margin: 20px;
  }
}

/* =========================
   === HERO / BANNER FIX (Eklenti)
   ========================= */
.hero, .banner {
  width: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Masaüstü ekranlarda banner'ı büyüt */
@media(min-width: 1200px) {
  .hero, .banner {
    min-height: 550px; /* artırıldı */
  }
}

@media(max-width: 992px) {
  .hero, .banner {
    min-height: 320px;
    background-position: center top;
  }
}

@media(max-width: 768px) {
  .hero, .banner {
    min-height: 260px;
  }
}

@media(max-width: 480px) {
  .hero, .banner {
    min-height: 220px;
  }
}

/* =========================
   === END OF STYLE.CSS FINAL
   ========================= */
