/*
Theme Name: ODS Child
Theme URI: https://ajanskurdu.com
Author: Antigravity
Author URI: https://ajanskurdu.com
Description: GeneratePress child theme specific for Ajans Kurdu portal (Jobs, Events, Clubs, Sponsorships).
Template: generatepress
Version: 1.0.0
Text Domain: ods-child
*/

/* ==========================================================================
   AJANS KURDU PORTAL STYLES (ODS-CHILD)
   ========================================================================== */

:root {
    --ak-primary: #FF3366;
    --ak-secondary: #8A2BE2;
    --ak-text-muted: #a0a0a5;
    --ak-border: rgba(0, 0, 0, 0.1);
    --ak-bg-card: #f9f9f9;
}

body.dark-theme,
html[data-theme="dark"] body {
    --ak-border: rgba(255, 255, 255, 0.08);
    --ak-bg-card: rgba(30, 30, 35, 0.7);
    --ak-text-muted: #a0a0a5;
}

/* --- BADGES (Rozetler) --- */
.ak-taxonomy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.ak-tax-badge {
    background: var(--ak-bg-card);
    color: inherit;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--ak-border);
    display: inline-flex;
    align-items: center;
}

.ak-status-expired {
    background: rgba(255, 51, 102, 0.1);
    color: #FF3366;
    border-color: rgba(255, 51, 102, 0.3);
}

/* --- CTA BUTTONS --- */
.ak-contact-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ak-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ak-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid var(--ak-border);
    transition: all 0.3s ease;
}

.ak-btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff !important;
}

.ak-btn-whatsapp:hover {
    background: #1ebc5a;
    transform: translateY(-2px);
}

.ak-btn-secondary {
    background: var(--ak-bg-card);
    color: inherit !important;
}

.ak-btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

/* --- SINGLE POST LAYOUT (Sol Yazı, Sağ Görsel) --- */
.single-jobs .inside-article,
.single-events .inside-article,
.single-clubs .inside-article,
.single-sponsorships .inside-article {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.ak-single-content {
    flex: 1 1 500px;
}

.ak-single-media {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 800px) {
    .ak-single-media {
        flex: 1 1 100%;
        order: -1; /* Görsel mobilde üstte çıksın */
    }
}

.ak-featured-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* --- COMPANY BUSINESS CARD --- */
.company-card {
    background: var(--ak-bg-card);
    border: 1px solid var(--ak-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.company-logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ak-primary), var(--ak-secondary));
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.company-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.company-desc {
    font-size: 0.9rem;
    color: var(--ak-text-muted);
    margin-bottom: 1rem;
}

.related-jobs-list {
    margin-top: 1.5rem;
    text-align: left;
    border-top: 1px solid var(--ak-border);
    padding-top: 1rem;
}

.related-jobs-list h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.related-jobs-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-jobs-list li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.related-jobs-list a {
    text-decoration: none;
}

/* --- PRE-FOOTER --- */
.ak-pre-footer {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.05), rgba(138, 43, 226, 0.05));
    border-top: 1px solid var(--ak-border);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.ak-pre-footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.ak-pre-footer h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.ak-ref-code-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--ak-bg-card);
    border: 1px dashed var(--ak-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-top: 1.5rem;
}

.ak-ref-code-box span {
    font-size: 0.9rem;
    color: var(--ak-text-muted);
}

.ak-ref-code-box strong {
    font-size: 1.4rem;
    color: var(--ak-primary);
    letter-spacing: 1px;
}

/* ==========================================================================
   PREMIUM LAYOUT & GLASSMORPHISM (Overrides)
   ========================================================================== */

body.dark-portal-theme {
    background-color: #0a0a0c;
    color: #f0f0f0;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--ak-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}
a:hover {
    color: #ff1a53;
}

.gradient-text {
    background: linear-gradient(135deg, var(--ak-primary), var(--ak-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Containers & GP Overrides */
#page, .site {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-content, .site-main {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ak-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ak-page-container {
    max-width: 800px;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Header */
.ak-premium-header {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ak-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

body.admin-bar .ak-premium-header {
    top: 32px;
}

.ak-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ak-brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ak-main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 2rem;
}

.ak-main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.ak-header-actions {
    flex-shrink: 0;
}

.ak-main-navigation li {
    position: relative;
    padding: 0.5rem 0;
}

.ak-main-navigation a {
    color: #f0f0f0;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    display: block;
}

.ak-main-navigation a:hover {
    color: var(--ak-primary);
}

/* Submenu (Dropdown) Styles */
.ak-main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 101;
}

.ak-main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ak-main-navigation .sub-menu li {
    padding: 0;
    width: 100%;
}

.ak-main-navigation .sub-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.ak-main-navigation .sub-menu li:last-child > a {
    border-bottom: none;
}

.ak-main-navigation .sub-menu a:hover {
    background: rgba(255, 51, 102, 0.08);
    color: #fff;
    padding-left: 1.8rem;
}

/* Multi-level Dropdowns (Submenu inside Submenu) */
.ak-main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 2px;
}

/* Hero Section */
.ak-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ak-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,51,102,0.15) 0%, rgba(10,10,12,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.ak-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.ak-hero-subtitle {
    font-size: 1.25rem;
    color: var(--ak-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.ak-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Grids & Cards */
.ak-grid-auto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .ak-grid-auto {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ak-grid-auto {
        grid-template-columns: 1fr;
    }
}

.ak-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    background: #131316;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ak-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-color: rgba(255, 51, 102, 0.5);
}

.ak-card-img-wrapper {
    position: relative;
    width: 100%;
    /* aspect-ratio kaldırıldı, görsel orijinal boyutunda (kırpılmadan) görünecek */
    overflow: hidden;
    background: #111; /* fallback background if image is transparent or loading */
}

.ak-card-image {
    width: 100%;
    height: auto; /* object-fit cover yerine height auto ile orijinal oranı koruyoruz */
    display: block;
    transition: transform 0.7s ease;
}

.ak-fallback-bg {
    background: linear-gradient(135deg, rgba(255,51,102,0.15), rgba(138,43,226,0.15));
    width: 100%;
    height: 100%;
}

.ak-card:hover .ak-card-image {
    transform: scale(1.08);
}

.ak-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--ak-primary), var(--ak-secondary));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ak-location-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.1);
}

.ak-card-content {
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ak-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.ak-card-title a {
    color: #fff;
    text-shadow: none;
}

.ak-taxonomy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ak-tax-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.ak-card-excerpt {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ak-card-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.ak-btn-primary {
    background: linear-gradient(135deg, var(--ak-primary), var(--ak-secondary));
    border: none;
    color: white !important;
}
.ak-btn-primary:hover {
    box-shadow: 0 5px 15px rgba(255,51,102,0.4);
    transform: translateY(-2px);
}

.ak-btn-secondary {
    background: #ffffff;
    color: #000000 !important;
    border: none;
    font-weight: 700;
}
.ak-btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.ak-btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.ak-loader {
    text-align: center;
    padding: 2rem 0;
    width: 100%;
    color: var(--ak-text-muted);
}

/* Archives & Pages */
.ak-archive-header, .ak-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 3rem;
}

.ak-archive-title, .ak-page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ak-page-featured-image img {
    border-radius: 16px;
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ak-page-content {
    font-size: 1.1rem;
    color: #ddd;
}
.ak-page-content h2, .ak-page-content h3 {
    color: #fff;
    margin-top: 2rem;
}

/* Footer */
.ak-premium-footer {
    background: #050505;
    padding-top: 4rem;
    border-top: 1px solid var(--ak-border);
}

.ak-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.ak-footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}
.ak-footer-brand p {
    color: var(--ak-text-muted);
}

.ak-footer-links h4, .ak-footer-social h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.ak-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ak-footer-links li {
    margin-bottom: 0.5rem;
}
.ak-footer-links a {
    color: var(--ak-text-muted);
}
.ak-footer-links a:hover {
    color: var(--ak-primary);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.social-icon {
    color: var(--ak-text-muted);
}
.social-icon:hover {
    color: var(--ak-primary);
}

.ak-footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--ak-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .ak-header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .ak-main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .ak-footer-container {
        grid-template-columns: 1fr;
    }
    .ak-hero-title {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   SINGLE POST LAYOUT (Kartvizit Tasarımı)
   ========================================================================== */
.single .inside-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 3rem !important;
    margin-top: 2.5rem;
    background: #0a0a0c !important;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.single .entry-meta {
    display: none !important;
}

.ak-single-content {
    display: flex;
    flex-direction: column;
}

.ak-single-content .entry-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #fff;
}

.ak-single-content .entry-content {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

.ak-single-content .entry-content h2,
.ak-single-content .entry-content h3 {
    color: #fff;
    margin-top: 2rem;
}

.single .entry-header {
    margin-top: 0 !important;
}

.single .entry-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.1;
    font-size: 2.5rem;
}

.ak-single-media {
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    padding-top: 0 !important;
    gap: 2rem;
}

.ak-featured-image img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Company / University Business Card */
.company-card {
    background: rgba(25, 25, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.company-logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--ak-primary), var(--ak-secondary));
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 80px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255,51,102,0.4);
}

.company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.company-desc {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.company-contact-list {
    text-align: left;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-contact-list div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ddd;
}

.company-contact-list i {
    color: var(--ak-primary);
    width: 20px;
    text-align: center;
}

.company-contact-list a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s;
}

.company-contact-list a:hover {
    color: #fff;
}

.related-jobs-list {
    margin-top: 2rem;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.ak-mini-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ak-mini-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s, transform 0.2s;
}

.ak-mini-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.ak-mini-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.ak-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ak-mini-info {
    display: flex;
    flex-direction: column;
}

.ak-mini-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.ak-mini-meta {
    font-size: 0.75rem;
    color: var(--ak-primary);
}

/* Featured Image Proportions & Hide Duplicate */
.ak-single-content .featured-image,
.ak-single-content .page-header-image-single,
.ak-single-content .post-image,
.inside-article > .featured-image {
    display: none !important;
}

.ak-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    aspect-ratio: 4 / 5;
}

.ak-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide Default Post Navigation (Sağ Sol Oku) */
.post-navigation {
    display: none !important;
}

.related-jobs-list h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
}

.related-jobs-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-jobs-list li {
    margin-bottom: 0.5rem;
}

.related-jobs-list a {
    color: var(--ak-text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.related-jobs-list a:hover {
    color: var(--ak-primary);
}

@media (max-width: 992px) {
    .single .inside-article {
        grid-template-columns: 1fr;
        padding: 1.5rem !important;
    }
}
