/* ==========================================================================
    EGT System Tema - Main CSS
    ========================================================================== */

/* Bootstrap overrides */
body {
    background-color: var(--egt-bg-secondary);
}

.page-item.active .page-link {
    background-color: var(--egt-primary-color);
    border-color: var(--egt-primary-color);
}

.page-link {
    color: var(--egt-primary-color);
}

.page-link:hover {
    color: var(--egt-primary-hover);
}

/* Footer Widgets */
.egt-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 1.5rem;
    background: var(--egt-bg-color);
    border-top: 1px solid var(--egt-border-color);
}

.egt-footer-widget h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--egt-text-color);
}

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

.egt-footer-widget ul li {
    margin-bottom: 0.5rem;
}

.egt-footer-widget ul li a {
    color: var(--egt-text-light);
    font-size: 0.875rem;
}

.egt-footer-widget ul li a:hover {
    color: var(--egt-primary-color);
}

/* Sidebar Widgets */
.egt-widget {
    margin-bottom: 1.5rem;
}

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

.egt-widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--egt-border-color);
}

.egt-widget ul li:last-child {
    border-bottom: none;
}

/* Pagination */
.egt-pagination {
    margin-top: 2rem;
}

/* User avatar */
.egt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Content article */
.egt-article {
    background: var(--egt-bg-color);
    border-radius: var(--egt-radius-lg);
    box-shadow: var(--egt-shadow);
    border: 1px solid var(--egt-border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.egt-article-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.egt-article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.egt-article:hover .egt-article-thumbnail img {
    transform: scale(1.05);
}

.egt-article-body {
    padding: 1.5rem;
}

.egt-article-body h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.egt-article-body h2 a {
    color: var(--egt-text-color);
}

.egt-article-body h2 a:hover {
    color: var(--egt-primary-color);
}

.egt-article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--egt-text-light);
    margin-bottom: 0.75rem;
}

.egt-article-meta i {
    margin-right: 0.375rem;
}

.egt-article-body p {
    color: var(--egt-text-light);
    line-height: 1.7;
}

/* Blog single */
.egt-article-full {
    background: var(--egt-bg-color);
    border-radius: var(--egt-radius-lg);
    box-shadow: var(--egt-shadow);
    border: 1px solid var(--egt-border-color);
    overflow: hidden;
}

.egt-article-full .egt-article-body {
    padding: 2rem;
}

.egt-article-full .egt-article-body h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Comments */
.egt-comments {
    margin-top: 2rem;
}

.egt-comment-list {
    list-style: none;
    padding: 0;
}

.egt-comment {
    background: var(--egt-bg-color);
    border-radius: var(--egt-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--egt-border-color);
}

.egt-comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.egt-comment-author .fn {
    font-weight: 600;
    font-size: 0.9375rem;
}

.egt-comment-meta {
    font-size: 0.75rem;
    color: var(--egt-text-light);
}

/* Search */
.egt-search-form {
    display: flex;
    gap: 0.5rem;
}

.egt-search-form input[type="search"] {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--egt-border-color);
    border-radius: var(--egt-radius);
    font-size: 0.875rem;
}

.egt-search-form button {
    padding: 0.5rem 1rem;
    background: var(--egt-primary-color);
    color: var(--egt-button-text-color);
    border: none;
    border-radius: var(--egt-radius);
    cursor: pointer;
}

/* 404 */
.egt-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.egt-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--egt-primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.egt-404 p {
    font-size: 1.125rem;
    color: var(--egt-text-light);
    margin-bottom: 2rem;
}

/* Responsive helpers */
.egt-mobile-only {
    display: none;
}

/* Print */
@media print {
    .egt-sidebar,
    .egt-sidebar-toggle,
    .egt-header,
    .egt-footer,
    .egt-overlay {
        display: none !important;
    }
}

/* Animation */
@keyframes egtFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.egt-fade-in {
    animation: egtFadeIn 0.3s ease forwards;
}

/* Breadcrumbs */
.egt-breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--egt-text-light);
}

.breadcrumb-list li a {
    color: var(--egt-primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list li a:hover {
    color: var(--egt-primary-hover);
}

.breadcrumb-list .separator {
    color: var(--egt-border-color);
    font-size: 0.75rem;
}

.breadcrumb-list .current {
    font-weight: 600;
    color: var(--egt-text-color);
}

/* Live Search Dropdown */
.egt-header-left {
    position: relative;
}

.egt-search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: var(--egt-bg-color);
    border: 1px solid var(--egt-border-color);
    border-radius: var(--egt-radius);
    box-shadow: var(--egt-shadow-lg);
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.egt-search-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--egt-border-color);
    transition: background 0.2s ease;
}

.egt-search-item:last-child {
    border-bottom: none;
}

.egt-search-item:hover {
    background: var(--egt-bg-secondary);
}

.egt-search-item-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.egt-search-item-title {
    font-weight: 600;
    color: var(--egt-text-color);
    font-size: 0.9rem;
}

.egt-search-item-type {
    font-size: 0.7rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--egt-primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.egt-search-item-excerpt {
    font-size: 0.8rem;
    color: var(--egt-text-light);
    line-height: 1.4;
}

.egt-search-no-result {
    padding: 20px;
    text-align: center;
    color: var(--egt-text-light);
    font-size: 0.875rem;
}

/* Dashboard Layout */
.egt-dashboard-container {
    padding: 2rem 0;
}

.egt-welcome-banner {
    background: linear-gradient(135deg, var(--egt-primary-color), var(--egt-secondary-color));
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--egt-radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: var(--egt-shadow-md);
}

.egt-welcome-content h1 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.egt-welcome-content p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 1.1rem;
}

.egt-welcome-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.egt-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.egt-dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.egt-dashboard-card {
    background: var(--egt-bg-color);
    border-radius: var(--egt-radius-lg);
    border: 1px solid var(--egt-border-color);
    box-shadow: var(--egt-shadow);
    overflow: hidden;
}

.egt-dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.egt-dashboard-list li {
    border-bottom: 1px solid var(--egt-border-color);
    transition: background 0.2s ease;
}

.egt-dashboard-list li:last-child {
    border-bottom: none;
}

.egt-dashboard-list li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    gap: 1rem;
}

.egt-dashboard-list li a:hover {
    background: var(--egt-bg-secondary);
}

.egt-list-date {
    font-size: 0.75rem;
    color: var(--egt-text-lighter);
    background: var(--egt-bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

.egt-list-title {
    font-size: 0.9rem;
    color: var(--egt-text-color);
    font-weight: 500;
}

.egt-empty-msg {
    padding: 2rem;
    text-align: center;
    color: var(--egt-text-light);
}

.egt-quick-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.egt-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--egt-bg-secondary);
    color: var(--egt-text-color);
    text-decoration: none;
    border-radius: var(--egt-radius);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.egt-quick-link:hover {
    background: var(--egt-bg-color);
    border-color: var(--egt-primary-color);
    color: var(--egt-primary-color);
    transform: translateX(5px);
}

.egt-quick-link i {
    width: 20px;
    text-align: center;
}

.egt-quick-link.admin {
    background: rgba(37, 99, 235, 0.1);
    color: var(--egt-primary-color);
}

.egt-quick-link.admin:hover {
    background: var(--egt-primary-color);
    color: #fff;
}

@media (max-width: 992px) {
    .egt-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .egt-dashboard-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
    v1.3.0 — Back to Top Button
    ========================================================================== */
.egt-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--egt-primary-color);
    color: #fff;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.egt-back-to-top:hover {
    background: var(--egt-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.egt-back-to-top:focus-visible {
    outline: 3px solid var(--egt-primary-color);
    outline-offset: 2px;
}
.egt-back-to-top-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
    v1.3.0 — Cookie Consent Banner
    ========================================================================== */
.egt-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--egt-bg-color);
    border-top: 1px solid var(--egt-border-color);
    padding: 1rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.egt-cookie-consent-visible {
    transform: translateY(0);
}
.egt-cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.egt-cookie-consent-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--egt-text-color);
    flex: 1;
    min-width: 200px;
}
.egt-cookie-consent-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.egt-cookie-consent-buttons .button {
    font-size: 0.8125rem;
    padding: 0.4rem 1rem;
}

/* ==========================================================================
    v1.3.0 — AJAX Loading Overlay
    ========================================================================== */
.egt-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}
.egt-loading-active {
    opacity: 1;
    visibility: visible;
}
.egt-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: egt-spin 0.8s linear infinite;
}
@keyframes egt-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
    v1.3.0 — Sosyal Paylaşım Butonları
    ========================================================================== */
.egt-social-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--egt-border-color);
}
.egt-social-share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--egt-text-color);
    margin-right: 0.5rem;
}
.egt-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}
.egt-share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}
.egt-share-facebook { background: #1877f2; }
.egt-share-twitter { background: #1da1f2; }
.egt-share-linkedin { background: #0a66c2; }
.egt-share-whatsapp { background: #25d366; }
.egt-share-facebook:hover { background: #1664d9; }
.egt-share-twitter:hover { background: #1a94da; }
.egt-share-linkedin:hover { background: #0954a0; }
.egt-share-whatsapp:hover { background: #1fbf5e; }

/* ==========================================================================
    v1.3.0 — Accessibility Improvements
    ========================================================================== */
.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;
    width: 1px;
    word-wrap: normal !important;
}
.egt-skip-link:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: fixed;
    width: auto;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--egt-primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    z-index: 100000;
    text-decoration: none;
    font-weight: 600;
}
:focus-visible {
    outline: 2px solid var(--egt-primary-color);
    outline-offset: 2px;
}
