/* ------------------------------
   GENEL AYARLAR
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #1e1f22;
    color: #f2f3f5;
    overflow-x: hidden;
}

/* ------------------------------
   NAVBAR
------------------------------ */
.navbar {
    width: 100%;
    padding: 18px 45px;
    background: rgba(49, 51, 56, 0.65);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2f3136;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logo img {
    width: 38px;
    height: 38px;
}

.logo span {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-item {
    position: relative;
    cursor: pointer;
    padding: 10px 0;
    font-weight: 500;
}

.nav-item:hover {
    color: #5865f2;
}

/* DROPDOWN */
.dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    background: #2b2d31;
    border: 1px solid #3b3d42;
    width: 180px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.nav-item:hover .dropdown {
    display: flex;
}

.dropdown a {
    color: #f2f3f5;
    padding: 12px 15px;
    text-decoration: none;
    transition: 0.2s;
}

.dropdown a:hover {
    background: #3b3d42;
    color: #5865f2;
}

.signin-btn {
    background: #5865f2;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.signin-btn:hover {
    background: #4752c4;
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
    text-align: center;
    padding: 100px 20px 70px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
}

.hero p {
    margin-top: 10px;
    font-size: 17px;
    color: #b5bac1;
}

.shop-button {
    margin-top: 30px;
    background: #5865f2;
    padding: 12px 28px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    border: none;
    transition: 0.2s;
}

.shop-button:hover {
    background: #4752c4;
}

/* ------------------------------
   CATEGORY GRID
------------------------------ */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 40px 60px 120px;
}

.cat-card {
    position: relative;
    padding: 40px 25px;
    background: rgba(49, 51, 56, 0.4);
    border: 1px solid #3b3d42;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    height: 170px;
    transition: 0.25s;
    overflow: hidden;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: #5865f2;
}

/* BAŞLIK */
.cat-card h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: left;
    transition: 0.2s;
}

/* HIDDEN DESCRIPTION */
.cat-card .hidden-text {
    opacity: 0;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-size: 15px;
    color: #b5bac1;
    transition: 0.25s;
    line-height: 22px;
}

/* HOVER EFFECT */
.cat-card:hover h2 {
    opacity: 0;
}

.cat-card:hover .hidden-text {
    opacity: 1;
}

/* KARTA GİRİNCE KAPANMAMASI */
.cat-card:hover,
.cat-card:focus-within {
    height: 200px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .categories {
        grid-template-columns: repeat(1, 1fr);
        padding: 30px 20px;
    }
}
