/* === GENEL === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    background-color: #f4f5fb;
    color: #222;
}

/* SAYFA YAPISI */
.layout {
    display: flex;
    min-height: 100vh;
}

/* === SABİT HEADER (ORTADA LOGO) === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: #ffffff;
    border-bottom: 1px solid #e3e5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.header img {
    height: 135px;     /* 150 → 135 yap */
    margin-top: 7px;   /* Logoyu biraz aşağı çeker */
}

/* === SOL MENÜ (SIDEBAR) === */
.sidebar {
    width: 230px;
    background: #ffffff;
    border-right: 1px solid #e3e5ee;
    padding: 24px 20px;
    padding-top: 90px; /* HEADER ALTINDAN BAŞLASIN */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

/* SAYFA İÇERİĞİ HEADER VE SOL MENÜDEN SONRA BAŞLASIN */
.main {
    margin-left: 230px;
    padding-top: 90px; /* HEADER YÜKSEKLİĞİ */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* LOGO */
.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.logo-area img {
    max-width: 150px;
    height: auto;
}

/* MENÜ BAŞLIKLARI */
.menu-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9699aa;
    margin-bottom: 10px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: #3a3f4d;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: #f3f6ff;
    color: #ff4d6a;
}

.nav-links a.active {
    background: #ff4d6a;
    color: #ffffff;
}

/* ALT KISIM */
.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-footer a {
    text-decoration: none;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dde0ef;
    color: #3a3f4d;
    transition: 0.2s;
}

.sidebar-footer a:hover {
    border-color: #ff4d6a;
    color: #ff4d6a;
}

.sidebar-footer .btn-primary {
    background: #ff4d6a;
    color: #fff;
    border: none;
}

.sidebar-footer .btn-primary:hover {
    background: #e8425d;
}

/* === ÜST REKLAM ALANI === */
.top-ad {
    background: #ffffff;
    border-bottom: 1px solid #e3e5ee;
    padding: 8px 20px;
    font-size: 13px;
    color: #80839a;
}

.top-ad span {
    font-weight: 500;
    color: #ff4d6a;
}

/* ANA İÇERİK */
.main-content {
    padding: 24px 32px 40px 32px;
}

/* BAŞLIKLAR */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 26px;
    margin: 0 0 6px 0;
}

.page-subtitle {
    margin: 0;
    font-size: 14px;
    color: #80839a;
}

/* === UPLOAD KART === */
.hero-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 24px 28px 24px;
    border: 1px alt #e3e5ee;
    margin-bottom: 24px;
}

.upload-box {
    border: 2px dashed #d3d7eb;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    background: #fafbff;
}

.upload-title {
    font-size: 18px;
    margin-bottom: 6px;
}

.upload-sub {
    font-size: 13px;
    color: #80839a;
    margin-bottom: 20px;
}

.upload-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: #ff4d6a;
    color: #ffffff;
    font-size: 14px;
    border: none;
    cursor: pointer;
    margin-bottom: 8px;
}

.upload-btn:hover {
    background: #e8425d;
}

.upload-note {
    font-size: 12px;
    color: #a0a3b5;
}

/* FORMAT SEÇİMİ */
.convert-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* 🔥 YENİ PROFESYONEL FORMAT INPUTU */
.select-format {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d2d6ea;
    font-size: 15px;
    min-width: 150px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select-format:hover {
    border-color: #b3b7cf;
}

.select-format:focus {
    outline: none;
    border-color: #888fbc;
    box-shadow: 0 0 0 1px rgba(136, 143, 188, 0.3);
}

/* BUTON */
.convert-main-btn {
    padding: 10px 22px;
    border-radius: 999px;
    background: #24b37a;
    color: #ffffff;
    border: none;
    font-size: 14px;
    cursor: pointer;

    /* 🔥 Ortaya alalım */
    flex-basis: 100%;
    max-width: 220px;
    margin: 10px auto 0 auto;
    display: block;
    text-align: center;
}

.convert-main-btn:hover {
    background: #1d9a68;
}

/* ALT METİN */
.info-row {
    margin-top: 20px;
    font-size: 12px;
    color: #9699aa;
}

/* KARTLAR */
.cards-row {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.info-card {
    flex: 1;
    min-width: 200px;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e3e5ee;
}

.info-card h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.info-card p {
    margin: 0;
    font-size: 13px;
    color: #74788b;
}

/* === FORMLAR === */
.form-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e3e5ee;
    padding: 24px;
    max-width: 420px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #4a4e60;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #d2d6ea;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-helper {
    font-size: 11px;
    color: #999cb1;
}

.btn-block {
    width: 100%;
    padding: 10px 0;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
}

.btn-primary {
    background: #ff4d6a;
    color: #ffffff;
}

.btn-primary:hover {
    background: #e8425d;
}

.btn-ghost {
    background: #f5f6ff;
    color: #3a3f4d;
}

.btn-ghost:hover {
    background: #e7e9ff;
}

/* PRICING KARTLARI */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.pricing-card {
    flex: 1;
    min-width: 220px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e3e5ee;
    padding: 20px;
}

.pricing-card.highlight {
    border-color: #ff4d6a;
    box-shadow: 0 0 0 1px rgba(255, 77, 106, 0.08);
}

.pricing-name {
    font-size: 15px;
    font-weight: 600;
}

.pricing-price {
    font-size: 22px;
    margin: 10px 0 6px 0;
}

.pricing-desc {
    font-size: 12px;
    color: #81849a;
    margin-bottom: 10px;
}

.pricing-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #55596c;
}

.pricing-list li {
    margin-bottom: 4px;
}

/* DASHBOARD BİLGİ KARTI */
.notice-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e3e5ee;
    padding: 20px;
    font-size: 14px;
}

/* ALT FOOTER (İÇERİK ALTINDA KÜÇÜK METİN) */
.main-footer {
    margin-top: 30px;
    font-size: 11px;
    color: #999cb1;
}

/* === MOBILE / DESKTOP MENU BUTTON === */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 8px;
    left: 8px;
    width: 46px;
    height: 46px;

    background: #ff5f7d;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1500;
}

.menu-toggle svg {
    width: 26px;
    height: 26px;
}

/* X ilk başta gizli olsun */
.icon-close {
    display: none;
    transform: translateX(4px);
}

/* Menü açılınca değişim */
.menu-toggle.open .icon-hamburger {
    display: none;
}

.menu-toggle.open .icon-close {
    display: block;
}

/* Çizgiler — ikon tam ortalı ve her cihazda aynı büyüklükte */
.menu-toggle i {
    font-size: 26px;
    color: #fff;
    line-height: 1;
}

/* Desktop + Mobile: Sidebar başlangıçta kapalı */
.sidebar {
    transform: translateX(-260px);
    transition: 0.3s ease;
}

/* Menü açıldığında */
.sidebar.open {
    transform: translateX(0);
}

.menu-toggle {
    display: block;
}

.main {
    margin-left: 0 !important;
    padding-top: 90px !important;
}

li {
    margin-bottom: 8px;
}

.center-page {
    max-width: 500px;
    margin: 0 auto;
}

/* === CLEAN APPLE STYLE FORMAT PANEL === */
.format-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.30);
    backdrop-filter: blur(6px);
    z-index: 9999;
    padding: 16px;
}

/* Panel kutusu */
.format-panel-inner {
    width: 95%;
    max-width: 900px;
    max-height: 80vh;
    background: #f7f7fb;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* Sol kategori menüsü */
.format-left {
    width: 220px;
    background: #f1f2f6;
    padding: 16px;
    border-right: 1px solid #e1e2ec;
}

.format-left ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.format-left li {
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #e1e2ec;
    border-radius: 12px;
    color: #333;
    cursor: pointer;
    transition: 0.15s;
}

.format-left li:hover,
.format-left li.active {
    background: #e9f0ff;
    border-color: #c4d4ff;
}

/* Sağ format listesi */
.format-right {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Arama */
#formatSearch {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #d7d8e5;
    background: #fff;
    margin-bottom: 12px;
    font-size: 14px;
    color: #444;
}

/* Format grid */
.format-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

/* Format kutuları */
.format-item {
    padding: 12px 10px;
    background: #ffffff;
    border: 1px solid #dee0ec;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    color: #333;
    cursor: pointer;
    transition: 0.15s;
}

.format-item:hover {
    background: #f2f3fa;
    border-color: #cfd2ea;
}

.convert-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #d2d6ea;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 50; /* En önemli kısım */
}
