/* Light mode (varsayılan) */
:root {
    color-scheme: light;
    --background: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent: #0066cc;
    --header-bg: #F3F7FA;
    --footer-bg: #1F2220;
    --section-bg: #ffffff;
    --button-text: #ffffff;
    --chose-section-bg: #F3F7FA;
    --dark-section-bg: #F3F7FA;
    --border-color: #1a1a1a;
}

/* Dark mode */
:root[data-theme="dark"] {
    color-scheme: dark;
    --background: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent: #4a9eff;
    --header-bg: #1a1a1a;
    --footer-bg: #1F2220;
    --section-bg: #1a1a1a;
    --button-text: #ffffff;
    --chose-section-bg: #1a1a1a;
    --dark-section-bg: #1F221F;
    --border-color: #ffffff;
    --contact-form-bg: #7f7f7f;
}

/* Genel stiller */
body {
    background-color: var(--background);
    color: var(--text-primary);
}

/* Header stilleri */
.tp-header-4-ptb {
    background-color: var(--header-bg) !important;
}
.tp-header-3-top {
    background-color: var(--header-bg) !important;
}

/* Footer stilleri */
.tp-footer-ptb {
    background-color: var(--footer-bg);
}

/* Tema değiştirme butonu stilleri */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.theme-toggle img {
    width: 24px;
    height: 24px;
}

/* Dark modda light ikonu göster */
[data-theme="dark"] .light-icon {
    display: block;
}

[data-theme="dark"] .dark-icon {
    display: none;
}

/* Light modda dark ikonu göster */
[data-theme="light"] .light-icon {
    display: none;
}

[data-theme="light"] .dark-icon {
    display: block;
}

/* Dark mod için ek stiller */
[data-theme="dark"] .demo-btn {
    color: var(--button-text) !important;
}

[data-theme="dark"] .phone-section {
    background-color: var(--section-bg) !important;
}

[data-theme="dark"] .phone-section * {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .features-section {
    background-color: var(--section-bg) !important;
}

[data-theme="dark"] .features-section * {
    color: var(--text-primary) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .tp-chose-ptb {
    background-color: var(--chose-section-bg) !important;
}

[data-theme="dark"] li span,
[data-theme="dark"] li a span {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .tp-client-ptb {
    background-color: var(--dark-section-bg) !important;
}

[data-theme="dark"] .tp-faq-4-ptb {
    background-color: var(--dark-section-bg) !important;
}

[data-theme="dark"] .tp-header-2-main-right-btn .tp-btn {
    color: var(--button-text) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .tp-header-2-main-right-btn .tp-btn svg {
    color: var(--button-text) !important;
    stroke: var(--button-text) !important;
}

[data-theme="dark"] .logo-text,
[data-theme="dark"] .logo svg path {
    color: var(--text-primary) !important;
    fill: var(--text-primary) !important;
}

[data-theme="dark"] .tp-contact-item-content a {
    color: var(--text-primary) !important;
}

/* Dark mod için ek stiller */
[data-theme="dark"] .tp-header-logo img {
    content: url('../img/logo/logo-white-ftr.png') !important;
}

[data-theme="dark"] .tp-about-list ul li,
[data-theme="dark"] .tp-about-2-list ul li {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .tp-about-list ul li span svg path,
[data-theme="dark"] .tp-about-2-list ul li span svg path {
    stroke: var(--text-primary) !important;
} 

/* Contact sayfası dark mod stilleri */
[data-theme="dark"] .tp-contact-inner-form-ptb {
    background-color: var(--dark-section-bg) !important;
}

[data-theme="dark"] .tp-contact-inner-wrap {
    background-color: var(--background) !important;
}

[data-theme="dark"] .tp-contact-inner-form input,
[data-theme="dark"] .tp-contact-inner-form textarea {
    background-color: var(--background) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .tp-contact-inner-form input::placeholder,
[data-theme="dark"] .tp-contact-inner-form textarea::placeholder {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .tp-contact-inner-form .send-message {
    background-color: var(--accent) !important;
    color: var(--button-text) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .tp-contact-inner-title h3,
[data-theme="dark"] .tp-contact-inner-title p {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .tp-contact-inner-form .privacy-text {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .tp-contact-inner-form svg {
    fill: var(--text-primary) !important;
    stroke: var(--text-primary) !important;
}

/* İletişim bilgileri için dark mod stilleri */
[data-theme="dark"] .tp-contact-wrap-info-content p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .tp-contact-wrap-info-content a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .tp-contact-inner-wrap-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .tp-contact-inner-icon svg path {
    fill: var(--text-primary) !important;
}

[data-theme="dark"] .tp-client-item-icon span {
    background: #2c302e !important;
}

[data-theme="dark"] .tp-chose-4-item-content span {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .accordion-header {
    background-color: transparent !important;
}

[data-theme="dark"] .tp-faq-box .accordion-button:not(.collapsed) {
    background-color: #1a1a1a !important;
}

[data-theme="dark"] .tp-faq-box .accordion-button.collapsed {
    background-color: var(--background) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .tp-faq-box .accordion-item.active {
    background: #1a1a1a !important;
}

[data-theme="dark"] .tp-faq-box .accordion-item {
    background: none !important;
}

[data-theme="dark"] .tp-faq-box .accordion-body {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .tp-contact-from {
    background-color: transparent !important;
}

[data-theme="dark"] .tp-contact-input .tp-input, .tp-contact-input .tp-textarea {
    background-color: transparent !important;
    color: #ffffff !important;
}

[data-theme="dark"] .modal.show .modal-content {
    background: #1a1a1a !important;
}

[data-theme="light"] .tp-contact-input .tp-input, .tp-contact-input .tp-textarea {
    color: #1a1a1a !important;
}

[data-theme="light"] .tp-header-lang-selected {
    color: var(--text-primary) !important;
}

[data-theme="light"] .tp-header-lang-selected::after {
    color: var(--text-primary) !important;
}


/* Mobil tema değiştirme butonu stilleri */
.mobile-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.mobile-theme-toggle img {
    width: 24px;
    height: 24px;
}

.me-3 {
    margin-right: 1rem !important;
}

@media (min-width: 1200px) {
    .mobile-theme-toggle {
        display: none;
    }
}