/*
Theme Name: Profatura
Theme URI: https://flatisler.com
Author: flatişler
Author URI: https://flatisler.com
Description: Profesyonel E-Fatura ve E-0mza servisi için özel olarak tasarlanmış WordPress teması. WooCommerce destği ile tam entegre.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profatura

Profatura WordPress Theme, Copyright 2025 flatisler
Profatura is distributed under the terms of the GNU GPL
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 - Theme Imports
2.0 - WordPress Core Styles
3.0 - Custom Theme Styles
4.0 - WooCommerce Styles
5.0 - Responsive Styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 - Theme Imports
--------------------------------------------------------------*/
/* Bootstrap, FontAwesome, and template styles will be enqueued via functions.php */

/*--------------------------------------------------------------
2.0 - WordPress Core Styles
--------------------------------------------------------------*/

/* WordPress Alignment Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/*--------------------------------------------------------------
3.0 - Custom Theme Styles
--------------------------------------------------------------*/

/* Profatura Brand Colors */
:root {
    --profatura-primary: #2E3B70;
    --profatura-secondary: #1B7F5C;
    --profatura-accent: #FDB913;
    --profatura-light: #F5F5F5;
    --profatura-dark: #1A1A1A;
    --profatura-green: #2D8B5F;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* WordPress Admin Bar Fix */
.admin-bar header.topnav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar header.topnav {
        top: 46px;
    }
}

/* WordPress Post/Page Content */
.entry-content {
    margin-top: 2rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 0rem;
    margin-bottom: 1rem;
    color: var(--profatura-primary);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* WordPress Navigation Menu Styles */
.main-navigation {
    clear: both;
    display: block;
    width: 100%;
}

.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation ul ul {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    float: left;
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 99999;
}

.main-navigation ul ul ul {
    left: -999em;
    top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
    left: 100%;
}

.main-navigation ul ul a {
    width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    left: auto;
}

.main-navigation li {
    float: left;
    position: relative;
}

.main-navigation a {
    display: block;
    text-decoration: none;
}

/* WordPress Widgets */
.widget {
    margin: 0 0 2rem;
}

.widget select {
    max-width: 100%;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
}

/* WordPress Sticky Posts */
.sticky {
    display: block;
}

/* WordPress Gallery */
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
4.0 - WooCommerce Styles
--------------------------------------------------------------*/

/* WooCommerce compatibility */
.woocommerce-page .entry-title {
    display: none;
}

.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 2rem;
    color: #666;
}

.woocommerce div.product {
    margin-bottom: 2rem;
}

.woocommerce div.product .product_title {
    color: var(--profatura-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--profatura-green);
    font-size: 2rem;
    font-weight: 700;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--profatura-green);
    color: #fff;
    border-radius: 30px;
    padding: 12px 30px;
    border: none;
    transition: all 0.3s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--profatura-secondary);
    transform: translateY(-2px);
}

/* WooCommerce Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

.woocommerce-message {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.woocommerce-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.woocommerce-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/*--------------------------------------------------------------
5.0 - Responsive Styles
--------------------------------------------------------------*/

@media (max-width: 768px) {
    .admin-bar header.topnav {
        top: 0;
    }

    .entry-content {
        padding: 0 15px;
    }

    .woocommerce div.product .product_title {
        font-size: 1.8rem;
    }

    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .woocommerce div.product .product_title {
        font-size: 1.5rem;
    }

    .gallery-columns-2 .gallery-item,
    .gallery-columns-3 .gallery-item,
    .gallery-columns-4 .gallery-item,
    .gallery-columns-5 .gallery-item,
    .gallery-columns-6 .gallery-item,
    .gallery-columns-7 .gallery-item,
    .gallery-columns-8 .gallery-item,
    .gallery-columns-9 .gallery-item {
        max-width: 100%;
    }
}
