/* account-style.css */

:root{
  --bg:#ffffff;
  --text:#111111;
  --text-light:#666666;
  --border:#e5e7eb;
  --blue:#79bcff;
  --green:#8de2b3;
  --red:#ff9d9d;
  --shadow:0 10px 35px rgba(0,0,0,.06);
  --radius:24px;
  --transition:.3s ease;
}

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

body{
  font-family:"Inter",sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{
  text-decoration:none;
  color:inherit;
}

.container{
  width:min(1200px, calc(100% - 40px));
  margin:auto;
}

/* HEADER */

.header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}

.nav-container{
  height:82px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{
  font-size:1.7rem;
  font-weight:800;
}

.logo span{
  color:var(--blue);
}

.nav{
  display:flex;
  gap:28px;
}

.nav a{
  color:var(--text-light);
  font-weight:600;
}

.nav a.active{
  color:var(--text);
}

.hamburger{
  display:none;
  background:none;
  border:none;
}

.hamburger span{
  display:block;
  width:24px;
  height:2px;
  background:black;
  margin:5px 0;
}

/* PAGE */

.page{
  padding:60px 0;
}

.page-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:40px;
  gap:20px;
}

.tag{
  width:fit-content;
  background:#f5f5f5;
  border:1px solid var(--border);
  padding:10px 16px;
  border-radius:999px;
  margin-bottom:20px;
  font-weight:600;
}

.page-header h1{
  font-size:3rem;
  margin-bottom:12px;
}

.page-header p{
  color:var(--text-light);
}

/* GRID */

.grid{
  display:grid;
  grid-template-columns:380px 1fr;
  gap:28px;
}

/* CARDS */

.settings-card,
.posts-card,
.auth-card{
  border:1px solid var(--border);
  border-radius:32px;
  padding:32px;
  background:white;
  box-shadow:var(--shadow);
}

.settings-card h2,
.posts-card h2{
  margin-bottom:24px;
}

/* INPUTS */

.input-group{
  display:flex;
  flex-direction:column;
  margin-bottom:20px;
}

.input-group label{
  margin-bottom:10px;
  font-weight:600;
}

.input-group select{
  padding:16px;
  border:1px solid var(--border);
  border-radius:16px;
  font-size:1rem;
}

.input-group select:focus{
  outline:none;
  border-color:var(--blue);
}

/* BUTTONS */

.save-btn,
.logout-btn,
.login-btn,
.signup-btn{
  border:none;
  cursor:pointer;
  transition:var(--transition);
  font-weight:700;
}

.save-btn{
  width:100%;
  padding:16px;
  border-radius:16px;
  background:var(--green);
}

.logout-btn{
  background:var(--red);
  padding:14px 18px;
  border-radius:14px;
}

.login-btn,
.signup-btn{
  padding:14px 18px;
  border-radius:14px;
}

.login-btn{
  background:var(--blue);
}

.signup-btn{
  background:var(--green);
}

.save-btn:hover,
.logout-btn:hover,
.login-btn:hover,
.signup-btn:hover{
  transform:translateY(-2px);
}

/* POSTS */

.posts-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
}

.posts-container{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.post-item{
  display:flex;
  align-items:center;
  gap:18px;
  border:1px solid var(--border);
  border-radius:20px;
  padding:16px;
}

.post-item img{
  width:90px;
  height:90px;
  object-fit:cover;
  border-radius:16px;
}

.post-content{
  flex:1;
}

.post-content h3{
  margin-bottom:8px;
}

.post-content p{
  color:var(--green);
  font-weight:700;
}

.delete-btn{
  border:none;
  background:var(--red);
  padding:12px 16px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
}

/* AUTH */

.auth-required{
  display:flex;
  justify-content:center;
}

.auth-card{
  max-width:500px;
  width:100%;
  text-align:center;
}

.auth-card h1{
  margin-bottom:16px;
}

.auth-card p{
  color:var(--text-light);
  margin-bottom:24px;
}

.auth-buttons{
  display:flex;
  justify-content:center;
  gap:16px;
}

/* STATUS */

.status-message{
  margin-top:18px;
}

.status-message.success{
  color:#16a34a;
}

.status-message.error{
  color:#dc2626;
}

/* UTILITY */

.loading{
  text-align:center;
  padding:40px;
  color:var(--text-light);
}

.hidden{
  display:none;
}

/* MOBILE */

@media(max-width:980px){

  .grid{
    grid-template-columns:1fr;
  }

  .nav{
    display:none;
    position:absolute;
    top:82px;
    left:0;
    width:100%;
    background:white;
    flex-direction:column;
    padding:20px;
    border-bottom:1px solid var(--border);
  }

  .nav.active{
    display:flex;
  }

  .hamburger{
    display:block;
  }

  .page-header{
    flex-direction:column;
  }
}

@media(max-width:600px){

  .page-header h1{
    font-size:2.2rem;
  }

  .settings-card,
  .posts-card,
  .auth-card{
    padding:24px;
    border-radius:24px;
  }

  .post-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .post-item img{
    width:100%;
    height:220px;
  }

  .delete-btn{
    width:100%;
  }
}