/* NFC Dijital Kartvizit - General Styles */

/* Ana stil dosyası - card-style.css'i import eder */
@import url('card-style.css');

/* Genel WordPress uyumluluğu */
.nfc-kartvizit-shortcode {
    margin: 20px 0;
}

.nfc-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nfc-widget h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* WordPress admin bar uyumluluğu */
body.admin-bar .nfc-scroll-to-top {
    bottom: 52px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nfc-scroll-to-top {
        bottom: 66px;
    }
}

/* WordPress theme uyumluluğu */
.theme-phlox .nfc-card-container {
    font-family: inherit;
}

.theme-phlox .nfc-section {
    border: none;
}

/* WordPress editor stilleri */
.wp-block-nfc-card {
    margin: 1.5rem 0;
}

.wp-block-nfc-card .nfc-preview {
    border: 1px dashed #ccc;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
}

/* Gutenberg uyumluluğu */
.wp-admin .nfc-block-preview {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

/* Widget stilleri */
.widget.nfc-widget {
    margin-bottom: 20px;
}

.widget.nfc-widget .widget-title {
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

/* Elementor uyumluluğu */
.elementor-widget-nfc-card .elementor-widget-container {
    overflow: visible;
}

.elementor-element .nfc-card-mini {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.elementor-element .nfc-card-mini:hover {
    transform: translateY(-5px);
}

.elementor-element .nfc-card-mini img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.elementor-element .nfc-card-mini h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.elementor-element .nfc-card-mini p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.elementor-element .nfc-card-mini .nfc-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.elementor-element .nfc-card-mini .nfc-btn:hover {
    background: var(--primary-color);
}

/* Contact Form 7 entegrasyonu */
.wpcf7-form .nfc-form-group {
    margin-bottom: 20px;
}

.wpcf7-form .nfc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.wpcf7-form .nfc-form-group input,
.wpcf7-form .nfc-form-group select,
.wpcf7-form .nfc-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wpcf7-form .nfc-form-group input:focus,
.wpcf7-form .nfc-form-group select:focus,
.wpcf7-form .nfc-form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* WooCommerce uyumluluğu */
.woocommerce .nfc-product-card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.woocommerce .nfc-product-card .nfc-business-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* WPML çoklu dil desteği */
.wpml-ls-statics-shortcode .nfc-lang-switcher {
    display: inline-block;
    margin: 0 5px;
}

.wpml-ls-statics-shortcode .nfc-lang-switcher a {
    padding: 5px 10px;
    background: var(--background-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: background 0.3s ease;
}

.wpml-ls-statics-shortcode .nfc-lang-switcher.wpml-ls-current-language a,
.wpml-ls-statics-shortcode .nfc-lang-switcher a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Yoast SEO uyumluluğu */
.yoast-seo-nfc-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}

.yoast-seo-nfc-preview h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Jetpack uyumluluğu */
.jetpack-sharing-buttons .nfc-share-button {
    display: inline-block;
    margin-right: 10px;
}

/* bbPress forum entegrasyonu */
.bbpress .nfc-user-card {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}

.bbpress .nfc-user-card .avatar {
    float: left;
    margin-right: 15px;
}

.bbpress .nfc-user-card .nfc-user-info {
    overflow: hidden;
}

/* BuddyPress sosyal network entegrasyonu */
.buddypress .nfc-profile-card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.buddypress .nfc-profile-card .nfc-social-links {
    margin-top: 15px;
}

.buddypress .nfc-profile-card .nfc-social-links a {
    display: inline-block;
    margin-right: 10px;
    padding: 8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 20px;
    transition: background 0.3s ease;
}

.buddypress .nfc-profile-card .nfc-social-links a:hover {
    background: var(--primary-color);
}

/* Advanced Custom Fields uyumluluğu */
.acf-field .nfc-acf-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* Custom Post Type UI uyumluluğu */
.cptui .nfc-cpt-settings {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    margin: 10px 0;
    border-radius: 5px;
}

/* Polylang çoklu dil desteği */
.pll-switcher .nfc-lang-item {
    display: inline-block;
    margin: 0 3px;
}

.pll-switcher .nfc-lang-item a {
    padding: 3px 8px;
    background: var(--background-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 3px;
    font-size: 11px;
    transition: background 0.3s ease;
}

.pll-switcher .nfc-lang-item.lang-item-current a,
.pll-switcher .nfc-lang-item a:hover {
    background: var(--secondary-color);
    color: white;
}

/* Kirki Customizer uyumluluğu */
.kirki-nfc-control {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}

/* Redux Framework uyumluluğu */
.redux-container .nfc-redux-field {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    margin: 10px 0;
    border-radius: 5px;
}

/* TablePress uyumluluğu */
.tablepress .nfc-table-card {
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 3px;
}

/* Responsive iyileştirmeler */
@media (max-width: 768px) {
    .elementor-element .nfc-card-mini {
        margin-bottom: 20px;
    }
    
    .buddypress .nfc-profile-card .avatar {
        float: none;
        display: block;
        margin: 0 auto 15px;
    }
    
    .bbpress .nfc-user-card .avatar {
        float: none;
        display: block;
        margin: 0 auto 15px;
    }
}

/* Print medya stilleri */
@media print {
    .nfc-widget,
    .elementor-element .nfc-card-mini,
    .woocommerce .nfc-product-card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .nfc-social-links,
    .nfc-share-button,
    .jetpack-sharing-buttons {
        display: none;
    }
}

/* Accessibility iyileştirmeler */
@media (prefers-reduced-motion: reduce) {
    .elementor-element .nfc-card-mini,
    .nfc-btn,
    .nfc-social-links a {
        transition: none;
    }
    
    .elementor-element .nfc-card-mini:hover {
        transform: none;
    }
}

/* Yüksek kontrast modu */
@media (prefers-contrast: high) {
    .nfc-widget,
    .elementor-element .nfc-card-mini,
    .woocommerce .nfc-product-card {
        border: 2px solid #000;
    }
    
    .nfc-btn {
        border: 2px solid currentColor;
    }
}

/* RTL dil desteği */
[dir="rtl"] .buddypress .nfc-profile-card .avatar {
    float: right;
    margin-left: 15px;
    margin-right: 0;
}

[dir="rtl"] .bbpress .nfc-user-card .avatar {
    float: right;
    margin-left: 15px;
    margin-right: 0;
}

[dir="rtl"] .nfc-social-links a {
    margin-left: 10px;
    margin-right: 0;
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    .nfc-widget,
    .elementor-element .nfc-card-mini,
    .woocommerce .nfc-product-card {
        background: #1a1a1a;
        color: #e0e0e0;
        border-color: #333;
    }
    
    .nfc-widget h3,
    .elementor-element .nfc-card-mini h3 {
        color: #fff;
    }
}

/* CSS Grid desteği kontrolü */
@supports not (display: grid) {
    .nfc-contact-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .nfc-contact-item {
        flex: 0 0 calc(50% - 10px);
        margin: 5px;
    }
}

/* CSS Flexbox desteği kontrolü */
@supports not (display: flex) {
    .nfc-contact-item {
        display: block;
        margin-bottom: 15px;
    }
    
    .nfc-contact-icon {
        float: left;
        margin-right: 15px;
    }
    
    .nfc-contact-text {
        overflow: hidden;
    }
}
