/* Team Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Team Section */
.team-section {
    background: #fff;
    padding: 100px 0;
    min-height: 100vh;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.team-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-title {
    color: #666;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.title-line {
    width: 80px;
    height: 1px;
    background-color: #ddd;
    margin: 0 auto 40px;
}

.team-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

/* Team Member Card */
.team-member {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.team-member:hover .member-photo img {
    filter: grayscale(0%);
}

.view-details-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none; /* Link alt çizgisini kaldırır */
    color: inherit; /* Renk özelliklerini devralır */
    box-sizing: border-box; /* Padding ve border'ı width/height'a dahil eder */
}

.view-details-btn:hover {
    transform: scale(1.1);
}

.view-details-btn:focus {
    outline: 2px solid #007bff; /* Klavye navigasyonu için focus indicator */
    outline-offset: 2px;
}

.view-details-btn:active {
    transform: scale(0.95); /* Tıklama efekti */
}

/* Member Info */
.member-info {
    margin-top: 20px;
}

.member-name {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-title {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 128, 0, 0.95);
;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    max-width: 1000px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    display: flex;
    min-height: 400px;
}

.modal-photo {
    flex: 1;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.modal-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #00BFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00BFFF;
    font-size: 12px;
    margin-top: 5px;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-header p {
    color: #666;
    font-size: 1rem;
}

.modal-description {
    flex: 1;
    margin-bottom: 30px;
}

.modal-description p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.twitter-btn {
    background: #333;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.twitter-btn:hover {
    background: #1da1f2;
}

/* Responsive Design */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .member-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 60px 0;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .member-photo {
        width: 120px;
        height: 120px;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .member-title {
        font-size: 0.8rem;
    }
    
    .modal-body {
        flex-direction: column;
        min-height: auto;
    }
    
    .modal-photo {
        height: 250px;
    }
    
    .modal-info {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* Changed from 1fr */
        gap: 20px;
    }
    
    .team-container {
        padding: 0 15px;
    }
    
    .team-description {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

.team-section{
    padding-top: 170px !important;
}

@media(max-width: 768px)
{
    .team-title{
        margin-top: 16%;
    }

    .modal-header {
        margin: 0px;
    }

    .team-section{
    padding-top: 90px !important;
    }
}



/** Modal Footer Stilleri */
.modal-footer {
    padding: 1rem;
    text-align: center;
}

.modal-footer .twitter-btn a { 
    background-color: #0077b5; 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease; 
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    text-decoration: none; 
}

.modal-footer .twitter-btn a:hover {
    background-color: #005e8f; /* Hover olduğunda hafif koyulaşma */
}

.modal-footer .twitter-btn a i {
    font-size: 1.2rem; /* LinkedIn ikon boyutu */
}

.modal-footer .twitter-btn a span {
    font-weight: 600; /* Yazıyı biraz daha belirgin yap */
}








/* ===========================
   ORG TREE (Hiyerarşik Ağaç)
   =========================== */
.org-tree-wrapper {
  overflow-x: auto;          /* geniş dallarda yatay kaydır */
  padding-bottom: 20px;
}

.org-tree {
  display: inline-block;     /* içeriğe göre genişlik */
  text-align: center;
  margin: 0 auto;
}

/* Dallar */
.org-tree ul {
  padding-top: 20px; 
  position: relative;
  padding-left: 0; 
}

.org-tree li {
  display: inline-block;
  vertical-align: top;
  list-style: none;
  position: relative;
  padding: 20px 10px 0 10px; /* üst boşluk: çizgi için */
}

/* Kardeşler arası üst çizgi */
.org-tree li::before, 
.org-tree li::after {
  content: '';
  position: absolute; 
  top: 0;
  border-top: 2px solid #e5ece7;   /* tema ile uyumlu açık yeşil/grimsi */
  width: 50%;
  height: 20px;
}

.org-tree li::before { right: 50%; }
.org-tree li::after  { left:  50%; }

/* Tek çocuksa çizgi olmasın */
.org-tree li:only-child::before,
.org-tree li:only-child::after { display: none; }
.org-tree li:only-child { padding-top: 0; }

/* İlk ve son çocukta dış çizgiyi kaldır */
.org-tree li:first-child::before { border: 0 none; }
.org-tree li:last-child::after  { border: 0 none; }

/* Alt dala inen dikey çizgi */
.org-tree ul ul::before {
  content: '';
  position: absolute; 
  top: 0; 
  left: 50%;
  border-left: 2px solid #e5ece7;
  width: 0; 
  height: 20px;
}

/* Ağaç görünümünde kartları biraz küçültelim */
.org-tree .team-member .member-photo {
  width: 120px;
  height: 120px;
}
.org-tree .member-name { font-size: 1rem; }
.org-tree .member-title { font-size: .85rem; }

/* Mobil uyarlama */
@media (max-width: 768px) {
  .org-tree .team-member .member-photo { width: 100px; height: 100px; }
  .org-tree li { padding: 15px 6px 0 6px; }
}
@media (max-width: 480px) {
  .org-tree .member-name { font-size: .95rem; }
  .org-tree .member-title { font-size: .8rem; }
}
