/* styles/about.css */
/* Стили для секции "О себе" */

.about dl {
    display: block;
}

.about dl .about-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    align-items: center;
}

.about dl .about-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

/* Чередующиеся фоны для .about-row */
.about dl .about-row:nth-of-type(4n+1) { 
    background: var(--light-bg); 
    border-left-color: #667eea; 
}

.about dl .about-row:nth-of-type(4n+3) { 
    background: var(--alt-light-bg); 
    border-left-color: #4facfe; 
}

.about dl .about-row:nth-of-type(4n+2) { 
    background: var(--accent-green); 
    border-left-color: #43e97b; 
}

.about dl .about-row:nth-of-type(4n+4) { 
    background: var(--accent-orange); 
    border-left-color: #fa709a; 
}

.about dl .about-row dt {
    font-weight: 600;
    color: #667eea;
    font-size: 1.3rem;
    font-family: var(--system-font);
    flex: 1;
    padding: 1rem;
    margin: 0;
}

.about dl .about-row dd {
    color: #555;
    font-weight: 400;
    font-family: var(--system-font);
    flex: 2;
    padding: 1rem;
    margin: 0;
}

/* Общий стиль для тегов в .about dl */
.about dl .about-tag {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: rem;
    font-weight: 500;
    border: 1px solid;
    font-family: var(--system-font);
    transition: all 0.2s ease;
    text-shadow: var(--text-shadow-light);
    display: inline-block;
    margin-bottom: 0.25rem;
}

.about dl .about-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Специфические цвета для тегов в .about dl */
.about dl .about-personal-tag {
    background: var(--accent-purple);
    color: #7b1fa2;
    border-color: #e1bee7;
}

.about dl .about-date-tag {
    background: var(--accent-pink);
    color: #c2185b;
    border-color: #f8bbd9;
}

.about dl .about-location-tag {
    background: var(--accent-orange);
    color: #ef6c00;
    border-color: #ffcc80;
}

.about dl .about-school-tag {
    background: var(--accent-green);
    color: #2e7d32;
    border-color: #c8e6c9;
}

.about dl .about-uni-tag {
    background: var(--accent-blue);
    color: #1976d2;
    border-color: #bbdefb;
}

.about dl .about-language-tag {
    background: var(--accent-blue);
    color: #1976d2;
    border-color: #bbdefb;
}

.about dl .about-specialization-tag {
    background: var(--accent-purple);
    color: #7b1fa2;
    border-color: #e1bee7;
}

.about dl .about-skill-tag {
    background: var(--accent-blue);
    color: #1976d2;
    border-color: #bbdefb;
}

.about dl .about-quality-tag {
    background: var(--accent-green);
    color: #2e7d32;
    border-color: #c8e6c9;
}

.about dl .about-skill-nav-tag {
    background: var(--accent-orange);
    color: #ef6c00;
    border-color: #ffcc80;
}

.about dl .about-unprof-skill-tag {
    background: #e0f7fa; /* light cyan */
    color: #00796b;      /* dark teal */
    border-color: #b2ebf2; /* lighter cyan */
}

.about dl .about-achievements-tag {
    background: var(--accent-pink);
    color: #c2185b;
    border-color: #f8bbd9;
}

.about dl .about-hobbies-tag {
    background: var(--accent-green);
    color: #2e7d32;
    border-color: #c8e6c9;
}

.about dl .about-plans-tag {
    background: var(--accent-blue);
    color: #1976d2;
    border-color: #bbdefb;
}

.about dl .about-contacts-tag {
    background: var(--accent-orange);
    color: #ef6c00;
    border-color: #ffcc80;
}

.about dl .about-contacts-tag a {
    color: inherit;
    text-decoration: none;
}

/* Анимация для ссылок в тегах в .about dl */
.about dl .about-link-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;

}

.about .about-me__video {
    display: block;
    margin: 0rem auto 2rem auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px; /* Maintain original max size */
    height: auto;
    outline: none;
    border: 2px solid #ddd;
}

/* Группы тегов в .about dl */
.about dl .about-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.about dl .about-skill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Стили для подзаголовков в .about dl */
.about dl .about-subsection-title {
    background: var(--tertiary-color);
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(79, 172, 254, 0.3);
    font-family: var(--system-font);
}

/* Адаптивность для about */
@media (max-width: 768px) {
    .about dl .about-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .about dl .about-group,
    .about dl .about-skill-group {
        justify-content: flex-start;
    }
}