/*
Theme Name: Turkonfed Tedarik
Description: Custom theme for displaying offers with Elementor support
Version: 1.0
Author: Your Name
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.site-title {
    margin: 0;
}

.site-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.5rem 0 0 0;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.primary-menu a:hover,
.primary-menu a:focus {
    color: #2563eb;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.primary-menu a:hover::after,
.primary-menu a:focus::after {
    width: 100%;
}

/* Header Widgets */
.header-widgets {
    margin-left: 1rem;
}

.header-widgets .widget {
    margin: 0;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Offers Section */
.offers-section {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.offers-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.offers-title {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 700;
}

.offers-description {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Shortcode Container */
.shortcode-container {
    margin: 2rem 0;
    min-height: 200px;
    position: relative;
}

.shortcode-placeholder {
    background: #f8f9fa !important;
    border: 2px dashed #dee2e6 !important;
    padding: 3rem !important;
    text-align: center !important;
    border-radius: 12px !important;
    margin: 2rem 0 !important;
    transition: all 0.3s ease;
}

.shortcode-placeholder:hover {
    border-color: #667eea !important;
    background: #f0f4ff !important;
}

.shortcode-placeholder h3 {
    color: #6c757d !important;
    margin-bottom: 1rem !important;
    font-size: 1.5rem !important;
}

.shortcode-placeholder p {
    color: #6c757d !important;
    margin-bottom: 1rem !important;
}

.shortcode-placeholder code {
    background: #e9ecef !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    font-family: Consolas, Monaco, 'Courier New', monospace !important;
    font-size: 1rem !important;
    color: #495057 !important;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer widgets removed for clean design */

/* Footer Contact Information */
.footer-info {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-contact {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-align: center;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 200px;
    text-align: left;
}

.contact-icon {
    font-size: 1.2rem;
    margin-top: 0.2rem;
    opacity: 0.8;
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
    color: #d1d5db;
}

.contact-item a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.contact-item.address p {
    font-size: 0.95rem;
}

.contact-item.phone p,
.contact-item.fax p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Site Info */
.site-info {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.site-info p {
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-navigation {
    margin-top: 1rem;
}

.footer-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-menu a:hover {
    color: #60a5fa;
}

/* Entry Content */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.entry-title {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .offers-section {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-contact {
        padding: 1.5rem;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        min-width: auto;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .offers-title {
        font-size: 1.5rem;
    }
    
    .offers-section {
        padding: 1rem;
    }
    
    .shortcode-placeholder {
        padding: 2rem 1rem !important;
    }
}

/* Elementor Compatibility */
.elementor-widget-container {
    margin: 0;
}

.elementor-section-wrap {
    overflow: visible;
}

.elementor-location-header,
.elementor-location-footer {
    z-index: 1000;
}

/* Elementor Theme Builder Support */
.elementor-template-full-width .site-header,
.elementor-template-full-width .site-footer {
    display: none;
}

.elementor-page-title {
    display: none;
}

.elementor-default .elementor-kit-7 {
    --e-global-color-primary: #2563eb;
    --e-global-color-secondary: #667eea;
    --e-global-color-text: #333333;
    --e-global-color-accent: #764ba2;
}

/* Elementor Header & Footer Builder */
.elementor-location-header {
    position: relative;
    z-index: 999;
}

.elementor-location-footer {
    margin-top: auto;
}

/* Elementor Preview Mode */
.elementor-preview-mode .site-header,
.elementor-preview-mode .site-footer {
    display: none !important;
}

/* Elementor Canvas Template */
.elementor-template-canvas body {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-template-canvas .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Elementor Editor Styles */
.elementor-editor-active .site-header,
.elementor-editor-active .site-footer {
    pointer-events: none;
}

/* Responsive Elementor Support */
@media (max-width: 1024px) {
    .elementor-location-header .elementor-container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .elementor-location-header .elementor-section {
        padding: 10px 0;
    }
    
    .elementor-location-footer .elementor-section {
        padding: 20px 0;
    }
}

/* Admin Bar Compatibility */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Custom Logo */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .header-widgets,
    .footer-widgets {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .offers-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 