/* ==============================================
   COMBINED CUSTOM STYLES FROM ALL TEMPLATES
   ============================================== */

/* Footer Newsletter Styles */
#newsletter-alert .alert {
    font-size: 14px;
    padding: 10px 15px;
    margin-bottom: 0;
}

#newsletter-alert .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #c3e6cb;
    color: #155724;
}

#newsletter-alert .alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffeaa7;
    color: #856404;
}

#newsletter-alert .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #f5c6cb;
    color: #721c24;
}

#newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Contact Float Buttons */
.contact-float-buttons .float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.contact-float-buttons .phone-btn {
    display: none !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #E10006;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Mobile Contact Buttons */
@media (max-width: 768px) {
    .contact-float-buttons {
        bottom: 15px !important;
        left: 15px !important;
    }
    
    .contact-float-buttons .float-btn {
        width: 50px !important;
        height: 50px !important;
    }
    
    .contact-float-buttons .whatsapp-btn i {
        font-size: 24px !important;
    }
    
    .contact-float-buttons .phone-btn {
        display: flex !important;
    }
    
    .contact-float-buttons .phone-btn i {
        font-size: 20px !important;
    }
}

/* Header Mobile Menu Styles */
.mobile-menu-area .mobile-menu-main {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu-area .mobile-menu-main.active {
    left: 0;
}

.mobile-menu-area .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.mobile-menu-area .has-dropdown .sub-menu {
    display: none;
    padding-left: 20px;
    background: #f8f9fa;
}

.mobile-menu-area .has-dropdown.active .sub-menu {
    display: block;
}

.mobile-menu-area .has-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header Search Styles */
.header-search {
    display: none;
    z-index: 9999;
    background: rgba(0,0,0,0.8);
}

.header-search.active {
    display: block;
}

/* Offcanvas Menu Styles */
.offcanvas-menu {
    right: -100%;
    transition: right 0.3s ease;
    z-index: 9999;
    background: #2c3e50;
    padding: 20px;
}

.offcanvas-menu.active {
    right: 0;
}

.offcanvas-overlay {
    display: none;
    z-index: 9998;
    background: rgba(0,0,0,0.5);
}

/* Desktop Dropdown Menus */
@media (min-width: 1200px) {
    .navbar-nav .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        margin-top: 0;
    }
    
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile Menu Display */
@media (max-width: 1199px) {
    .mobile-menu-area {
        display: block !important;
    }
}

/* Contact Page Styles */
.security-section {
    transition: all 0.3s ease;
}

.security-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.captcha-image-wrapper {
    transition: transform 0.2s ease;
}

.captcha-image-wrapper:hover {
    transform: scale(1.05);
}

#captcha-img {
    transition: opacity 0.2s ease;
}

#captcha-img:hover {
    opacity: 0.8;
}

.input-group .icon {
    right: 15px;
    color: #666;
    transition: color 0.2s ease;
}

.theme-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contact Page Mobile Styles */
@media (max-width: 767px) {
    .security-section .row {
        text-align: center;
    }
    
    .captcha-container {
        margin-bottom: 20px;
    }
}

/* Homepage News Images */
.homepage-news-fixed-img {
    height: 280px !important;
    object-fit: cover;
    object-position: center;
}

.homepage-news-img {
    height: 280px;
}

.homepage-news-img .overlay-shape {
    height: 100%;
}

/* Homepage News Mobile Responsive */
@media (max-width: 992px) {
    .homepage-news-fixed-img {
        height: 250px !important;
    }
    
    .homepage-news-img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .homepage-news-fixed-img {
        height: 220px !important;
    }
    
    .homepage-news-img {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .homepage-news-fixed-img {
        height: 200px !important;
    }
    
    .homepage-news-img {
        height: 200px;
    }
}

/* Inline Editor Styles - SADECE ADMIN GİRİŞİNDE AKTİF */
body:not(.admin-logged-in) .editable-content:hover {
    background-color: transparent !important;
    box-shadow: none !important;
}

body:not(.admin-logged-in) .editable-content.editing {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Admin giriş yapmışsa normal çalış */
body.admin-logged-in .editable-content {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
    padding: 2px 4px;
    margin: -2px -4px;
}

body.admin-logged-in .editable-content:hover {
    background-color: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.4);
}

body.admin-logged-in .editable-content.editing {
    background-color: rgba(40, 167, 69, 0.2);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.4);
}

/* Image Editor Styles - GERÇEK DOM ELEMENTİ İLE */
.image-edit-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    z-index: 100 !important;
    pointer-events: none !important;
}

.image-edit-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transition: all 0.4s ease !important;
    z-index: 101 !important;
    pointer-events: auto !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    color: #ffffff !important;
    font-size: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.image-edit-wrapper {
    position: relative !important;
    display: inline-block !important;
}

.image-edit-wrapper:hover .image-edit-overlay {
    opacity: 1 !important;
}

.image-edit-wrapper:hover .image-edit-icon {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6) !important;
}

.image-edit-wrapper.editing .image-edit-overlay {
    background: rgba(76, 175, 80, 0.7) !important;
    opacity: 1 !important;
}

.image-edit-wrapper.editing .image-edit-icon {
    opacity: 1 !important;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    transform: translate(-50%, -50%) scale(1) !important;
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    animation: pulse 2s infinite !important;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1) !important;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) !important;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* Link'leri devre dışı bırak */
a:has(.image-edit-wrapper) {
    pointer-events: none !important;
}

.image-edit-wrapper a {
    pointer-events: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .image-edit-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    .image-edit-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 28px !important;
    }
}

/* Eski CSS kurallarını temizle */
img[data-image]::before,
img[data-image]::after {
    display: none !important;
}

.editable-image::before,
.editable-image::after {
    display: none !important;
}

/* Header logolarını image editor'den tamamen hariç tut */
.navbar-brand .image-edit-wrapper,
.navbar .image-edit-wrapper,
.ep-header-section .image-edit-wrapper,
.mobile-menu-area .image-edit-wrapper,
.offcanvas-menu .image-edit-wrapper,
header .image-edit-wrapper {
    display: contents !important;
}

.navbar-brand .image-edit-wrapper .image-edit-overlay,
.navbar-brand .image-edit-wrapper .image-edit-icon,
.navbar .image-edit-wrapper .image-edit-overlay,
.navbar .image-edit-wrapper .image-edit-icon,
.ep-header-section .image-edit-wrapper .image-edit-overlay,
.ep-header-section .image-edit-wrapper .image-edit-icon,
header .image-edit-wrapper .image-edit-overlay,
header .image-edit-wrapper .image-edit-icon {
    display: none !important;
}

/* Header logoları için özel hover efekti */
body.admin-logged-in .navbar-brand img[data-image]:hover,
body.admin-logged-in .navbar img[data-image]:hover,
body.admin-logged-in .ep-header-section img[data-image]:hover,
body.admin-logged-in header img[data-image]:hover,
body.admin-logged-in .logo[data-image]:hover {
    filter: brightness(0.8) !important;
    transform: scale(1.05) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
}

/* General Utility Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

.zoom-in {
    animation: zoomIn 0.3s ease-in-out;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print Styles */
@media print {
    .no-print,
    .contact-float-buttons,
    .scroll-to-top,
    .mobile-menu-area,
    .header-search,
    .offcanvas-menu,
    .editable-content:hover,
    .editable-image:hover {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .editable-content:hover {
        background-color: rgba(255, 255, 0, 0.5);
        box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.8);
    }
    
    .editable-image:hover::before {
        background: rgba(255, 255, 0, 0.7);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
.editable-content:focus,
.editable-image:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .editable-content:hover {
        background-color: rgba(255, 193, 7, 0.3);
    }
    
    .editable-image:hover::before {
        background: rgba(0, 0, 0, 0.7);
    }
}