/* ============================================
   EcoMedya - Haber Detay Sayfası CSS
   Modern iOS Tarzı Tasarım
   ============================================ */

/* Değişkenler */
:root {
    --ios-blue: #007aff;
    --ios-green: #34c759;
    --ios-red: #ff3b30;
    --ios-orange: #ff9500;
    --ios-yellow: #ffcc00;
    --ios-gray: #8e8e93;
    --ios-gray2: #aeaeb2;
    --ios-gray3: #c7c7cc;
    --ios-gray4: #d1d1d6;
    --ios-gray5: #e5e5ea;
    --ios-gray6: #f2f2f7;
    --ios-bg: #f2f2f7;
    --ios-card: #ffffff;
    --ios-text: #1c1c1e;
    --ios-text2: #2c2c2e;
    --ios-text3: #3a3a3c;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 24px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--ios-bg);
    color: var(--ios-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.view-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .view-wrapper {
        grid-template-columns: 1fr 340px;
        padding: 24px;
        gap: 32px;
    }
}

/* Main Article Card */
.article-main {
    background: var(--ios-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@media (min-width: 768px) {
    .article-main {
        border-radius: var(--radius-lg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 20px 0;
    font-size: 13px;
    color: var(--ios-gray);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--ios-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    font-size: 10px;
    color: var(--ios-gray3);
}

.breadcrumb span {
    color: var(--ios-text);
    font-weight: 500;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.cat-badge {
    background: linear-gradient(135deg, var(--ios-blue), #0051d5);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta time {
    font-size: 13px;
    color: var(--ios-gray);
    font-weight: 500;
}

.read-time {
    font-size: 13px;
    color: var(--ios-gray2);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Title */
.article-title {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    padding: 0 20px 20px;
    color: var(--ios-text);
    letter-spacing: -0.02em;
}

/* Author Bar */
.author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--ios-gray5);
    margin: 0 20px;
}

.author-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ios-gray5);
}

.author-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ios-blue), #5856d6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.author-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--ios-text);
}

.author-role {
    font-size: 13px;
    color: var(--ios-gray);
}

.article-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--ios-gray);
}

.article-stats span,
.article-stats a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ios-gray);
    text-decoration: none;
    transition: var(--transition);
}

.article-stats a:hover {
    color: var(--ios-blue);
}

/* Hero Image */
.hero-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.hero-figure img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Share Strip */
.share-strip {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--ios-gray5);
}

.btn-share {
    flex: 1;
    background: var(--ios-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-share:active {
    transform: scale(0.98);
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--ios-gray6);
    color: var(--ios-text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--ios-gray5);
    transform: translateY(-2px);
}

.btn-icon.twitter:hover {
    background: #000;
    color: white;
}

.btn-icon.whatsapp:hover {
    background: #25d366;
    color: white;
}

/* Lead Text */
.lead-text {
    padding: 24px 20px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--ios-text2);
    font-weight: 500;
    border-bottom: 1px solid var(--ios-gray5);
    background: linear-gradient(to bottom, var(--ios-gray6), transparent);
}

/* Article Body */
.article-body {
    padding: 24px 20px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--ios-text3);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body p:first-child::first-letter {
    font-size: 56px;
    float: left;
    line-height: 1;
    padding-right: 12px;
    font-weight: 800;
    color: var(--ios-blue);
}

/* Inline Elements */
.ad-inline {
    margin: 24px 0;
    padding: 20px;
    background: var(--ios-gray6);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px dashed var(--ios-gray4);
}

.inline-image {
    margin: 24px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    transition: var(--transition);
}

.inline-image:hover {
    transform: scale(1.02);
}

.inline-image img {
    width: 100%;
    height: auto;
    display: block;
}

.inline-suggest {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--ios-gray6);
    border-radius: var(--radius-sm);
    margin: 24px 0;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--ios-gray5);
    transition: var(--transition);
}

.inline-suggest:hover {
    background: var(--ios-gray5);
    transform: translateX(4px);
}

.suggest-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.suggest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggest-text {
    flex: 1;
}

.suggest-label {
    font-size: 11px;
    color: var(--ios-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.suggest-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ios-text);
    line-height: 1.4;
}

.inline-suggest > i {
    color: var(--ios-gray3);
}

/* Remaining Images */
.remaining-images {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--ios-gray5);
}

.remaining-images h3 {
    font-size: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ios-text);
}

.image-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.image-stack figure {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 16/10;
    transition: var(--transition);
}

.image-stack figure:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.image-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tags */
.tags-bar {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--ios-gray5);
}

.tags-bar a {
    padding: 8px 16px;
    background: var(--ios-gray6);
    color: var(--ios-text2);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tags-bar a:hover {
    background: var(--ios-blue);
    color: white;
    transform: translateY(-2px);
}

/* Author Box */
.author-box {
    margin: 20px;
    padding: 24px;
    background: var(--ios-gray6);
    border-radius: var(--radius);
}

.author-box-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.author-box-header img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.author-box-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ios-blue), #5856d6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.author-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-box-header span {
    color: var(--ios-gray);
    font-size: 14px;
}

.author-box p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ios-text2);
}

/* Comments Section */
.comments-wrap {
    padding: 24px 20px;
    border-top: 1px solid var(--ios-gray5);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.comments-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-yaz {
    background: var(--ios-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-yaz:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

/* Comment Form */
.yorum-form {
    background: var(--ios-gray6);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.yorum-form input,
.yorum-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ios-gray4);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    transition: var(--transition);
}

.yorum-form input:focus,
.yorum-form textarea:focus {
    outline: none;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.yorum-form textarea {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 12px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#charCount {
    font-size: 13px;
    color: var(--ios-gray);
}

.yorum-form button[type="submit"] {
    background: var(--ios-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.yorum-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.reply-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--ios-blue);
    color: white;
    border-radius: 12px;
    font-size: 14px;
}

.reply-banner button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.reply-banner button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Comments List */
.yorum-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.no-yorum {
    text-align: center;
    padding: 48px 20px;
    color: var(--ios-gray);
}

.no-yorum i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.yorum-item {
    background: var(--ios-gray6);
    padding: 20px;
    border-radius: var(--radius-sm);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.yorum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.yorum-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yorum-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ios-orange), var(--ios-red));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.yorum-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--ios-text);
}

.yorum-header time {
    font-size: 12px;
    color: var(--ios-gray);
}

.verified {
    color: var(--ios-blue);
    font-size: 16px;
}

.yorum-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ios-text2);
    margin-bottom: 12px;
}

.yorum-actions {
    display: flex;
    gap: 12px;
}

.yorum-actions button {
    background: transparent;
    border: none;
    color: var(--ios-gray);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.yorum-actions button:hover {
    background: var(--ios-gray5);
    color: var(--ios-text);
}

.btn-like:hover {
    color: var(--ios-blue) !important;
}

.btn-dislike:hover {
    color: var(--ios-red) !important;
}

.btn-reply {
    margin-left: auto;
    color: var(--ios-blue) !important;
}

/* Nested Comments */
.yanitlar {
    margin-top: 16px;
    padding-left: 20px;
    border-left: 2px solid var(--ios-gray4);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yanit {
    background: white;
    padding: 16px;
    border-radius: 12px;
}

.yanit-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.yanit-header span {
    font-weight: 600;
    color: var(--ios-text);
}

.yanit-header time {
    color: var(--ios-gray);
    font-size: 12px;
}

.yanit p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ios-text2);
    margin-bottom: 8px;
}

.yanit-actions {
    display: flex;
    gap: 8px;
}

.yanit-actions button {
    background: transparent;
    border: none;
    color: var(--ios-gray);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

/* Sidebar */
.view-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: var(--ios-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-box h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ios-text);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 12px;
    transition: var(--transition);
}

.sidebar-item:hover {
    background: var(--ios-gray6);
}

.sidebar-item img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-item div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ios-text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-item span {
    font-size: 12px;
    color: var(--ios-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ad-box {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ios-gray6);
    border: 2px dashed var(--ios-gray4);
    color: var(--ios-gray);
    font-size: 14px;
    font-weight: 500;
}

.weather-box {
    background: linear-gradient(135deg, var(--ios-blue), #5856d6);
    color: white;
}

.weather-box h3 {
    color: white;
    opacity: 0.9;
}

.weather-content {
    text-align: center;
    padding: 20px;
}

.weather-temp {
    font-size: 48px;
    font-weight: 200;
    margin: 16px 0 8px;
}

.weather-desc {
    font-size: 16px;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lb-prev {
    left: 20px;
}

.lb-next {
    right: 20px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ios-gray6);
}

::-webkit-scrollbar-thumb {
    background: var(--ios-gray3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ios-gray2);
}

/* Selection */
::selection {
    background: var(--ios-blue);
    color: white;
}

/* Print Styles */
@media print {
    .view-sidebar,
    .share-strip,
    .yorum-form,
    .yorum-actions,
    .btn-yaz,
    .lightbox,
    .toast {
        display: none !important;
    }
    
    .article-main {
        box-shadow: none;
    }
    
    body {
        background: white;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

