/* Paste - Minimalist Text Paylaşım Platformu */
/* CPanel uyumlu, responsive CSS */

/* CSS Custom Properties for Theme Support */
:root {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #7f8c8d;
    --border-color: #e1e8ed;
    --input-bg: #fafafa;
    --input-focus-bg: #ffffff;
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --shadow: rgba(0,0,0,0.1);
    --hover-bg: #f8f9fa;
}


[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #404040;
    --input-bg: #3a3a3a;
    --input-focus-bg: #404040;
    --primary-color: #4aa3df;
    --primary-hover: #3498db;
    --success-color: #2ecc71;
    --error-color: #e67e22;
    --shadow: rgba(0,0,0,0.3);
    --hover-bg: #404040;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    max-width: 55vw;
    width: 100%;
    margin: 0 auto;
    padding: 5px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Main Layout - Two Column */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.main-content {
    min-width: 0; /* Grid overflow fix */
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 4px;
    flex-shrink: 0;
    height: auto;
    min-height: 35px;
}

.logo a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 300;
    display: inline-block;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.logo a:hover {
    color: var(--primary-color);
}

/* Header responsive yükseklik */
@media (max-height: 1080px) {
    .header {
        margin-bottom: 6px;
        min-height: 38px;
    }
    
    .logo a {
        font-size: 1.35rem;
    }
}

@media (max-height: 800px) {
    .header {
        margin-bottom: 5px;
        min-height: 35px;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
}

@media (max-height: 600px) {
    .header {
        margin-bottom: 3px;
        min-height: 30px;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
}

/* Main Layout - Two Column */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    align-items: start;
    flex: 1;
}

.main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Form */
.paste-form {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px var(--shadow);
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Form responsive yükseklik padding */
@media (max-height: 1080px) {
    .paste-form {
        padding: 25px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-actions {
        margin-top: 12px;
    }
}

.form-group {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.form-group.content-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: min(350px, 40vh);
    max-height: min(80vh, calc(100vh - 120px));
    height: clamp(350px, 65vh, calc(100vh - 120px));
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
    flex-shrink: 0;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--input-focus-bg);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Otomatik doldurma (autocomplete) için dark mode desteği */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    background-color: var(--input-bg) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-textarea {
    width: 100%;
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow-y: auto;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--input-focus-bg);
}

.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    width: 150px;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-shrink: 0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn.primary,
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover,
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn.primary:disabled,
.btn-primary:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Loading */
.loading {
    display: none;
    color: var(--text-muted);
    font-style: italic;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Error/Success Messages */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
    display: none;
}

.message.error {
    background-color: var(--error-color);
    color: white;
}

.message.success {
    background-color: var(--success-color);
    color: white;
}

/* Rate Limit Info */
.rate-info {
    background: var(--input-bg);
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

/* Paste View Page */
.paste-view {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.paste-title h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.paste-content {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    max-width: 100%;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.paste-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
}

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

.paste-title {
    flex: 1;
}

.paste-title h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.paste-header-actions {
    display: flex;
    gap: 1px;
    align-items: center;
}

.paste-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-icon-only {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-icon-only:hover {
    color: var(--text-color);
    background-color: var(--hover-bg);
    transform: translateY(-1px);
}

.btn-icon-only.primary {
    color: var(--primary-color);
}

.btn-icon-only.primary:hover {
    color: white;
    background-color: var(--primary-color);
}

.btn-icon-only i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.raw-link {
    font-size: 14px;
}

.btn-secondary {
    background-color: var(--text-muted);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--text-color);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 11px;
    flex-shrink: 0;
    padding: 4px 0;
    min-height: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 11px;
}

.footer-links a:hover {
    color: var(--primary-color);
    background-color: var(--hover-bg);
}

/* Footer responsive yükseklik */
@media (max-height: 1080px) {
    .footer {
        margin-top: auto;
        padding: 3px 0;
        font-size: 10px;
        min-height: 38px;
    }
    
    .footer-links {
        margin-bottom: 2px;
    }
    
    .footer-links a {
        padding: 2px 5px;
        font-size: 10px;
    }
}

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

.sidebar-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section h3 i {
    color: var(--primary-color);
    font-size: 14px;
}

/* User Info Section */
.user-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 14px;
}

.user-welcome i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Sidebar Forms */
.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group-small {
    margin: 0;
}

.form-group-small input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group-small input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--input-focus-bg);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.form-group-small input::placeholder {
    color: var(--text-muted);
}

/* Otomatik doldurma (autocomplete) için dark mode desteği - Sidebar form */
.form-group-small input:-webkit-autofill,
.form-group-small input:-webkit-autofill:hover,
.form-group-small input:-webkit-autofill:focus,
.form-group-small input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    background-color: var(--input-bg) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-small {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-small.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-small.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-small.primary:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.message-small {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    display: none;
    margin-top: 8px;
}

.message-small.success {
    background: var(--success-color);
    color: white;
}

.message-small.error {
    background: var(--error-color);
    color: white;
}

.auth-links-small {
    margin-top: 12px;
    text-align: center;
}

.auth-links-small a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.auth-links-small a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Pastes List */
.pastes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.paste-item {
    padding: 10px 12px;
    background: var(--input-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.paste-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.paste-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.paste-item-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paste-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loading-small {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px;
}

.view-all-link {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--hover-bg);
    color: var(--primary-hover);
}

/* Recent Visits */
.visits-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visit-item {
    padding: 8px 10px;
    background: var(--input-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.visit-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.visit-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.visit-item-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visit-item-time {
    font-size: 11px;
    color: var(--text-muted);
}

.no-visits {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 15px;
    font-style: italic;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: relative;
}

.theme-toggle:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design - Farklı Ekran Boyutları İçin Optimize Edilmiş */

/* 1440p ve üzeri (2560px+) - Ultra Wide Ekranlar */
@media (min-width: 2560px) {
    .container {
        max-width: 55vw;
        padding: 10px 40px;
    }
    
    .form-group.content-group {
        height: clamp(500px, 65vh, calc(100vh - 100px));
        min-height: min(500px, 50vh);
        max-height: min(75vh, calc(100vh - 100px));
    }
}

/* 1440p (2560px - 1920px) - QHD Ekranlar */
@media (min-width: 1920px) and (max-width: 2559px) {
    .container {
        max-width: 70vw;
        padding: 8px 35px;
    }
    
    .form-group.content-group {
        height: clamp(400px, 60vh, calc(100vh - 120px));
        min-height: min(400px, 45vh);
        max-height: min(70vh, calc(100vh - 120px));
    }
}

/* 1080p (1920px - 1366px) - Full HD Ekranlar */
@media (min-width: 1366px) and (max-width: 1919px) {
    .container {
        max-width: 80vw;
        padding: 5px 25px;
    }
}

/* 720p (1366px - 1024px) - HD Ekranlar */
@media (min-width: 1024px) and (max-width: 1365px) {
    .container {
        max-width: 90vw;
        padding: 5px 20px;
    }
}

/* Tablet Landscape (1024px - 768px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 80vw;
        padding: 5px 20px;
    }
}

/* Tablet Portrait & Mobile Landscape (768px - 480px) */
@media (min-width: 480px) and (max-width: 767px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .container {
        max-width: 95vw;
        padding: 3px 15px;
        flex: 1;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sidebar {
        order: -1;
        flex-direction: row;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .sidebar-section {
        min-width: 260px;
        flex-shrink: 0;
        padding: 15px;
    }
    
    .paste-form {
        padding: 25px;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .form-group.content-group {
        height: clamp(200px, 50vh, calc(100vh - 180px));
        min-height: min(200px, 35vh);
        max-height: min(55vh, calc(100vh - 150px));
    }
    
    .form-textarea {
        height: 35vh;
        min-height: 200px;
        max-height: 40vh;
        font-size: 14px;
        padding: 12px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .form-select {
        width: 100%;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .paste-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .paste-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .footer-links {
        gap: 12px;
        justify-content: center;
    }
    
    .footer-links a {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .footer-links a:not([href*="blog"]):not([href*="about"]):not([href*="contact"]) {
        display: none;
    }
}

/* Mobile Portrait (480px ve altı) */
@media (max-width: 479px) {
    body {
        min-height: 100vh;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .container {
        max-width: 95vw;
        width: 95%;
        padding: 5px 8px;
        box-sizing: border-box;
        overflow-x: hidden;
        flex: 1;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Sidebar'ı mobilde tamamen gizle */
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .paste-form {
        padding: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .form-input {
        font-size: 16px; /* iOS zoom prevention */
        padding: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group.content-group {
        flex: 1;
        height: clamp(200px, 45vh, calc(100vh - 160px));
        min-height: min(200px, 30vh);
        max-height: min(50vh, calc(100vh - 140px));
    }
    
    .form-textarea {
        height: 40vh;
        min-height: 250px;
        max-height: 45vh;
        font-size: 16px; /* iOS zoom prevention */
        padding: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        resize: none;
        flex: 1;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        width: 100%;
    }
    
    .form-select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        box-sizing: border-box;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .paste-content {
        font-size: 14px;
        padding: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .paste-view {
        padding: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .paste-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .paste-actions-top {
        display: flex;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .paste-actions-top .btn-icon-only {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .paste-actions-bottom {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }
    
    .paste-actions-bottom .btn-icon-only {
        flex: 1;
        justify-content: center !important;
    }
    
    /* Mobilde sadece paste action butonları yazı şeklinde */
    .paste-actions .btn-icon-only {
        width: auto;
        height: auto;
        padding: 12px 16px;
        justify-content: flex-start;
        gap: 8px;
        font-size: 15px;
        border-radius: 6px;
        background-color: var(--input-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
        text-align: left;
    }
    
    .paste-actions .btn-icon-only:hover {
        background-color: var(--hover-bg);
        border-color: var(--primary-color);
    }
    
    .paste-actions .btn-icon-only.primary {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .paste-actions .btn-icon-only.primary:hover {
        background-color: var(--primary-hover);
    }
    
    .paste-actions .btn-icon-only i {
        width: auto;
        height: auto;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    /* Mobilde sadece paste action buton metinleri için pseudo-element */
    .paste-actions .btn-icon-only[title="Copy Content"]:after {
        content: "Kopyala";
    }
    
    .paste-actions .btn-icon-only[title="Share Link"]:after {
        content: "Paylaş";
    }
    
    .paste-actions .btn-icon-only[title="New Paste"]:after {
        content: "Yeni Paste";
    }
    
    .paste-actions .btn-icon-only[title="View as raw text"]:after {
        content: "Ham Metin";
    }
    
    .paste-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 13px;
        width: 100%;
        word-wrap: break-word;
    }
    
    .footer {
        font-size: 10px;
        padding: 8px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-links {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .footer-links a {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .footer-links a:not([href*="blog"]):not([href*="about"]):not([href*="contact"]) {
        display: none;
    }
    
    /* Form elementlerinin genişlik kontrolü */
    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-label {
        width: 100%;
        font-size: 14px;
    }
    
    /* Header mobil düzenlemesi */
    .header {
        width: 100%;
        padding: 0;
        margin-bottom: 8px;
    }
    
    /* Tüm içeriğin ekran sınırları içinde kalması */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Çok küçük ekranlar için (320px ve altı) */
@media (max-width: 320px) {
    .container {
        padding: 2px 8px;
    }
    
    .paste-form {
        padding: 10px;
    }
    
    .logo a {
        font-size: 1rem;
    }
    
    .form-group.content-group {
        height: clamp(180px, 35vh, calc(100vh - 120px));
        min-height: min(180px, 25vh);
        max-height: min(38vh, calc(100vh - 100px));
    }
    
    .form-textarea {
        height: 30vh;
        min-height: 180px;
        max-height: 35vh;
        padding: 10px;
        flex: 1;
    }
    
    .sidebar-section {
        padding: 10px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .footer-links a {
        padding: 3px 6px;
        font-size: 9px;
    }
}

/* Print Styles */
@media print {
    .header, .form-actions, .paste-actions, .footer {
        display: none;
    }
    
    .paste-content {
        border: none;
        background: white;
        box-shadow: none;
    }
}

/* ==============================
   CKEditor 5 Entegrasyon Stilleri
   ============================== */

/* Editor Wrapper */
.editor-wrapper {
    position: relative;
    width: 100%;
}

/* CKEditor Textarea - CKEditor yüklenmeden önce gösterilen */
.ckeditor-textarea {
    transition: opacity 0.3s ease;
}

.ckeditor-textarea.ck-hidden {
    display: none !important;
}

/* CKEditor ana container tema uyumu */
.ck-editor {
    border-color: var(--border-color) !important;
    box-shadow: 0 2px 10px var(--shadow) !important;
}

/* CKEditor toolbar tema uyumu */
.ck-toolbar {
    background: var(--input-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

/* CKEditor butonları */
.ck-button {
    color: var(--text-color) !important;
}

.ck-button:not(.ck-disabled):hover {
    background: var(--hover-bg) !important;
    color: var(--text-color) !important;
}

.ck-button.ck-on {
    background: var(--primary-color) !important;
    color: white !important;
}

.ck-button.ck-on:hover {
    background: var(--primary-hover) !important;
}

/* CKEditor editör alanı */
.ck-editor__editable {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
    min-height: 400px !important;
    max-height: 500px !important;
    overflow-y: auto !important;
}

.ck-editor__editable:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2) !important;
}

/* Dark theme için CKEditor */
[data-theme="dark"] .ck-editor__editable {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .ck-toolbar {
    background: var(--input-bg) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .ck-button {
    color: var(--text-color) !important;
}

[data-theme="dark"] .ck-button:not(.ck-disabled):hover {
    background: var(--hover-bg) !important;
    color: var(--text-color) !important;
}

/* CKEditor dropdown'lar */
.ck-dropdown__panel {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 20px var(--shadow) !important;
    color: var(--text-color) !important;
}

.ck-list__item {
    color: var(--text-color) !important;
}

.ck-list__item:hover {
    background: var(--hover-bg) !important;
}

/* CKEditor tooltip'ler */
.ck-tooltip {
    background: var(--text-color) !important;
    color: var(--card-bg) !important;
}

/* CKEditor tablo stilleri tema uyumu */
.ck-content table {
    border-color: var(--border-color) !important;
}

.ck-content table td,
.ck-content table th {
    border-color: var(--border-color) !important;
}

.ck-content table th {
    background: var(--input-bg) !important;
    color: var(--text-color) !important;
}

/* CKEditor blockquote tema uyumu */
.ck-content blockquote {
    border-left-color: var(--primary-color) !important;
    background: var(--input-bg) !important;
    color: var(--text-muted) !important;
}

/* CKEditor kod bloku tema uyumu */
.ck-content pre {
    background: var(--input-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

.ck-content code {
    background: var(--input-bg) !important;
    color: var(--text-color) !important;
}

/* CKEditor link stilleri */
.ck-content a {
    color: var(--primary-color) !important;
}

.ck-content a:hover {
    color: var(--primary-hover) !important;
}

/* CKEditor resim stilleri */
.ck-content .image img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
}

/* URL Modal stilleri (CKEditor image upload) */
#ckeditor-url-modal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

#ckeditor-url-modal input {
    font-family: inherit !important;
}

#ckeditor-url-modal button {
    font-family: inherit !important;
}

/* CKEditor yükleme durumu */
.ck-editor.ck-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.ck-editor.ck-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--primary-color);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: ck-loading-spin 1s linear infinite;
    z-index: 1000;
}

@keyframes ck-loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* CKEditor responsive ayarları */
@media (max-width: 768px) {
    .ck-editor__editable {
        min-height: 300px !important;
        max-height: 400px !important;
        overflow-y: auto !important;
        padding: 10px !important;
        font-size: 16px !important; /* iOS zoom prevention */
    }
    
    .ck-toolbar {
        padding: 8px !important;
    }
    
    .ck-toolbar .ck-toolbar__items {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
    
    .ck-button {
        margin: 1px !important;
        padding: 8px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    
    .ck-button .ck-button__label {
        display: none !important;
    }
    
    /* Mobilde resim stilleri */
    .ck-content .image-style-side,
    .ck-content .image-style-align-left,
    .ck-content .image-style-align-right {
        float: none !important;
        margin: 15px auto !important;
        display: block !important;
        max-width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 479px) {
    .ck-editor__editable {
        min-height: 250px !important;
        max-height: 350px !important;
        overflow-y: auto !important;
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    .ck-toolbar {
        padding: 6px !important;
    }
    
    .ck-button {
        margin: 1px !important;
        padding: 6px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        font-size: 12px !important;
    }
    
    /* URL Modal mobil uyumu */
    #ckeditor-url-modal > div {
        width: 95% !important;
        margin: 10px !important;
        padding: 20px !important;
    }
    
    #ckeditor-url-input {
        font-size: 16px !important; /* iOS zoom prevention */
    }
}

/* CKEditor fokus durumu animasyonu */
.ck-editor__editable.ck-focused {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* CKEditor widget seçim stilleri */
.ck-widget.ck-widget_selected {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 1px !important;
}

/* CKEditor placeholder stilleri */
.ck-editor__editable.ck-placeholder::before {
    color: var(--text-muted) !important;
    font-style: italic !important;
}

/* CKEditor balloon toolbar */
.ck-balloon-panel {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 20px var(--shadow) !important;
}

/* CKEditor form elemanları */
.ck-input {
    background: var(--input-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

.ck-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2) !important;
}

/* CKEditor error durumu */
.ck-editor.ck-error .ck-editor__editable {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

/* CKEditor success durumu */
.ck-editor.ck-success .ck-editor__editable {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2) !important;
}

/* Form grup CKEditor entegrasyonu */
.form-group .editor-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.form-group.content-group .editor-wrapper {
    height: 100%;
}

.form-group.content-group .ck-editor {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-group.content-group .ck-editor__editable {
    flex: 1;
    min-height: 300px;
    max-height: none;
    overflow-y: auto;
}

/* CKEditor print stilleri */
@media print {
    .ck-editor__editable {
        border: none !important;
        box-shadow: none !important;
        background: white !important;
        color: black !important;
    }
    
    .ck-toolbar {
        display: none !important;
    }
    
    .ck-content * {
        color: black !important;
    }
}

/* ==============================
   Contact Page Styles
   ============================== */

.contact-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 50px;
}

.contact-header {
    margin-bottom: 40px;
    text-align: center;
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

.contact-content {
    margin-bottom: 50px;
}

.contact-info {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--input-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-color);
}

.contact-info p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-color);
}

.contact-form {
    margin-top: 30px;
}

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

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    display: block;
}

.contact-form .form-input {
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-form .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

.contact-select {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    background-color: var(--input-bg) !important;
    color: var(--text-color) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-select:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.contact-textarea {
    min-height: 200px !important;
    padding: 16px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.contact-textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.hcaptcha-wrapper {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    min-height: 78px;
}

.contact-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.contact-actions .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-footer {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid var(--border-color);
}

.contact-footer h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-detail-item {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    padding: 12px 0;
}

.contact-detail-item strong {
    color: var(--text-color);
    font-weight: 600;
    margin-right: 8px;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-page {
        padding: 30px 25px;
    }
    
    .contact-header h2 {
        font-size: 1.7rem;
    }
    
    .contact-intro {
        font-size: 1rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form .form-group {
        margin-bottom: 20px;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-actions .btn {
        width: 100%;
    }
    
    .contact-info {
        padding: 20px;
    }
}

@media (max-width: 479px) {
    .contact-page {
        padding: 20px 15px;
    }
    
    .contact-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-form .form-input,
    .contact-select,
    .contact-textarea {
        font-size: 16px; /* iOS zoom prevention */
    }
    
    .contact-textarea {
        min-height: 180px !important;
    }
}
