/*
Theme Name: Portfolio Theme
Description: Simple portfolio theme for showcasing My Portfolio plugin
Author: Muhammad Ibni Yantoni
Version: 1.0.0
*/

/* ==============================================
   RESET & BASE STYLES
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* ==============================================
   LAYOUT STYLES
   ============================================== */

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF6B35;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #FF6B35;
}

.site-main {
    margin-top: 70px; /* Account for fixed header */
}

.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

/* ==============================================
   CONTENT STYLES
   ============================================== */

.content-area {
    min-height: calc(100vh - 140px);
}

.site-content {
    width: 100%;
}

/* Remove default page title for portfolio page */
.page-title {
    display: none;
}

/* ==============================================
   MOBILE NAVIGATION
   ============================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* ==============================================
   RESPONSIVE STYLES
   ============================================== */

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-main {
        margin-top: 60px;
    }
}

/* ==============================================
   PORTFOLIO PLUGIN INTEGRATION
   ============================================== */

/* Ensure portfolio container uses full width */
.my-portfolio-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Override any theme constraints */
.content-area .my-portfolio-container,
.site-content .my-portfolio-container {
    max-width: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* ==============================================
   ADDITIONAL PORTFOLIO ENHANCEMENTS
   ============================================== */

/* Smooth scroll offset for fixed header */
#hero, #about, #portfolio, #contact {
    scroll-margin-top: 80px;
}

/* Loading state */
.portfolio-loading {
    text-align: center;
    padding: 100px 20px;
}

.loading-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.loading-dots {
    display: inline-block;
}

.loading-dots:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* ==============================================
   PRINT STYLES
   ============================================== */

@media print {
    .site-header,
    .site-footer,
    .main-navigation {
        display: none;
    }
    
    .site-main {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}