body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

.logo,
.logo img {
    width: 210px;
    height: 42px;
}
/* Button */
.hero-btn {
  line-height: 50px;
  height: 50px;
  text-align: center;
  width: 130px;
  cursor: pointer;
}
.category-slug{
    text-decoration: none;
    color: white;
}

.btn-one {
  color: #FFF;
  transition: all 0.3s;
  position: relative;
}
.btn-one span {
  transition: all 0.3s;
}
.btn-one::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-top-style: solid;
  border-bottom-style: solid;
  border-top-color: rgba(255,255,255,0.5);
  border-bottom-color: rgba(255,255,255,0.5);
  transform: scale(0.1, 1);
}
.btn-one:hover span {
  letter-spacing: 2px;
}
.btn-one:hover::before {
  opacity: 1; 
  transform: scale(1, 1); 
}
.btn-one::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all 0.3s;
  background-color: rgb(255 255 255 / 20%);
}
.btn-one:hover::after {
  opacity: 0; 
  transform: scale(0.1, 1);
}
/* Button */
.hero-categories{
    display: flex;
    gap: 8px;
    padding-top: 20px;
}
.section-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    width: 100%;
    overflow-x: hidden;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-link {
text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.nav-link:hover {
    color: black;
}

.join-btn {
    background: #000;
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.join-btn:hover {
    background: #222;
}

.hero-section {
    width: 100%;
    height: 600px; /* Or 100vh if you prefer a full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-section .hero-swiper {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-section .swiper-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-section .section-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    position: relative;
    color: white;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-search {
    display: flex;
    justify-content: flex-start;
}

.hero-search input {
    width: 420px;
    padding: 14px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 15px;
}

.hero-search button {
    padding: 14px 24px;
    border: none;
    background: #1d2d51d6;
    color: white;
    font-size: 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.hero-search button:hover {
    background: #101c39d6;
}

.wallpapers {
    padding: 40px 0 70px;
}

.wallpaper-show {
    padding: 40px 0 80px;
}

.wallpaper-show-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.wallpaper-show-title h1 {
    font-size: 34px;
    margin: 0 0 6px;
}

.wallpaper-show-meta {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.meta-separator {
    margin: 0 8px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.download-btn:hover {
    background: #111827;
}

.wallpaper-preview {
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    display: flex;
    justify-content: center;
    padding: 24px;
}

.wallpaper-preview img {
    width: auto;
    max-width: 100%;
    max-height: 520px;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.wallpaper-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 160px;
}

.detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.related-section {
    margin-top: 48px;
}

.related-section h2 {
    font-size: 24px;
    margin: 0 0 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.related-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.related-link {
    display: block;
    aspect-ratio: 3 / 4;
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.05)
    );
    opacity: 0;
    transition: opacity 180ms ease;
}

.related-card:hover .related-overlay {
    opacity: 1;
}

.related-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.65));
}

.content-section {
    margin-top: 50px;
    max-width: 960px;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    font-weight: 500;
    margin: 0 0 14px;
}

.content-list {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #334155;
    font-size: 1px;
    line-height: 1.7;
    font-weight: 500;
}

.content-section ul li {
    margin-bottom: 8px;
    list-style: disc;
    color: #334155;

}

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

.wallpaper-header h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0px;
}

.filter select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
}

.masonry {
    column-count: 3;
    column-gap: 22px;
}

.wallpaper-card {
    position: relative;
    margin-bottom: 18px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.wallpaper-card img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
    height: 100%;
    object-fit: cover;
}

.wallpaper-card:nth-child(6n + 1) {
    aspect-ratio: 4 / 5;
}

.wallpaper-card:nth-child(6n + 2) {
    aspect-ratio: 3 / 5;
}

.wallpaper-card:nth-child(6n + 3) {
    aspect-ratio: 1 / 1;
}

.wallpaper-card:nth-child(6n + 4) {
    aspect-ratio: 2 / 3;
}

.wallpaper-card:nth-child(6n + 5) {
    aspect-ratio: 16 / 9;
}

.wallpaper-card:nth-child(6n + 6) {
    aspect-ratio: 5 / 7;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.05)
    );
    opacity: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    transition: opacity 180ms ease;
}

.wallpaper-card:hover .overlay {
    opacity: 1;
}

.title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 12px 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
    pointer-events: none;
}

.wallpaper-card:hover .title-overlay {
    opacity: 1;
    transform: translateY(0);
}

.actions,
.actions-left,
.actions-right {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111827;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition:
        transform 120ms ease,
        background 120ms ease;
}

.icon-btn:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

.empty-state {
    width: 100%;
    padding: 40px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .wallpapers {
        padding: 30px 0 60px;
    }

    .masonry {
        column-count: 2;
        column-gap: 16px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .wallpaper-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wallpaper-show-header {
        align-items: flex-start;
    }

    .wallpaper-show-title h1 {
        font-size: 28px;
    }

    .masonry {
        column-count: 1;
    }

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

.footer {
    background: #020617;
    color: white;
    margin-top: 60px;
    padding: 50px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cbd5f5;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
}

.upload-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.upload-container h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.upload-btn {
    background: #22c55e;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.upload-btn:hover {
    background: #16a34a;
}

.upload-page {
    padding: 50px 20px 80px;
}

.upload-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 30px;
    padding: 32px;
}

.upload-left h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.upload-subtitle {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 14px;
}

.upload-form .form-group {
    margin-bottom: 18px;
}

.upload-right {
    display: flex;
    align-items: stretch;
}

.preview-card {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.preview-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.preview-image {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.preview-placeholder {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

.is-hidden {
    display: none;
}

@media (max-width: 900px) {
    .upload-card {
        grid-template-columns: 1fr;
    }

    .upload-right {
        order: -1;
    }

    .preview-image {
        max-height: 320px;
    }
}

/* Prevent browser autofill styles from breaking dark inputs (navbar + hero search). */
#navbar-search input,
#hero-search-form input {
    background: transparent;
    outline: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.92);
}

#navbar-search input:-webkit-autofill,
#navbar-search input:-webkit-autofill:hover,
#navbar-search input:-webkit-autofill:focus,
#navbar-search input:-webkit-autofill:active,
#hero-search-form input:-webkit-autofill,
#hero-search-form input:-webkit-autofill:hover,
#hero-search-form input:-webkit-autofill:focus,
#hero-search-form input:-webkit-autofill:active {
    /* Force readable text color (Chrome autofill can turn it black). */
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
    caret-color: inherit;
    transition: background-color 9999s ease-in-out 0s;
    -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0) inset !important;
    box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0) inset !important;
}

#navbar-search input:focus,
#hero-search-form input:focus {
    outline: none !important;
}
