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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f9f9fb;
  color: #222;
}

/* Header */
header {
  padding: 0 !important;
  margin: 0 !important;
  position: sticky;
  top: 0;
  height: 75px;
  background: linear-gradient(90deg, #17b2ff 10%, #f107a3 100%);
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.top-header h1 { 
  font-size: 20px; 
}

.top-header input {
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
  outline: none;
  width: 50%;
}

/* Navigation (FIXED LEFT GAP) */
.nav-scroll {
  display: flex;
  overflow-x: auto;
  background: #fff;
  gap: 10px;
  font-size: 0.8rem;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-scroll a {
  margin-left: 0 !important;
  flex: 0 0 auto;
  padding: 10px 15px;
  text-decoration: none;
  color: #6a0dad;
  border: 1.5px solid #17b2ff;
  margin: 5px 0;
  border-radius: 50px;
}

.nav-scroll a.active {
  border-color: #f107a3;
  font-weight: bold;
}

/* Categories */
.category-bar {
 max-width: 1000px;
 margin: 20px auto 0;
 display: flex;
 background: #fff;
 gap: 10px;
 padding: 8px 6px;
 overflow-x: auto
}

.category-bar div {
  flex:0 0 auto;
  padding:8px 14px;
  border-radius:999px;
  margin-left: 5px;
  border:1.5px solid #f107a3;
  background:transparent ;
  color:black ;
  cursor:pointer;
  font-weight:600;
}
  
.category-bar div.active {
  background:var(--accent-grad);
  color:#222;
  border-color: #17b2ff;
}
  


/* Gallery */
.image-list {
  max-width: 800px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 10px;
}
.image-card {
  background: white ;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}
.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.image-card img {
  width: 100%;
  display: block;
  border-radius: 14px 14px 0 0;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  border-radius: 25px;
  padding: 3px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Download + Share Buttons (hidden by default) */
.actions {
  display: none; /* <- hidden until image click */
  width: 100%;
  background: #f4f4f6;
  border-top: 1px solid #eee;
}

.actions button {
  flex: 1;
  padding: 10px 0;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}
.actions a {
  background: #0077ff;
  text-align: center ;
  text-decoration: none;
}
.actions button {
  background: #f107a3;
}
.actions a:hover, .actions button:hover {
  opacity: 0.9;
}

/* when visible we add `.visible` class (display:flex) */
.actions.visible {
  display: flex;
}
/* Pagination */
.pagination {
  text-align: center;
  padding: 20px;
}
.pagination button {
  margin: 4px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #eee;
  cursor: pointer;
}
.pagination button.active {
  background: linear-gradient(45deg, #0077ff, #f107a3);
  color: #fff;
}
