/* overview.css */
.overview {
    background-color: var(--white-color);
    margin: 0;
    padding: 0;

    .dashboard-widget {
        margin-top: 1rem;
        padding: 20px;
        border-radius: 10px;
        background-color: var(--white-color);
        color: var(--accent-color);
    }
    
    .profile-container {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        /* padding: 1rem; */
        min-height: 250px; 
    }
    
    #profile-picture-container {
        width: 100%;
        max-width: 70%;
        height: 90vh;  
        position: relative;
        border-radius: 16px;
        text-align: center;
        overflow: hidden;
    }
    
    #main-image {
        width: 100%;
        height: auto;  
        object-fit: contain; 
        object-position: center;  
    }
    
    .profile-info {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: var(--white-color);
        z-index: 10;
        padding-top: 1rem;
        padding-bottom: 2rem;
        width: 100%;
    }
    
    .profile-info h3 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        font-weight: bold;
    }
    
    .profile-info p {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background-color: var(--white-color);
        color: var(--accent-color);
        border-radius: 50%;
        text-decoration: none;
        font-size: 1.2rem;
        margin: 0 .5rem;
    }
    
    .social-icons a:hover {
        background-color: var(--second-accent-color);
        color: var(--white-color);
    }

    .social-icons i {
        font-size: 1.1rem;
        line-height: 0;
    } 
    
    .wikipedia_ar {
        color: var(--white-color) !important;
        background: var(--accent-color) !important;
    }
    

    #content-types {
        margin-top: -5rem;
        max-width: 80%;
    }

    .chart-container {
        height: 400px;
    }

    .card-icon {
        margin-bottom: 1rem;

        i {
            font-size: 2.2rem;
            color: var(--white-color) !important;
        }
    }

    .card-text {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--white-color);
        margin-bottom: 0rem;
    }

    .card-label {
        font-size: .9rem;
        text-transform: lowercase;
        font-weight: normal;
        color: var(--white-color) !important;
        margin-bottom: 0.7rem;
    }

    .card-label::first-letter {
        text-transform: uppercase;
    }


    .icon {
        width: 16px;
        height: 16px;
        border: none !important;
        background: transparent;
        vertical-align: text-top;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

    .social-icons a:hover .icon {
        color: var(--desired-color);
        filter: invert(1) grayscale(100%);
        /* filter: grayscale(0%) invert(0); */
    }
    .wikipedia_ar:hover {
        color: var(--accent-color) !important;
        background-color: var(--white-color) !important;
    }

    .media-card {
        position: relative;
        margin-bottom: 20px;
        flex: 1 1 calc(33.333% - 20px);
        box-sizing: border-box;
        position: relative;
        cursor: pointer;
        transition: transform 0.2s ease;
        max-width: 32.53%;
    }

    .media-card:hover {
        transform: scale(1.05);

    }

    .media-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        object-position: top;
    }

    .icon-overlay {
        position: absolute;
        top: 10px;
        right: 1.5rem;
        background: rgba(0, 0, 0, 0.7);
        color: var(--white-color);
        padding: 5px 10px;
        border-radius: 5px;
    }

    .show-remove-option {
        padding: 5px 7px;
        width: fit-content;
        border-radius: 5px;
        text-align: center;
        float: right;
        z-index: 1100;
    }

    .featured-dropdown {
        background-color: var(--white-color);
        border: 1px solid var(--accent-color);
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        width: auto;
        padding: 0;
        z-index: 1050;
        min-width: 150px;
        bottom: 10px;
        right: 44px;
    }

    .featured-dropdown .dropdown-item {
        margin-top: 0;
        padding: 10px 15px;
        color: var(--accent-color);
        text-align: left;
        transition: background-color 0.2s ease-in-out;
    }

    .featured-dropdown .dropdown-item:hover {
        background-color: var(--secondary-color);
        color: var(--white-color);
        cursor: pointer;
    }

    .media-type-card {
        border-radius: 12px !important;
        background-color: var(--accent-color) !important;
        padding: 8px 0 0 0 !important;
        cursor: pointer;
    }

    .card-body {
        background-color: var(--background-color);
    }

    .card-title {
        font-size: 1rem;
        font-weight: bold;
        color: var(--accent-color);
    }

    .card-date {
        font-size: 0.9rem;
        color: var(--primary-color);
        /* text-transform: uppercase; */
        text-align: right;
    }

    .rtl-text {
        direction: rtl;
        text-align: right;
    }

    .media-card-body i {
        color: var(--primary-color);
    }

    .media-card-body a {
        color: var(--primary-color);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .media-card-body a:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

    .date-link {
        color: var(--primary-color);
        text-decoration: none;
    }

    .overview-title {
        color: var(--second-accent-color);
        margin: 20px 0px;
        font-weight: bolder;
        text-align: center;
        background-color: var(--background-color);
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }

    .media-card-body {
        background-color: var(--background-color);
        padding: 20px;
        border-top: 1px solid #dee2e6;
    }

      /* Responsive styles */
    @media (max-width: 1024px) {
        #profile-picture-container {
            height: auto;
        }
    }

    @media (max-width: 920px){
        #profile-picture-container {
            height: auto;
            max-width: 1000px;
        }
        #content-types {
            margin-top: -5rem;
            max-width: 100%;
        }
    }

    @media (max-width: 767px) {
        #profile-picture-container {
            height: auto;
        }

        .profile-info h3 {
            font-size: 1.1rem;
        }

        .profile-info p {
            font-size: 0.8rem;
        }

        .social-icons a {
            width: 25px;
            height: 25px;
            font-size: 0.9rem;
        }
        #content-types {
            margin-top: 2rem;
            max-width: 100%;
        }
      
        .media-card {
            flex: 1 1 100%;
            max-width: 100%;
        }
        
    }

    @media (max-width: 539px) {
        .profile-info{
            top: 70%;
        }
        .profile-info h3 {
            font-size: 1rem;
            margin-bottom: .4rem;
        }
    
        .profile-info p {
            font-size: .9rem;
            margin-bottom: .2rem;
        }
        .social-icons {
            padding: .8rem 0;
        } 
        .social-icons a {
            width: 22px;
            height: 22px;
            font-size: 0.9rem;
            margin: 0 .2rem;
        }
        .social-icons i {
            font-size: .9rem;
            line-height: 0;
        }
        .icon {
            width: 12px;
            height: 12px;
        }
        #content-types {
            margin-top: 2rem;
            max-width: 90%;
        }
    
    }
    
}

#overview-errorContainer {
    animation: fadeIn 0.5s ease-in-out;

    i {
        animation: bounce 1.5s infinite;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}