﻿/* === Genel Ayarlar === */
html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Elemanları dikey yerleştir */
}

/* Tüm elemanlar için sıfırlama ve font */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Victor Mono", serif;
    font-optical-sizing: auto;
}

/* === Sayfa İçeriği Konteyneri === */
.container {
    height: 80%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* === Navbar (Üst Menü) === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: white;
    padding: 10px 20px;
    height: 10vh;
}

/* Navbar sol taraf (avatar + site adı) */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.site-name {
    font-size: 24px;
    font-weight: bold;
}

/* Menü butonu */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* === Navbar Menü (Sağdan kayan menü) === */
.navbar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: #000;
    color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

    .navbar-menu.open {
        transform: translateX(0);
    }

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    align-self: flex-end;
    cursor: pointer;
}

.menu-options {
    list-style-type: none;
    margin-top: 20px;
    width: 100%;
}

    .menu-options li {
        margin: 15px 0;
    }

    .menu-options a {
        color: white;
        text-decoration: none;
        font-size: 20px;
    }

        .menu-options a:hover {
            text-decoration: underline;
        }

/* === Footer === */
.footer {
    display: flex;
    height: 10vh;
    background-color: #333;
    color: white;
}

/* Footer bölümleri (ortak yapı) */
.footer-stock,
.footer-section {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-left: 1px solid white;
    gap: 5px;
    transition: background-color 0.3s;
    cursor: pointer;


}


.stock-info {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;

}


/* Sadece .footer-section için dikey hizalama */
.footer-section {
    flex-direction: column;
}

    /* İlk footer bölümünde sol kenar çizgisi olmasın */
    .footer-section:first-child {
        border-left: none;
    }

    /* Footer içindeki bağlantılar */
    .footer-section a {
        color: white;
    }

    /* Hover efekti */
    .footer-section:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Sayı gösterimi için stiller */
.red-strikethrough {

    color: white;
    font-size: 20px;
}

.green-sub {

    color: chartreuse;
    font-size: 18px;
    font-weight: bold;
}

/* Sayı içeriği konteyneri */
.number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* İkon boyutu */
.footer-section i {
    font-size: 24px;
}

/* === Ortak ikon ve hover renkleri === */
#section3 i,
#section4 i {
    color: orange;
}

#section3 a:hover,
#section4 a:hover {
    color: chartreuse;
}

/* === Mobil Görünüm Ayarları === */
@media (max-width: 768px) {
    #section3 .footer-text,
    #section4 .footer-text {
        display: none;
    }

    .footer {
        flex-direction: row;
    }
}
.battery-indicator-wrapper {
    width: 25px;
    height: 60px; /* Sabit ve görünür yükseklik */
    background-color: black;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    border: 1px solid white; /* görünürlük için isteğe bağlı */
}

.battery-indicator {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    gap: 2px;
    padding: 2px;
}

.battery-section {
    height: 4px; /* her pil seviyesi için sabit yükseklik */
    width: 100%;
    background-color: yellowgreen;
    transition: opacity 0.3s ease-in-out;
}

    .battery-section.empty {
        opacity: 0;
        pointer-events: none;
    }

    .battery-section.last-section {
        background-color: red;
    }


/* === Sepet Animasyonu === */
@keyframes bounceCart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(2);
    }

    100% {
        transform: scale(1);
    }
}

