﻿


/* ==========================================================
   ANKAVO COMMUNITY
========================================================== */
@import url("headers/iconmenu.css");
@import url("sliders/news.css");
@import url("footers/minimal.css");
@import url("pages/page-list.css");
@import url("pages/page-detail.css");
@import url("pages/contact.css");
@import url("responsive.css");

/* ==========================================================
   ANKAVO COMMUNITY
   GENERAL
========================================================== */

.community-main {
    min-height: 60vh;
}


/* ==========================================================
   HOME CONTENT COLUMNS
   HABERLER - ETKİNLİKLER - DUYURULAR
========================================================== */

.community-content-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    overflow: hidden;
}


/* ==========================================================
   CARD HEADER
========================================================== */

.community-content-card-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.community-content-card-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .community-content-card-title > i {
        flex: 0 0 auto;
        color: var(--primary-color);
        font-size: 29px;
        line-height: 1;
    }

    .community-content-card-title h2 {
        margin: 0;
        color: var(--secondary-color);
        font-size: 19px;
        font-weight: 700;
        line-height: 1.2;
        text-transform: uppercase;
    }

.community-content-card-header-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: var(--transition);
}

    .community-content-card-header-link i {
        font-size: 17px;
        transition: var(--transition);
    }

    .community-content-card-header-link:hover {
        color: var(--primary-hover-color);
    }

        .community-content-card-header-link:hover i {
            transform: translateX(3px);
        }


/* ==========================================================
   CARD BODY
========================================================== */

.community-content-card-body {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}


/* ==========================================================
   CARD FOOTER
========================================================== */

.community-content-card-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border-color);
}

    .community-content-card-footer .ank-btn {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
    }


/* ==========================================================
   NEWS LIST
========================================================== */

.community-news-list-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
    transition: var(--transition);
}

    .community-news-list-item:last-child {
        border-bottom: 0;
    }

    .community-news-list-item:hover {
        transform: translateX(3px);
    }

.community-news-list-image {
    width: 104px;
    height: 74px;
    display: block;
    border-radius: var(--radius-md);
    background: var(--surface-soft-color);
    overflow: hidden;
}

    .community-news-list-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .35s ease;
    }

.community-news-list-item:hover .community-news-list-image img {
    transform: scale(1.04);
}

.community-news-list-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

    .community-news-list-content time {
        color: var(--text-light-color);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
    }

    .community-news-list-content strong {
        color: var(--secondary-color);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
    }

    .community-news-list-content > span {
        display: -webkit-box;
        color: var(--text-light-color);
        font-size: 12px;
        font-weight: 400;
        line-height: 1.55;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }


/* ==========================================================
   EVENT TABS
========================================================== */

.community-event-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.community-event-tab {
    position: relative;
    min-height: 48px;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    color: var(--text-light-color);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .community-event-tab::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 2px;
        background: var(--primary-color);
        transform: scaleX(0);
        transition: var(--transition);
    }

    .community-event-tab:hover,
    .community-event-tab.is-active {
        color: var(--primary-color);
    }

        .community-event-tab.is-active::after {
            transform: scaleX(1);
        }


/* ==========================================================
   EVENT LIST
========================================================== */

.community-event-list-item {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
    transition: var(--transition);
}

    .community-event-list-item:last-child {
        border-bottom: 0;
    }

    .community-event-list-item:hover {
        transform: translateX(3px);
    }

.community-event-date {
    width: 66px;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    border-radius: var(--radius-md);
    background: linear-gradient( 180deg, var(--primary-color), var(--primary-dark-color) );
    color: var(--text-white-color);
    text-align: center;
}

    .community-event-date strong {
        font-size: 26px;
        font-weight: 700;
        line-height: 1;
    }

    .community-event-date span {
        margin-top: 4px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
    }

    .community-event-date small {
        margin-top: 3px;
        font-size: 10px;
        font-weight: 500;
        line-height: 1;
    }

.community-event-list-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .community-event-list-content > strong {
        color: var(--secondary-color);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
    }

    .community-event-list-content > span:not(.community-event-meta) {
        display: -webkit-box;
        color: var(--text-light-color);
        font-size: 12px;
        line-height: 1.5;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

.community-event-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
}

    .community-event-meta > span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: var(--text-light-color);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
    }

    .community-event-meta i {
        color: var(--primary-color);
        font-size: 14px;
    }

.community-event-arrow {
    color: var(--primary-color);
    font-size: 22px;
    transition: var(--transition);
}

.community-event-list-item:hover .community-event-arrow {
    transform: translateX(3px);
}


/* ==========================================================
   ANNOUNCEMENT LIST
========================================================== */

.community-announcement-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
    transition: var(--transition);
}

    .community-announcement-item:last-child {
        border-bottom: 0;
    }

    .community-announcement-item:hover {
        transform: translateX(3px);
    }

.community-announcement-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft-color);
    color: var(--primary-color);
}

    .community-announcement-icon i {
        font-size: 29px;
        line-height: 1;
    }

    .community-announcement-icon.is-orange {
        background: #fff1e8;
        color: #f97316;
    }

    .community-announcement-icon.is-green {
        background: #eaf8ef;
        color: #16a34a;
    }

    .community-announcement-icon.is-red {
        background: var(--primary-soft-color);
        color: var(--primary-color);
    }

.community-announcement-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

    .community-announcement-content strong {
        color: var(--secondary-color);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
    }

    .community-announcement-content > span {
        display: -webkit-box;
        color: var(--text-light-color);
        font-size: 12px;
        line-height: 1.55;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .community-announcement-content time {
        color: var(--text-light-color);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
    }


/* ==========================================================
   EMPTY STATE
========================================================== */

.community-content-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-light-color);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.community-event-range {
    color: var(--text-light-color);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================
   HOME ACTION CARDS
========================================================== */

.community-home-action-card {
    position: relative;
    min-width: 0;
    min-height: 260px;
    display: flex;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--secondary-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
}


/* ==========================================================
   CARD COLORS
========================================================== */

.community-home-member-card {
    background: linear-gradient( 120deg, var(--secondary-dark-color), var(--secondary-color) );
}

.community-home-announcement-card {
    background: linear-gradient( 120deg, var(--primary-dark-color), var(--primary-color) );
}


/* ==========================================================
   CONTENT
========================================================== */

.community-home-action-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 38px;
}


/* ==========================================================
   TEXT
========================================================== */

.community-home-action-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.community-home-action-label {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .12);
    color: var(--text-white-color);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.community-home-action-text h2 {
    margin: 0;
    color: var(--text-white-color);
    font-size: clamp(25px, 2vw, 34px);
    font-weight: 700;
    line-height: 1.2;
}

.community-home-action-text h3 {
    margin: 0;
    color: var(--text-white-color);
    font-size: clamp(20px, 1.55vw, 27px);
    font-weight: 700;
    line-height: 1.3;
}

.community-home-action-text p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}


/* ==========================================================
   BUTTONS
========================================================== */

.community-home-action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}


/* ==========================================================
   IMAGE
========================================================== */

.community-home-action-image {
    width: 170px;
    height: 170px;
    flex: 0 0 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

    .community-home-action-image img {
        width: 100%;
        height: 100%;
        display: block;
    }

/* ==========================================================
   MEMBER LOGO
========================================================== */

.community-home-member-card .community-home-action-image {
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

    .community-home-member-card .community-home-action-image img {
        width: 170px;
        height: 170px;
        object-fit: contain;
    }


/* ==========================================================
   ANNOUNCEMENT IMAGE
========================================================== */

.community-home-announcement-card .community-home-action-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.20);
}

    .community-home-announcement-card .community-home-action-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* ==========================================================
   ANNOUNCEMENT META
========================================================== */

.community-home-announcement-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

    .community-home-announcement-meta i {
        font-size: 17px;
        line-height: 1;
    }
