/* Frontend styles for Rawcut Team */

/* Team Filters */
.rawcut-team-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.team-filter-item {
    position: relative;
}

.team-search-input {
    width: 100%;
    padding: 14px 40px 14px 24px !important;
    border: 1px solid #000 !important;
    border-radius: 30px !important;
    font-size: 17px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>') no-repeat right 24px center;
    background-size: 20px;
    background-color: #fff !important;
    color: #000 !important;
    font-weight: 300 !important;
}

.team-search-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 17, 170, 0.1);
}

.team-search-input::placeholder {
    color: #000;
}

.team-filter-select {
    display: none;
}

#team-practice-filter {
    z-index: 101 !important;
}

@media (max-width: 1024px) {
    .rawcut-team-filters {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .team-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .rawcut-team-filters {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }
}

/* Team Grid */
.rawcut-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.rawcut-team-card {
    overflow: hidden;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 690px) {
    .rawcut-team-card {
        margin-bottom: 0 !important;
    }
}

.rawcut-team-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.rawcut-team-card.hidden {
    display: none !important;
}

.rawcut-team-card:hover .team-card-content {
    transform: translateX(10px);
}

.team-card-image {
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

@media (max-width: 690px) {
    .team-card-image img {
        margin-bottom: 0 !important;
    }
}

.rawcut-team-card .team-card-content {
    transition: all 0.3s ease;
}

.team-card-content h3 {
    margin: 0 0 5px 0!important;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.team-card-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

@media (max-width: 690px) {
    .team-card-content h3 {
        line-height: 1 !important;
    }
    .team-card-content h3 a {
        font-size: 16px !important;
    }
    .team-card-position {
        font-size: 14px !important;
    }
}

.team-card-content h3 a:hover {
    color: #333;
}

.team-card-position {
    margin: 0;
    color: #797979;
    font-size: 16px;
    line-height: 1.2;
}

.team-card-branch {
    margin: 5px 0 0 0;
    color: #999;
    font-size: 13px;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .rawcut-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rawcut-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .rawcut-team-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Team Profile */
.rawcut-team-profile {
    width: 100%;
    padding: 0;
    background: #fff;
}

/* Header Section */
.team-profile-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    background: #fff;
    align-items: start;
    overflow: visible; /* Sticky için gerekli */
}

.team-profile-image-wrapper {
    position: -webkit-sticky; /* Safari için */
    position: sticky;
    top: 160px; /* Adjusted for site header */
    align-self: start; /* Grid içinde sticky için gerekli */
}

.team-profile-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.team-profile-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.team-profile-summary {
    margin-top: 50px;
    position: relative;
    padding-left: 25px;
    padding-right: 25px;
}

.team-profile-summary:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 96%;
    background: #e6e6e6;
}

.team-profile-summary span {
    font-weight: 700;
}

.team-profile-header-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 100px;
}

.team-profile-title-section {
    padding-bottom: 20px;
    display: flex;
    gap: 20px;
}

.team-profile-title-section > div:nth-child(1) {
    width: 50%;
}
.team-profile-title-section > div:nth-child(2) {
    width: 50%;
}

@media (max-width: 768px) {
    .team-profile-title-section {
        flex-direction: column;
    }
    .team-profile-title-section > div {
        width: 100% !important;
    }
    .team-profile-header-content {
        margin-top: 25px;
        gap: 0;
    }
    .team-profile-title-section .team-profile-contact-column {
        flex-direction: column;
        gap: 12px;
    }
    .team-profile-contact-column > div {
        padding-left: 0 !important;
        position: static;
    }
    .team-profile-contact-column > div:before {
        display: none;
    }
    .team-profile-contact-column > div:nth-child(2) {
        padding-right: 0 !important;
        margin-left: 0 !important;
        text-align: left !important;
    }
}
.team-profile-title-section

.team-profile-contact-column {
    display: flex;
    gap: 12px;
}

.team-profile-contact-column > div {
    padding-left: 40px;
    position: relative;
}

.team-profile-contact-column > div:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 90%;
    background: #e6e6e6;
}

.team-profile-contact-column > div:first-child {
    flex: 1;
}

.team-profile-contact-column > div:nth-child(2) {
    padding-right: 0;
    margin-left: auto;
    flex-shrink: 0;
    text-align: left;
}

.team-profile-name {
    font-weight: 400;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.2;
    font-size: 36px !important;
}

.team-profile-position {
    color: #666;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .team-profile-position {
        padding: 0 !important;
        margin: 0 !important;
    }
}

.contact-card {
    display: flex;
    gap: 8px;
    padding: 0;
    align-items: baseline;
}

.contact-card img {
    width: 16px;
    height: 16px;
    color: #666;
    flex-shrink: 0;
}

.contact-card a,
.contact-card span {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: #b11656;
}

/* Action Buttons */
.team-profile-actions {
    display: flex;
    flex-direction: column;
}

.team-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.team-action-btn:hover {
    color: #b11656;
}

/* Share Dropdown Styles */
.team-action-share-wrapper {
    position: relative;
    display: inline-block;
}

.team-action-share {
    cursor: pointer;
    user-select: none;
    z-index: 999;
    position: relative;
}

.team-share-dropdown {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
    min-width: 150px;
    padding: 8px 0;
}

.team-action-share-wrapper.open .team-share-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.team-share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 15px;
    font-weight: 400;
}

.team-share-item:hover {
    background-color: #f5f5f5;
    color: #333;
}

.team-share-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #fff;
    background-color: #000;
    padding: 6px;
    border-radius: 6px;
    box-sizing: content-box;
}

.team-share-item span {
    flex: 1;
}

/* Close dropdown when clicking outside */
.team-action-share-wrapper.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

/* Content Section */
.team-profile-content {
    max-width: 100%;
}

.team-profile-section {
    margin-bottom: 25px;
}

.team-profile-section h2 {
    font-size: 28px !important;
    border-top: 1px solid #E6E6E6;
    border-bottom: 1px solid #E6E6E6;
    margin-bottom: 24px;
    padding: 12px 0;
    position: relative;
}

@media (max-width: 690px) {
    .team-profile-section.collapsed:not(:last-child) {
        margin-bottom: 0 !important;
    }
    .team-profile-section.collapsed:not(:last-child) h2 {
        margin-bottom: 0 !important;
        border-bottom: 0 !important;
    }
    .team-profile-section h2 {
        font-size: 16px !important;
        cursor: pointer;
        user-select: none;
        padding-right: 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .team-profile-section h2::before {
        content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10.086" height="6.086" viewBox="0 0 10.086 6.086"><g transform="translate(611.651 -309.389) rotate(90)"><path d="M0,0V7.106" transform="translate(314.945 607.121) rotate(135)" fill="none" stroke="%23000" stroke-width="1.5"/><path d="M0,7.106V0" transform="translate(309.92 611.121) rotate(-135)" fill="none" stroke="%23000" stroke-width="1.5"/></g></svg>');
        display: inline-block;
        flex-shrink: 0;
        margin-left: 10px;
        background: none !important;
        width: 10px !important;
        margin-top: 0 !important;
        position: absolute !important;
        right: 0 !important;
    }
    
    .team-profile-section.collapsed h2::before {
        transform: rotate(180deg);
    }
    
    .team-profile-section.collapsed .team-section-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
    }
    
    .team-section-content {
        max-height: 5000px;
        opacity: 1;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    }
}

@media (min-width: 691px) {
    .team-profile-section h2 {
        font-size: 28px !important;
    }
}

.team-profile-divider {
    height: 1px;
    background: #E6E6E6;
    margin: 40px 0;
    width: 100%;
}

.team-profile-section h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 85px;
    height: 4px;
    background: #b11656;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .team-profile-section h2:after {
        display: none !important;
    }
}

.team-profile-section span {
    font-weight: 500;
}

.team-profile-section a:hover {
    color: #b11656;
}

.section-title {
    font-weight: 400;
    color: #000;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
}

/* Lists */
.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 14px;
}

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

.section-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.section-list-inline li {
    border: none;
    padding: 0;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
}

.article-card {
    background: #fff;
    padding: 24px 28px;
    transition: background 0.2s ease;
}

.article-card:hover {
    background: #f9f9f9;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-title {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.article-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #333;
}

.article-date {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Related Posts Grid */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 25px;
    column-gap: 50px;
}

.related-post-card {
    background: #fff;
    padding-bottom: 25px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #e5e5e5;
}

.related-post-card:hover {

}

.related-post-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-post-title {
    margin: 0;
    font-size: 17.5px;
    font-weight: 300;
    line-height: 1.5;
}

.related-post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

@media (max-width: 690px) {
    .related-post-title a {
        font-size: 16px !important;
    }
}

.related-post-title a:hover {
    color: #333;
}

.related-post-meta {
    display: flex;
    gap: 8px;
    font-size: 16.5px !important;
    font-weight: 300 !important;
    color: #000;
    font-weight: 400 !important;
}

.related-post-category a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400 !important;
}

.related-post-category a:hover {
    color: #666;
}

.related-post-date {
    font-weight: 400 !important;
}

.related-post-type {
    font-weight: 400 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-profile-header,
    .team-profile-content {
        padding: 40px;
    }
    
    .articles-grid,
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .team-profile-header {
        display: block !important;
        grid-template-columns: 1fr;
        padding: 0 !important;
    }
    
    .team-profile-image-wrapper {
        position: relative;
        top: 0;
    }
    
    .team-profile-content {
        padding: 0;
    }
    
    .team-profile-name {
        font-size: 26px !important;
    }
    
    .team-profile-actions {
        flex-direction: column;
    }
    
    .team-action-btn {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .team-profile-info h1 {
        font-size: 26px;
    }
    
    .team-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .rawcut-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 2fr));
        gap: 20px;
    }
}

/* Custom Dropdown Select Styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
    z-index: 100;
}

.custom-select-wrapper .select-header {
    padding: 11px 24px 11px 24px !important;
    border: 1px solid #000;
    border-radius: 30px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px !important;
    color: #333;
    line-height: 1.8;
}

.custom-select-wrapper .select-header .header-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-wrapper .dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #000;
    display: inline-block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.custom-select-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-select-wrapper .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    border: 1px solid #000;
    border-top: none;
    border-radius: 0;
    margin-top: -1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    overflow-y: scroll;
    margin-left: 0;
    pointer-events: auto;
}

.custom-select-wrapper.open .dropdown-list {
    display: block;
    border-width: 0.5px;
}

.custom-select-wrapper.open .select-header {
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    z-index: 1001;
    position: relative;
    border-width: 0.5px;
}

.custom-select-wrapper .dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.custom-select-wrapper .dropdown-list::-webkit-scrollbar-thumb {
    background-color: #c4c4c4;
    border-radius: 10px;
}

.custom-select-wrapper .dropdown-list li {
    padding: 8px 24px;
    cursor: pointer;
    font-size: 16px;
    color: #656565;
    transition: background-color 0.2s ease;
}

.custom-select-wrapper .dropdown-list li:hover {
    background-color: #f0f0f0;
}

.custom-select-wrapper .dropdown-list li:active {
    background-color: #e0e0e0;
}

.custom-select-wrapper .dropdown-list li.reset-option {
    display: none !important;
    color: #000;
}

.custom-select-wrapper.selected .dropdown-list li.reset-option {
    display: block !important;
}
