/* Breezycv theme overrides */

/* Profil fotoğrafı: kare alan + tam yuvarlak (geniş görseller oval görünmesin) */
.header-photo {
    width: 128px;
    height: 128px;
    max-width: 128px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.header-photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.header-photo:after {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Sidebar genişliği: büyük ekranda 420px yerine standart 380px */
@media only screen and (min-width: 1300px) {
    .header {
        max-width: 380px;
    }

    .content-area {
        max-width: calc(100% - 380px);
    }

    .header .copyrights {
        width: 380px;
    }
}

/* Proje resim alanı - figure yüksekliği (anchor position:absolute olduğu için figure collapse oluyordu) */
.portfolio-content .portfolio-grid figure {
    min-height: 220px;
}

.portfolio-content .portfolio-grid .portfolio-item-img {
    position: relative;
    height: 180px;
    min-height: 180px;
}

.portfolio-content .portfolio-grid .portfolio-item-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Footer: sayfa linkleri üstte yan yana (tek satır), telif metni altta */
.header .copyrights.breezycv-site-footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    box-sizing: border-box;
}

.breezycv-footer-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 8px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breezycv-footer-links li {
    flex: 0 0 auto;
}

.breezycv-footer-link {
    white-space: nowrap !important;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.breezycv-footer-link:hover {
    color: #04b4e0 !important;
}

.breezycv-footer-nav {
    width: 100%;
    margin-bottom: 10px;
}

.breezycv-footer-copyright {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #bbb;
}

/* Footer dil seçimi — açılır liste (legacy; dil seçici üst barda) */
.breezycv-footer-lang {
    display: none;
}

/* Üst bar: footer linkleri + dil seçici (tek satır, sağ hizalı) */
.breezycv-top-bar {
    width: 100%;
    margin: 0 0 16px;
    padding: 5px 0 3px;
    box-sizing: border-box;
}

.breezycv-top-bar-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.breezycv-top-bar-fill {
    flex: 1 1 auto;
    min-width: 0;
}

.breezycv-top-bar-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px 12px;
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 0;
}

.breezycv-top-bar .breezycv-top-pages {
    margin: 0;
    padding: 0;
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
}

.breezycv-top-bar-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.breezycv-top-bar-links::-webkit-scrollbar {
    display: none;
}

.breezycv-top-bar-links > li {
    flex: 0 0 auto;
}

.breezycv-top-bar-link {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    line-height: 1.35;
    color: #bbb !important;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.breezycv-top-bar-link:hover {
    color: #04b4e0 !important;
    background: rgba(4, 180, 224, 0.1) !important;
    border-color: rgba(4, 180, 224, 0.28) !important;
    box-shadow: 0 0 0 1px rgba(4, 180, 224, 0.08);
}

.breezycv-top-bar-link.is-active {
    color: #fff !important;
    font-weight: 600;
    border-color: rgba(4, 180, 224, 0.45) !important;
    background: rgba(4, 180, 224, 0.16) !important;
}

.breezycv-top-bar .breezycv-lang-details {
    flex: 0 0 auto;
}

.breezycv-top-bar .breezycv-lang-details__panel {
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
    transform: none;
}

.breezycv-lang-details {
    position: relative;
    display: inline-block;
}

.breezycv-lang-details__summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 52px;
    padding: 6px 14px;
    list-style: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #f5f5f5 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-sizing: border-box;
    user-select: none;
}

.breezycv-lang-details__summary::-webkit-details-marker,
.breezycv-lang-details__summary::marker {
    display: none;
}

.breezycv-lang-details__summary:hover {
    border-color: rgba(4, 180, 224, 0.55) !important;
    background: rgba(4, 180, 224, 0.12) !important;
}

.breezycv-lang-details__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #bbb;
}

.breezycv-lang-details[open] .breezycv-lang-details__summary {
    border-color: rgba(4, 180, 224, 0.65) !important;
}

.breezycv-lang-details[open] .breezycv-lang-details__caret {
    border-top: none;
    border-bottom: 5px solid #04b4e0;
}

.breezycv-lang-details__panel {
    position: absolute;
    bottom: calc(100% + 8px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 11rem;
    padding: 6px;
    z-index: 120;
    background: rgba(34, 34, 34, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.breezycv-lang-details__opt {
    display: block;
    text-align: left;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #bbb !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.breezycv-lang-details__opt:hover {
    background: rgba(4, 180, 224, 0.16) !important;
    color: #fff !important;
}

.breezycv-lang-details__opt.is-active {
    background: rgba(4, 180, 224, 0.28) !important;
    color: #fff !important;
}

/* Üst içerik şeridi (navbar sayfaları): yan yana */
.breezycv-top-pages {
    width: 100%;
    margin: 0 0 16px;
    padding: 5px 0 3px;
    box-sizing: border-box;
}

.breezycv-top-bar .breezycv-top-pages {
    width: auto;
    margin: 0;
    padding: 0;
}

.breezycv-content-footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breezycv-content-footer-links > li {
    display: block;
    flex: 0 0 auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breezycv-content-footer-links .btn-close,
.breezycv-content-footer-links .breezycv-top-page-link {
    display: inline-block;
    white-space: nowrap !important;
    margin-top: 0;
    margin-bottom: 0;
}

.breezycv-top-page-link.is-active {
    font-weight: 600;
}

/* Mobil menü soldan açılır (varsayılan tema sağdan kaydırıyordu) */
@media only screen and (max-width: 1024px) {
    .header {
        right: auto;
        left: 0;
        background-color: var(--theme-sidebar-background-color, #444);
    }

    .mobile-menu-hide {
        right: auto;
        left: 0;
        margin-right: 0;
        margin-left: -100%;
    }

    .menu-toggle {
        right: auto;
        left: 10px;
    }

    .header-photo {
        width: 112px;
        height: 112px;
        max-width: 112px;
    }
}
