/* Widget Styles for Ali Musa Portfolio Theme */

/* General Widget Styles */
.widget {
    background: hsl(210, 11%, 10%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid hsl(210, 11%, 15%);
}

.widget-title {
    color: hsl(0, 0%, 98%);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid hsl(51, 87%, 62%);
}

/* Recent Projects Widget */
.recent-projects-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-project-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: hsl(210, 11%, 8%);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-project-item:hover .project-thumbnail img {
    transform: scale(1.1);
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.project-info h4 a {
    color: hsl(0, 0%, 98%);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-info h4 a:hover {
    color: hsl(51, 87%, 62%);
}

.project-date {
    display: block;
    font-size: 0.8rem;
    color: hsl(0, 0%, 60%);
    margin-bottom: 0.25rem;
}

.project-category {
    display: inline-block;
    background: hsl(51, 87%, 62%);
    color: hsl(210, 11%, 7%);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Skills Widget */
.skills-widget {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item {
    background: hsl(210, 11%, 8%);
    padding: 1.25rem;
    border-radius: 12px;
}

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

.skill-name {
    color: hsl(0, 0%, 98%);
    font-weight: 600;
    font-size: 0.9rem;
}

.skill-percentage {
    color: hsl(51, 87%, 62%);
    font-weight: 700;
    font-size: 0.85rem;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: hsl(210, 11%, 15%);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, hsl(51, 87%, 62%) 0%, hsl(51, 87%, 75%) 100%);
    border-radius: 3px;
    transition: width 0.8s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Contact Info Widget */
.contact-info-widget {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: hsl(210, 11%, 8%);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: hsl(210, 11%, 12%);
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: hsl(51, 87%, 62%);
    color: hsl(210, 11%, 7%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    flex: 1;
    min-width: 0;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: hsl(0, 0%, 60%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-content a,
.contact-content span {
    color: hsl(0, 0%, 98%);
    text-decoration: none;
    font-weight: 500;
    word-break: break-word;
}

.contact-content a:hover {
    color: hsl(51, 87%, 62%);
}

/* Social Links Widget */
.social-links-widget {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: hsl(210, 11%, 8%);
    border-radius: 12px;
    text-decoration: none;
    color: hsl(0, 0%, 85%);
    transition: all 0.3s ease;
    border: 1px solid hsl(210, 11%, 15%);
}

.social-link:hover {
    background: hsl(210, 11%, 12%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-link.github:hover {
    border-color: #333;
    color: #333;
}

.social-link.linkedin:hover {
    border-color: #0077B5;
    color: #0077B5;
}

.social-link.twitter:hover {
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.social-link span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sidebar Specific Styles */
.main-sidebar .widget,
.project-sidebar .widget {
    background: hsl(210, 11%, 10%);
    border: 1px solid hsl(210, 11%, 15%);
}

.footer-widget-area .widget {
    background: hsl(210, 11%, 8%);
    border: 1px solid hsl(210, 11%, 12%);
}

.header-widget-area .widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .widget {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .recent-project-item {
        padding: 0.75rem;
    }
    
    .project-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .skill-item {
        padding: 1rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-link {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .widget {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .recent-projects-widget {
        gap: 1rem;
    }
    
    .skills-widget {
        gap: 1rem;
    }
    
    .contact-info-widget {
        gap: 1rem;
    }
    
    .social-links-widget {
        gap: 0.5rem;
    }
}