/**
 * Görseli Linke Çevirme - Stylesheet
 * Elegant, Modern, Glassmorphic & Minimalist design.
 */

:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Light Mode Tokens */
    --bg-app: #f6f8fa;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --border-color: #e5e7eb;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.08);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.03);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 70px;
}



/* Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-app);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styling */
.main-header {
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 24px;
    animation: flash 2s infinite linear;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent);
}

.admin-badge {
    background: var(--accent-glow);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 99px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}



/* Page Wrapper */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

/* Upload Container */
.upload-wrapper {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glass);
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.card-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.card-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

/* Drag & Drop Area */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 18px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: scale(1.01);
}

.dropzone-icon-wrapper {
    background: var(--accent-gradient);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropzone:hover .dropzone-icon-wrapper {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.dropzone-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.dropzone-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.file-input {
    display: none;
}

/* Loading Area */
.loading-box {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Success / Result Area */
.result-box {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-container {
    width: 100%;
    max-height: 300px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.meta-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.05);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.meta-item {
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-item strong {
    color: var(--text-primary);
}

/* Code Copy Link Fields */
.link-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.link-field-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.link-input-wrapper {
    display: flex;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.link-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-secondary);
    text-overflow: ellipsis;
}

.copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--accent-hover);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

/* Footer Styling */
.main-footer {
    height: 60px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}

/* Clipboard Toast notification */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* Error/Notification Alerts */
.alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

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

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

@keyframes flash {
    0%, 100% { filter: drop-shadow(0 0 2px var(--accent)); }
    50% { filter: drop-shadow(0 0 10px var(--accent)); }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .card {
        padding: 24px;
    }
    .action-buttons {
        flex-direction: column;
    }
    .meta-info {
        grid-template-columns: 1fr;
    }
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 500px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
        text-align: center;
    }
    .main-header {
        height: auto;
        padding: 8px 0;
    }
    .logo-text {
        font-size: 18px !important;
    }
    .nav-menu {
        gap: 12px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-link {
        font-size: 13px;
    }
    .ad-modal-content {
        width: 92%;
        border-radius: 16px;
    }
    .ad-modal-img {
        max-height: 55vh;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px 16px;
        border-radius: 18px;
    }
    .card-title {
        font-size: 20px;
    }
    .card-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .dropzone {
        padding: 30px 14px;
    }
    .dropzone-text {
        font-size: 14px;
    }
    .dropzone-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    .dropzone-icon-svg {
        width: 24px;
        height: 24px;
    }
    .link-input {
        font-size: 12px;
        padding: 10px 12px;
    }
    .copy-btn {
        padding: 0 12px;
        font-size: 12px;
    }
    .alert {
        padding: 10px 14px;
        font-size: 13px;
    }
    .captcha-container {
        padding: 16px;
    }
    .captcha-container div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .captcha-question {
        font-size: 18px;
    }
    .captcha-input {
        width: 80px;
        font-size: 16px;
        padding: 8px 12px;
    }
}

/* Custom Pink Upload Design styling */
.highlight {
    color: var(--accent);
    font-weight: 800;
}



.dropzone-icon-svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.browse-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

.paste-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
}

kbd {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    color: var(--text-secondary);
    display: inline-block;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    margin: 0 2px;
}

.selected-file-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--accent-glow);
    border: 1px dashed var(--accent);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease;
}

.selected-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-file-icon {
    font-size: 28px;
}

.selected-file-details {
    text-align: left;
}

.selected-file-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.selected-file-size {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-remove-file {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.btn-remove-file:hover {
    color: var(--danger);
}

.allowed-info {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    margin-bottom: 24px;
}


.upload-trigger-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-upload-submit {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    text-align: center;
}

.btn-upload-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-upload-submit:active {
    transform: translateY(0);
}

.btn-upload-submit.ready {
    width: 100%;
    border-radius: 12px;
    padding: 14px;
}

.upload-status-hint {
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.upload-status-hint.ready {
    color: var(--success);
    font-weight: 600;
}

.upload-status-hint.highlight-error {
    color: var(--danger);
    font-weight: 600;
    animation: shake 0.5s ease;
}

.alternative-upload {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
}

.alternative-upload a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.alternative-upload a:hover {
    text-decoration: underline;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Captcha Verification Styles */
.captcha-container {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.captcha-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.captcha-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.captcha-question {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
}

.captcha-input {
    width: 90px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: border-color var(--transition-fast);
}

.captcha-input:focus {
    border-color: var(--accent);
}

.captcha-input::-webkit-outer-spin-button,
.captcha-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-input[type=number] {
    -moz-appearance: textfield;
}

/* Ad Popup Modal Styling */
.ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 27, 0.75);
    backdrop-filter: blur(6px);
}

.ad-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    z-index: 1;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ad-modal-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.ad-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.ad-modal-close:hover {
    background: var(--accent);
}

.ad-modal-badge {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
