/* 
  Minimalist Instagram Style - Art Website Aesthetic
  Theme: LessIsMore (Customized)
  Modes: Day, Night, Dopamine
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;700;900&family=Montserrat:wght@100;200;400&display=swap');

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F0F3F4;
    --text-primary: #000000;
    --text-secondary: #888888;
    --accent: #000000;
    --border: #EEEEEE;
    --card-bg: rgba(255, 255, 255, 0.8);
    --particle-color: rgba(0, 0, 0, 0.1);
    --shadow-3d: rgba(0, 0, 0, 0.05);
}

[data-theme='night'] {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #666666;
    --accent: #FFFFFF;
    --border: #222222;
    --card-bg: rgba(10, 10, 10, 0.8);
    --particle-color: rgba(255, 255, 255, 0.1);
    --shadow-3d: rgba(255, 255, 255, 0.05);
}

[data-theme='dopamine'] {
    --bg-primary: #FFD93D; 
    --bg-secondary: #FF6BAD; 
    --text-primary: #000000;
    --text-secondary: #1F2937;
    --accent: #4D96FF; 
    --card-bg: rgba(255, 255, 255, 0.8);
    --border: #000000;
    --particle-color: rgba(77, 150, 255, 0.3);
    --shadow-3d: rgba(0, 0, 0, 0.2);
}

/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    transition: background-color 0.5s ease;
    overflow-x: hidden;
}

/* Home Container - 80% Width Box */
#home {
    width: 80% !important;
    max-width: 1800px;
    margin: 40px auto !important;
    padding: 60px 60px 120px 60px !important; 
    background: var(--card-bg) !important;
    backdrop-filter: blur(15px);
    border-radius: 0; /* Pure minimalist */
    box-shadow: none !important;
    position: relative;
    z-index: 1;
    font-size: 0.9em !important;
}

/* Main Layout */
#main {
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 40px; /* Reduced gap between sidebar and content */
    align-items: flex-start;
}

#mainContent {
    flex: 1 !important;
    min-width: 0;
    float: none !important;
    margin: 0 !important;
}

#sideBar {
    width: 220px !important;
    flex-shrink: 0;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative; /* Added for independent movement */
    left: -20px; /* Change this value (e.g., -20px) to move it independently */
}

/* Searshkiu Title Design */
#Header1_HeaderTitle, .headermaintitle {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 100 !important;
    font-size: 5rem !important;
    letter-spacing: -6px !important;
    //text-transform: lowercase;
    line-height: 1;
    margin-bottom: 15px;
    display: block;
    color: var(--text-primary) !important;
}

.subtitle {
    font-size: 0.55rem !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 12px;
    opacity: 0.15;
    margin-bottom: 60px;
}

/* Navigator - 90% Font Size */
#navigator {
    background: transparent !important;
    border: none !important;
    margin: 40px 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.9em !important; /* 90% Font Size */
}

#navList {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    list-style: none !important;
}

#navList li a {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary) !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
}

/* Article Display - Line Based */
.day, .post_detail, .entrylist {
    background: transparent !important;
    padding: 0 0 60px 0 !important;
    margin-bottom: 60px !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    position: relative;
    transition: all 0.4s ease;
}

.day:hover {
    border-bottom-color: var(--text-primary) !important;
}

.day:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    animation: lineGrow 0.4s ease forwards;
}

@keyframes lineGrow {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

.postTitle, .entrylistPosttitle {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: 1.6rem !important;
    letter-spacing: -0.5px;
    margin: 0 0 15px 0 !important;
}

.postDesc {
    color: var(--text-secondary) !important;
    font-size: 0.75rem !important;
    margin-top: 20px;
}

/* Sidebar Modules - Line Based */
.newsItem, .catListEssay, .catListLink, .mySearch, #calendar, 
.catListPostCategory, .catListPostArchive, .catListTag, .catListBlogRank,
.catListComment, .catListFeedback, .catListView, .catListDigg, .catListArticleCategory {
    background: transparent !important;
    padding: 0 0 30px 0 !important;
    margin-bottom: 60px !important; /* 2x Line height spacing approx */
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
}

.catListTitle {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: var(--text-primary) !important;
}

/* Theme Switcher - Top Right, Horizontal */
.theme-switcher {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 1000;
}

.theme-btn {
    width: 6em !important; /* 1.5x char width */
    height: 1.5em !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    border-radius: 4px !important;
    background: var(--bg-primary) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

/* Footer */
#footer {
    position: absolute;
    bottom: 40px;
    left: 60px;
    right: 60px;
    font-size: 0.8em !important;
    opacity: 0.3;
    display: flex !important;
    justify-content: center !important;
    gap: 30px;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1200px) {
    #home { width: 95% !important; }
}

@media (max-width: 768px) {
    #home { width: 100% !important; margin: 0 !important; padding: 30px !important; }
    #main { flex-direction: column !important; }
    #sideBar { width: 100% !important; }
    #theme-switcher { position: absolute !important; top: 10px; right: 10px; }
}
