/* ===== ЦВЕТОВАЯ СХЕМА ===== */
:root {
    --primary: #FF6B35;
    --primary-light: #FF8E53;
    --primary-dark: #E55A2B;
    --light: #FFF5F2;
    --dark: #2D3748;
    --gray: #718096;
    --gray-light: #E2E8F0;
}

body {
    color: var(--dark);
    line-height: 1.7;
}

.navbar {
    background-color: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== КНОПКИ ===== */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-oauth {
    border: 2px solid var(--gray-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-oauth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card {
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.avatar-large {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    justify-items: center;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
}

.skill-item {
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    padding: clamp(0.75rem, 2vw, 1.25rem);
    border: 2px solid var(--gray-light);
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 142, 83, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.15);
}

.skill-icon {
    width: clamp(50px, 10vw, 80px);
    height: clamp(50px, 10vw, 80px);
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.skill-item:hover .skill-icon {
    filter: grayscale(0%);
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-name {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 600;
    color: var(--dark);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.skill-item:hover .skill-name {
    opacity: 1;
    bottom: clamp(-25px, -5vw, -30px);
}

.comment-form-card {
    border: 2px solid var(--primary);
    background: white;
    transition: all 0.3s ease;
}

.comment-form-card:hover {
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    resize: vertical;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    line-height: 1.5;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.1);
}

.auth-required-card {
    background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
    border: 2px dashed var(--primary);
    text-align: center;
}

.comment-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.comment-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.05);
    transform: translateX(3px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.comment-timestamp {
    font-size: 0.8rem;
    color: var(--gray);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark);
    margin: 0;
}

.comment-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-item:hover .comment-actions {
    opacity: 1;
}

.delete-comment-btn {
    background: none;
    border: none;
    color: var(--gray);
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.delete-comment-btn:hover {
    color: var(--primary);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.comments-title i {
    color: var(--primary);
}

.no-comments {
    text-align: center;
    color: var(--gray);
}

.user-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light);
    border-radius: 20px;
}

.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.section-divider {
    height: 1px;
    margin: 4rem auto;
    width: 80%;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.section-padding {
    padding: 4rem 0;
}

.footer {
    background-color: var(--primary) !important;
    color: white;
    margin-top: 4rem;
}

.modal-oauth {
    border: none;
    border-radius: 15px;
}

.modal-oauth .modal-header {
    border-bottom: none;
    text-align: center;
    display: block;
}