/* COMPONENTS.CSS - Reusable Components */
/* Shared component styles used across multiple pages */

/* ===================================
   EXPERIENCE/INDUSTRY CONTAINERS
   =================================== */
.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.industry-container {
    margin: var(--space-xl) 0;
}

.experience-item {
    background-color: var(--color-bg-main);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 0.1rem solid var(--color-border);
}

.experience-item h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.experience-date {
    font-style: italic;
    margin-bottom: var(--space-md);
    font-size: 0.98rem;
    color: rgb(120, 120, 120);
}

.experience-item p {
    margin-bottom: var(--space-sm);
}

.experience-item ul {
    margin-left: var(--space-xl);
    margin-top: var(--space-sm);
    padding-left: var(--space-lg);
    list-style-type: disc;
    list-style-position: outside;
}

.experience-item li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
    margin-left: var(--space-md);
}

/* ===================================
   NEWS CONTAINER
   =================================== */
.news-container {
    margin-top: var(--space-xl);
    background-color: var(--color-bg-main);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 0.1rem solid var(--color-border);
    box-shadow: var(--shadow-sm);
    max-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
    padding-right: 2.5rem;
    position: relative;
    overflow-y: scroll;
}

.news-container::-webkit-scrollbar {
    width: 10px;
    -webkit-appearance: none;
    background-color: rgb(240, 240, 240);
}

.news-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin: 10rem 0;
}

.news-container::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
    border: 4px solid transparent;
    background-clip: padding-box;
}

.news-container::-webkit-scrollbar-thumb:hover {
    background: rgb(130, 130, 130);
    border: 4px solid transparent;
    background-clip: padding-box;
}

.news-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1.5rem;
    background-color: var(--color-bg-main);
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    pointer-events: none;
}

.news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-date {
    flex: 0 0 120px;
    font-weight: 600;
    color: rgb(80, 80, 80);
    padding-right: var(--space-md);
}

.news-content {
    flex: 1;
    font-weight: 600;
    color: rgb(50, 50, 50);
    line-height: 1.5;
}

.mobile-indicator {
    display: none;
}

.mobile-scroll-text {
    text-align: center !important;
    color: #999 !important;
    font-style: italic !important;
    font-size: 0.9em !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ===================================
   HIDDEN SECTIONS
   =================================== */
.hidden-education {
    display: none;
    overflow: hidden;
    transition: height var(--transition-base);
}

.hidden-education.visible {
    display: block;
    animation: slideDown 0.4s ease forwards;
}

.hidden-projects {
    display: none;
    overflow: hidden;
    transition: height var(--transition-base);
}

.hidden-projects.visible {
    display: block;
    animation: slideDown 0.4s ease forwards;
}

/* ===================================
   ABOUT ME BOX (Home Page)
   =================================== */
.about-me-box {
    width: 100%;
    margin: var(--space-xl) 0;
}

.box-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    background-color: var(--color-bg-main);
    border-radius: var(--radius-lg);
    border: 0.1rem solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.image-side {
    width: 30%;
    flex: 0 0 30%;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-side {
    width: 70%;
    flex: 0 0 70%;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-side h2 {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
}

.text-side p {
    line-height: 1.6;
    text-align: justify;
}

.image-side img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* ===================================
   PROFILE SECTION
   =================================== */
#profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.section__text {
    align-self: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.section__text p {
    font-weight: 600;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
    gap: var(--space-md);
}

/* ===================================
   ABOUT DETAILS CONTAINER
   =================================== */
.about-details-container {
    justify-content: center;
    flex-direction: column;
    display: flex;
}
