/* RESET & TEMEL */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* HEADER (üst menü) */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.main-nav a {
    position: relative;
    padding: 0.25rem 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 0;
    height: 2px;
    background: #ef4444;
    transition: width 0.18s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Header'daki "PDF Düzenle (Online)" özel linki */
.main-nav .nav-link-editor {
    font-weight: 700;
    background: linear-gradient(120deg, #06b6d4, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;                  /* gradienti yazıya uygula */
    position: relative;
}

.main-nav .nav-link-editor::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(120deg, #06b6d4, #10b981);
    opacity: 0.0;
    transform: scaleX(0.4);
    transform-origin: center;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.main-nav .nav-link-editor:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


.disabled-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* HERO & ORTA YÜKLEME ALANI */

.hero-section {
    padding: 2.5rem 0 2rem;
    flex: 1;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.hero-heading {
    text-align: center;
    max-width: 720px;
}

.hero-heading h1 {
    font-size: clamp(1.9rem, 3vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}
.hero-title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
}

.hero-title-light {
    color: #111827;
    margin-right: 0.35rem;
}

.hero-title-gradient {
    background: linear-gradient(120deg, #ef4444, #f97316, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    white-space: nowrap;
}

.hero-title-separator {
    margin: 0 0.35rem;
    color: #9ca3af;
    font-weight: 600;
}

.hero-heading p {
    font-size: 0.98rem;
    color: #4b5563;
}

/* Upload büyük kart */

.upload-wrapper {
    width: 100%;
    max-width: 1120px;   /* container kadar */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15,23,42,0.08);
    padding: 1.9rem 2.1rem;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.upload-card:hover {
    box-shadow: 0 22px 45px rgba(15,23,42,0.12);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.upload-card.dragover {
    border-style: dashed;
    border-color: #ef4444;
    background: #fef2f2;
}

/* Upload ana satır */

.upload-main {
    display: flex;
    flex-direction: column;      /* ikon + metin alt alta */
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    text-align: center;
}

.upload-icon span {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    background: #f9fafb;
}

.upload-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
}

.upload-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
}

.upload-subtitle {
    font-size: 1rem;
    color: #4b5563;
}

.upload-link {
    color: #ef4444;
    font-weight: 500;
}

.upload-hint {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Seçenekler satırı */

.upload-options-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;     /* ortala */
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.option-block {
    font-size: 0.9rem;
}

.field-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

/* Pill switch */

.pill-switch {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 0.1rem;
}

.pill {
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 0.8rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-weight: 600;              /* TÜM PILLERİ KALIN YAP */
}

.pill.active {
    background: #ef4444;
    color: #ffffff;
    font-weight: 700;              /* Seçili olanı biraz daha kalın yap */
}

.pill.active {
    background: #ef4444;
    color: #ffffff;
}

/* Select & text input */

.select-wrapper select,
.text-input,
textarea.text-input {
    width: 100%;
    border-radius: 0.6rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    color: #111827;
    background: #ffffff;
    outline: none;
}

.select-wrapper select:focus,
.text-input:focus,
textarea.text-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239,68,68,0.1);
}

/* Küçük bilgi yazısı */

.small-hint {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #6b7280;
}

/* Buton */

.btn-primary {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(239,68,68,0.4);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 28px rgba(239,68,68,0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(239,68,68,0.35);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Upload alt satır */

.upload-footer-line {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    color: #6b7280;
    text-align: center;
}

/* Bilgi satırları: desteklenen dönüşümler & gizlilik */

.upload-info-inline {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid #f3f4f6;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 0.6rem;
    font-size: 0.82rem;
    color: #4b5563;
}

.upload-info-item {
    text-align: left;
}

.info-label {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.15rem;
}

.info-text {
    font-size: 0.82rem;
    color: #4b5563;
}

/* Progress kutusu */

.progress-box {
    margin-top: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #374151;
}

.spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #fee2e2;
    border-top-color: #ef4444;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sidebar reklam */

.side-ad {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

/* ÖZELLİKLER BÖLÜMÜ */

.features-section {
    padding: 2.5rem 0 1.75rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: #f9fafb;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1rem 1rem;
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: #4b5563;
}

/* ADIMLAR */

.steps-section {
    padding: 2rem 0 2.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.step-item {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1rem;
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.step-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.step-item p {
    font-size: 0.88rem;
    color: #4b5563;
}

/* DUYURULAR */

.announcements-section {
    padding: 2rem 0 3rem;
    background: #f9fafb;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.announcement-card {
    background: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    padding: 0.9rem 1rem;
}

.announcement-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.announcement-card p {
    font-size: 0.88rem;
    color: #4b5563;
}

/* RESULT (upload_handler.php & edit_handler.php) */

.result-main {
    padding: 3rem 0 3rem;
    flex: 1;
}

.result-container {
    max-width: 640px;
    margin: 0 auto;
}

.result-card {
    background: #ffffff;
    border-radius: 1.1rem;
    border: 1px solid #e5e7eb;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 16px 36px rgba(15,23,42,0.08);
    text-align: left;
}

.result-card h1 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.result-card p {
    font-size: 0.9rem;
    color: #374151;
}

.result-card.success {
    border-left: 4px solid #22c55e;
}

.result-card.error {
    border-left: 4px solid #ef4444;
}

/* FOOTER */

.site-footer {
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr);
    gap: 1.5rem;
    padding: 1.6rem 0 1.2rem;
    font-size: 0.86rem;
}

.footer-brand p {
    color: #6b7280;
    margin-top: 0.25rem;
}

.logo-mini {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer-links a {
    display: block;
    font-size: 0.83rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.footer-links a:hover:not(.disabled-link) {
    color: #111827;
}

.footer-ad {
    font-size: 0.8rem;
    color: #6b7280;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 0.55rem 0;
    font-size: 0.78rem;
    color: #6b7280;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ADMIN İÇİN KÜÇÜK STİLLER */

.admin-message {
    margin: 0.75rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
}

.admin-message.success {
    background: #ecfdf3;
    border: 1px solid #4ade80;
    color: #166534;
}

.admin-message.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    color: #111827;
    background: #f9fafb;
}

.admin-table tr:hover td {
    background: #f3f4f6;
}

.badge-active,
.badge-passive {
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.badge-active {
    background: #ecfdf3;
    color: #166534;
}

.badge-passive {
    background: #f3f4f6;
    color: #4b5563;
}

.link-small {
    font-size: 0.8rem;
    color: #2563eb;
}

.link-small:hover {
    color: #1d4ed8;
}

.link-danger {
    color: #b91c1c;
}

.link-danger:hover {
    color: #991b1b;
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .upload-options-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .upload-info-inline {
        grid-template-columns: minmax(0, 1fr);
    }

    .features-grid,
    .steps-grid,
    .announcements-grid,
    .footer-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .upload-card {
        padding: 1.25rem 1.25rem;
    }

    .upload-options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .upload-info-inline {
        font-size: 0.8rem;
    }
}
@media (max-width: 640px) {
    .hero-title {
        font-size: 1.9rem;
    }
    .hero-title-gradient,
    .hero-title-light {
        display: inline-block;
    }
}