/* Unified Portfolio Design - Single Page Layout */

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main Container Layout */
.main-container {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Left Sidebar - Profile & About */
.left-sidebar {
background: #ffffff;
padding: 24px;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
border-right: 1px solid #5f5f5f;
}

/* Profile Section */
.profile-section {
    text-align: center;
}

.profile-image-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px auto;
    position: relative;
}

#vinsvg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

#vinsvg:hover {
    transform: scale(1.05);
}

.profile-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 15px;
    color: #666666;
    font-weight: 500;
    margin-bottom: 0;
}

/* About Content */
.about-content {
    text-align: left;
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.about-paragraph {
    font-size: 13px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 12px;
}

.about-paragraph:last-child {
    margin-bottom: 0;
}

/* Social Links */
.social-links {
    padding-top: 20px;
    margin-top: 20px;
}

/* Center Content - Projects Feed */
.center-content {
    background: transparent;
    display: flex;
    flex-direction: column;
}

.feed-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Feed Header */
.feed-header {
    background: #ffffff;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #333333;
}

.feed-title {
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.feed-subtitle {
    font-size: 16px;
    color: #666666;
    font-weight: 400;
    margin: 0;
}

/* Right Sidebar - Stats & Skills */

/* Post Media */
.post-media {
    margin: 16px 0;
    overflow: hidden;
}

.post-image, .post-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 16px 24px 0 24px;
}

.post-tag {
    background: #ffffff;
    color: #333333;
    font-size: 12px;
    padding: 6px 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.post-tag:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-1px);
    border-color: #333333;
}

.post-tag::before {
    content: '#';
    opacity: 0.7;
}

/* Post Footer - Combined Tags and Actions */
.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #f1f1f1;
    gap: 16px;
    flex-wrap: wrap;
}

.post-footer .post-tags {
    flex: 1;
    min-width: 200px;
    margin: 0;
    padding: 0;
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    border-top: none;
    gap: 16px;
    flex-shrink: 0;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    color: #333333;
    font-size: 14px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.action-button:hover {
    background: #ffffff;
    color: #333333;
    transform: translateY(-1px);
}

.action-icon {
    font-size: 18px;
}

.share-button:hover {
    color: #333333;
    background: #ffffff;
}

/* Right Sidebar - Stats & Skills */
.right-sidebar {
display: flex;
flex-direction: column;
gap: 20px;
border-left: 1px solid #5f5f5f;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
}

.stats-section,
.skills-section,
.contact-section {
    background: #ffffff;
    padding: 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.stat-item {
    text-align: center;
    background: #ffffff;
    padding: 12px 8px;
    border-right: 1px solid #e5e5e5;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    line-height: 1;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 12px;
    color: #333333;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.skill-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.skill-name {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

/* Contact Links - Updated for new social structure */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.contact-text {
    font-size: 14px;
    font-weight: 500;
}

/* Legacy social links - deprecated in favor of enhanced component */
.social-text-link {
    display: none; /* Hide old structure if it appears */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #ffffff;
    width: 50px;
    height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile Sidebar - Hidden by default */
.mobile-sidebar {
    display: none;
}

.mobile-menu-toggle:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #333333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Loading States */
.feed-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    background: #333333;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feed-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 280px 1fr 260px;
    }
    
    .left-sidebar,
    .stats-section,
    .skills-section,
    .contact-section {
        padding: 16px;
    }
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        max-width: 100%;
    }
    
    .left-sidebar,
    .right-sidebar {
        position: static;
        max-height: none;
        border: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Combined Mobile Sidebar */
    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 90vw;
        max-width: 360px;
        height: 100vh;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        overflow-x: hidden;
        background: #ffffff;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
        border-right: 1px solid #e5e5e5;
    }
    
    .mobile-sidebar.open {
        transform: translateX(0);
    }
    
    /* Hide individual sidebars on mobile */
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .mobile-menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
        backdrop-filter: blur(2px);
    }
    
    .center-content {
        margin: 0;
        padding: 0;
        padding-top: 80px; /* Space for mobile header */
    }
    
    .feed-header {
        padding: 20px 16px;
        margin: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid #e5e5e5;
    }
}

@media (max-width: 768px) {
    .center-content {
        padding-top: 70px; /* Reduced for smaller screens */
    }
    
    .feed-header {
        padding: 16px;
        border-bottom: 1px solid #e5e5e5;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }
    
    .feed-title {
        font-size: 22px;
        margin-bottom: 4px;
        letter-spacing: -0.3px;
    }
    
    .feed-subtitle {
        font-size: 13px;
        color: #777;
    }
    
    .feed-post {
        margin-bottom: 12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid #f0f0f0;
        background: #ffffff;
    }
    
    .post-header,
    .post-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .post-header {
        padding: 10px 16px;
        gap: 10px;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .post-avatar {
        width: 38px;
        height: 38px;
    }
    
    .post-username {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .post-handle {
        font-size: 12px;
        color: #777;
        margin-top: 1px;
    }
    
    .post-timestamp {
        font-size: 11px;
        color: #999;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .post-content {
        padding: 0 16px 14px 16px;
    }
    
    .post-title {
        font-size: 17px;
        margin-bottom: 8px;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .post-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
        color: #444;
    }
    
    .post-footer {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        border-top: 1px solid #f0f0f0;
        background: rgba(248, 249, 250, 0.6);
    }
    
    .post-footer .post-tags {
        min-width: auto;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .post-tag {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 12px;
        background: #f0f0f0;
        border: 1px solid #e0e0e0;
    }
    
    .post-actions {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .action-button {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 6px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }
    
    .action-button:hover {
        background: #e9ecef;
        transform: none;
    }
    
    /* Mobile Sidebar Styling */
    .mobile-sidebar {
        padding: 20px;
        width: 85vw;
        max-width: 340px;
    }
    
    .mobile-sidebar .profile-section {
        padding-bottom: 20px;
        border-bottom: 1px solid #e5e5e5;
        margin-bottom: 20px;
    }
    
    .mobile-sidebar .profile-image-container {
        width: 90px;
        height: 90px;
        margin-bottom: 12px;
    }
    
    .mobile-sidebar .profile-name {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .mobile-sidebar .profile-title {
        font-size: 14px;
        color: #666;
    }
    
    .mobile-sidebar .about-content {
        padding-bottom: 20px;
        border-bottom: 1px solid #e5e5e5;
        margin-bottom: 20px;
    }
    
    .mobile-sidebar .about-paragraph {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .mobile-sidebar .section-title {
        font-size: 16px;
        margin-bottom: 14px;
        color: #333;
    }
    
    .mobile-sidebar .stats-section,
    .mobile-sidebar .skills-section,
    .mobile-sidebar .contact-section {
        margin-bottom: 16px;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 6px;
        border: 1px solid #e9ecef;
    }
    
    .mobile-sidebar .stat-item {
        padding: 6px 4px;
    }
    
    .mobile-sidebar .stat-number {
        font-size: 20px;
        margin-bottom: 1px;
    }
    
    .mobile-sidebar .stat-label {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    
    .mobile-sidebar .skill-item {
        padding: 10px 12px;
        gap: 10px;
        background: #ffffff;
        border-radius: 6px;
        margin-bottom: 4px;
    }
    
    .mobile-sidebar .skill-name {
        font-size: 13px;
    }
    
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        top: 13px;
        right: 16px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Make main stats section more compact on mobile */
    .stats-section {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .stats-grid {
        gap: 1px;
    }
    
    .stat-item {
        padding: 6px 4px;
    }
    
    .stat-number {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0;
        gap: 0;
    }
    
    .center-content {
        padding-top: 65px; /* Reduced for very small screens */
    }
    
    .feed-header {
        padding: 12px 14px;
    }
    
    .feed-title {
        font-size: 18px;
        letter-spacing: -0.3px;
        margin-bottom: 2px;
    }
    
    .feed-subtitle {
        font-size: 12px;
    }
    
    .feed-post {
        margin-bottom: 8px;
        border-radius: 0;
    }
    
    .post-header {
        padding: 8px 14px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .post-avatar {
        width: 32px;
        height: 32px;
    }
    
    .post-username {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .post-handle {
        font-size: 11px;
        margin-top: 0;
    }
    
    .post-timestamp {
        font-size: 10px;
        margin-left: auto;
    }
    
    .post-content {
        padding: 0 14px 12px 14px;
    }
    
    .post-title {
        font-size: 16px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .post-description {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .post-footer {
        padding: 10px 14px;
        gap: 8px;
    }
    
    .post-tag {
        font-size: 10px;
        padding: 3px 7px;
        border-radius: 10px;
    }
    
    .action-button {
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .action-icon svg {
        width: 14px;
        height: 14px;
    }
    
    /* Mobile Sidebar for very small screens */
    .mobile-sidebar {
        width: 92vw;
        max-width: none;
        padding: 16px;
    }
    
    .mobile-sidebar .profile-image-container {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
    
    .mobile-sidebar .profile-name {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .mobile-sidebar .profile-title {
        font-size: 12px;
    }
    
    .mobile-sidebar .about-paragraph {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .mobile-sidebar .section-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .mobile-sidebar .stats-section,
    .mobile-sidebar .skills-section,
    .mobile-sidebar .contact-section {
        padding: 10px;
        margin-bottom: 12px;
        border-radius: 4px;
    }
    
    .mobile-sidebar .stat-item {
        padding: 4px 3px;
    }
    
    .mobile-sidebar .stat-number {
        font-size: 16px;
    }
    
    .mobile-sidebar .stat-label {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
    
    .mobile-sidebar .skill-item {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .mobile-sidebar .skill-icon {
        font-size: 14px;
        width: 16px;
    }
    
    .mobile-sidebar .skill-name {
        font-size: 12px;
    }
    
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        top: 13px;
        right: 14px;
    }
    
    .mobile-menu-toggle span {
        width: 14px;
        height: 1.5px;
    }
    
    /* Make main stats section even more compact on very small screens */
    .stats-section {
        padding: 6px;
        margin-bottom: 8px;
    }
    
    .stat-item {
        padding: 4px 2px;
    }
    
    .stat-number {
        font-size: 18px;
        margin-bottom: 1px;
    }
    
    .stat-label {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Touch-specific optimizations */
@media (hover: none) and (pointer: coarse) {
    .action-button,
    .post-tag,
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .action-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .post-tag {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .mobile-menu-toggle:hover {
        background: #ffffff;
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Remove hover effects on touch devices */
    .left-sidebar:hover,
    .stats-section:hover,
    .skills-section:hover,
    .contact-section:hover,
    .skill-item:hover {
        transform: none;
    }
    
    .action-button:hover,
    .post-tag:hover {
        transform: none;
        background: #f5f5f5;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-menu-toggle {
        border-width: 0.5px;
    }
    
    .mobile-menu-toggle span {
        height: 1.5px;
    }
}

/* Focus states */
.action-button:focus,
.external-link:focus,
.contact-link:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #333333;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .mobile-menu-toggle,
    .post-actions,
    .contact-section {
        display: none;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feed-post,
    .left-sidebar,
    .stats-section,
    .skills-section {
        box-shadow: none;
        break-inside: avoid;
    }
}
