/*
 Theme Name:   Hello Elementor Child - TİMAD
 Theme URI:    http://localhost:8888/timad
 Description:  TİMAD - Trafik ve İş Kazası Mağdurları Koruma Derneği için özel child tema
 Author:       TİMAD
 Author URI:   http://localhost:8888/timad
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hello-elementor-child
*/

:root {
    --timad-primary: #1a5276;
    --timad-primary-light: #2471a3;
    --timad-primary-dark: #0e2f44;
    --timad-secondary: #e74c3c;
    --timad-secondary-light: #ec7063;
    --timad-secondary-dark: #c0392b;
    --timad-accent: #f39c12;
    --timad-accent-light: #f5b041;
    --timad-accent-dark: #d68910;
    --timad-text: #2c3e50;
    --timad-text-light: #5d6d7e;
    --timad-bg-light: #f8f9fa;
    --timad-bg-white: #ffffff;
    --timad-border: #d5dbdb;
}

/* =============================================
   GLOBAL
   ============================================= */
body {
    font-family: 'Noto Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--timad-text);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--timad-primary);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--timad-primary-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--timad-secondary);
}

/* =============================================
   TOPBAR
   ============================================= */
.timad-topbar {
    background-color: var(--timad-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.timad-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.timad-topbar-left,
.timad-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timad-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timad-topbar-item svg {
    flex-shrink: 0;
}

/* =============================================
   HEADER
   ============================================= */
.timad-header {
    background-color: var(--timad-primary) !important;
    padding: 0 !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.timad-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.timad-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.timad-logo-icon {
    flex-shrink: 0;
    line-height: 0;
}

.timad-brand-text .site-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.timad-brand-text .site-title a {
    color: #ffffff !important;
    text-decoration: none;
}

.timad-brand-text .site-description {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.75rem;
    margin: 2px 0 0;
    letter-spacing: 0.3px;
}

/* Navigation */
.timad-header .site-navigation {
    display: flex;
    align-items: center;
}

.timad-header .site-navigation ul.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.timad-header .site-navigation ul.menu > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 24px 16px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.2px;
}

.timad-header .site-navigation ul.menu > li > a:hover,
.timad-header .site-navigation ul.menu > li.current-menu-item > a {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--timad-accent);
}

/* Mobile toggle - hidden on desktop */
.timad-header .site-navigation-toggle-holder {
    padding: 8px;
    display: none;
}

.timad-header .site-navigation-dropdown {
    display: none;
}

.timad-header .site-navigation-toggle {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
}

.timad-header .site-navigation-toggle:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* Mobile dropdown */
.timad-header .site-navigation-dropdown ul.menu a {
    color: var(--timad-text) !important;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.entry-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 30px;
}

.site-main {
    padding-top: 0;
}

/* Buttons */
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    background-color: var(--timad-secondary) !important;
    color: #ffffff !important;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: var(--timad-secondary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--timad-primary) !important;
    border: 2px solid var(--timad-primary) !important;
}

.is-style-outline .wp-block-button__link:hover {
    background-color: var(--timad-primary) !important;
    color: #ffffff !important;
}

/* =============================================
   PAGE CONTENT CONTAINER
   ============================================= */
.site-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 40px 60px;
}

.site-main .page-header {
    margin-bottom: 10px;
}

.site-main .page-header .entry-title {
    font-size: 2.2em;
    color: var(--timad-primary);
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--timad-accent);
}

.site-main .page-content {
    background: var(--timad-bg-white);
    padding: 40px 45px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 25px;
}

/* Ana Sayfa - full width (elementor_header_footer template) */
.elementor-template-full-width .site-main,
.page-template-elementor_header_footer .site-main {
    max-width: none;
    padding: 0;
}

.elementor-template-full-width .page-content,
.page-template-elementor_header_footer .page-content {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-top: 0;
}

/* Cover/Hero */
.wp-block-cover {
    min-height: 450px !important;
    margin-bottom: 0 !important;
}

.wp-block-cover__inner-container {
    max-width: 800px;
}

/* Groups */
.wp-block-group.has-background {
    padding: 45px 35px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Columns */
.wp-block-columns {
    gap: 30px;
    margin-bottom: 40px;
}

.wp-block-column {
    padding: 28px;
    background: var(--timad-bg-white);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.wp-block-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Lists */
.entry-content ul,
.entry-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.entry-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Tables */
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.wp-block-table th {
    background-color: var(--timad-primary);
    color: #ffffff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-block-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--timad-border);
}

.wp-block-table tr:nth-child(even) td {
    background-color: var(--timad-bg-light);
}

.wp-block-table tr:hover td {
    background-color: #eaf2f8;
}

/* Separator */
.wp-block-separator {
    border-color: var(--timad-accent) !important;
    border-width: 2px;
    max-width: 80px;
    margin: 40px auto;
}

.wp-block-separator.is-style-wide {
    max-width: 100%;
}

/* Quote */
.wp-block-quote {
    border-left: 4px solid var(--timad-accent);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--timad-bg-light);
    border-radius: 0 10px 10px 0;
}

.wp-block-quote p {
    font-style: italic;
    color: var(--timad-text);
    font-size: 1.1em;
}

/* =============================================
   FOOTER
   ============================================= */
.timad-footer {
    background-color: var(--timad-primary-dark) !important;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 !important;
    margin-top: 60px;
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.timad-footer-main {
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timad-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.timad-footer h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--timad-accent);
    display: inline-block;
}

/* Footer brand */
.timad-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.timad-footer-brand span {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.timad-footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Footer links */
.timad-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timad-footer-links li {
    margin-bottom: 10px;
}

.timad-footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.timad-footer-links a:hover {
    color: var(--timad-accent) !important;
    padding-left: 5px;
}

/* Footer contact */
.timad-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.timad-footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--timad-accent);
    stroke: var(--timad-accent);
}

/* Footer bottom */
.timad-footer-bottom {
    padding: 20px 0;
}

.timad-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.timad-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* =============================================
   TÜZÜK PAGE
   ============================================= */
.page-template-default .entry-content h3 {
    border-bottom: 2px solid var(--timad-accent);
    padding-bottom: 8px;
    margin-top: 40px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .timad-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .timad-footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .timad-topbar-inner {
        justify-content: center;
        font-size: 12px;
        gap: 5px;
    }

    .timad-topbar-left,
    .timad-topbar-right {
        gap: 12px;
    }

    .timad-header .header-inner {
        padding: 0 15px;
        min-height: 60px;
    }

    .timad-header .site-navigation {
        display: none !important;
    }

    .timad-header .site-navigation-toggle-holder {
        display: flex !important;
    }

    .site-main {
        padding: 30px 20px 40px;
    }

    .site-main .page-content {
        padding: 25px 20px;
    }

    .site-main .page-header .entry-title {
        font-size: 1.6em;
    }

    .timad-header .site-navigation-dropdown {
        display: block;
    }

    .timad-brand-text .site-title {
        font-size: 1.2rem;
    }

    .timad-logo-icon svg {
        width: 36px;
        height: 36px;
    }

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

    .wp-block-columns {
        gap: 15px;
    }

    .wp-block-column {
        padding: 20px;
    }

    .timad-footer-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .timad-footer-main {
        padding: 35px 0 20px;
    }
}

@media (max-width: 480px) {
    .timad-topbar-left,
    .timad-topbar-right {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        align-items: center;
    }

    .timad-brand-text .site-description {
        display: none;
    }
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.timad-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.timad-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.timad-whatsapp-btn svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .timad-whatsapp-btn {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
    }

    .timad-whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* =============================================
   PAGE LOAD ANIMATION
   ============================================= */
.entry-content > * {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
