/* Life Makeover Shrine */


@import url('fonts-satoshi.css'); 

:root {
    --lm-pink: #d4a5a5;
    --lm-blue: #9ab3c1;
    --lm-blue-opacity: #90bcd68e;
    --lm-cream: #d4c5a0;
    --lm-cream-opacity: #d4c5a081;
    --lm-lavender: #b4a5c7;
    --lm-gray: #c5c5c5;
    --lm-mauve: #c78c99;
    --lm-light: #e6ddd8;
    --lm-dark: #4a4543;
    
    /* override main layout colors */
    --background: #e6ddd8;
    --highlightedbackground: #d4c5a0;
    --highlight: #d4a5a5;
    --bar: #b4a5c7;
    --text: #4a4543;
    --quote: #b4a5c7;
}

/* text Selection Colors */
::selection {
    background-color: var(--lm-lavender);
    color: var(--lm-dark);
}

::-moz-selection {
    background-color: var(--lm-lavender);
    color: var(--lm-dark);
}

/* override html background */
html {
    background-color: var(--background);
}

/* style the navbar to match lm theme */
.navbar a {
    color: var(--text);
    border-radius: 5px;
    box-shadow: 6px 6px 0 var(--lm-pink);
}


::-webkit-scrollbar-thumb {
    background: var(--lm-mauve);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lm-pink);
}

::-webkit-scrollbar-thumb:active {
    background: var(--lm-lavender);
}

/* bg image */
body.life-makeover-shrine {
    background-image: url('/assets/images/shrines/lm-background-main-content.png');
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 300px;
}

body.life-makeover-shrine .main-content {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* lm page container */
.life-makeover-page {
    background-color: var(--lm-cream-opacity);
    color: var(--text);
    padding: 20px;
    border: double 4px var(--lm-pink);
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    font-family: 'Satoshi', sans-serif; 
    box-shadow: 8px 8px 0 var(--lm-pink);
}

.life-makeover-page h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-style: italic;
    text-shadow: 2px 2px 4px var(--lm-pink);
}

.life-makeover-page h2 {
    font-size: 1.8em;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--lm-mauve);
    padding-bottom: 5px;
}

.life-makeover-page h3 {
    color: var(--lm-dark);
    font-size: 1.4em;
    margin-top: 15px;
    margin-bottom: 8px;
}

.life-makeover-page h4 {
    color: var(--lm-dark);
    font-size: 1.2em;
    margin-top: 12px;
    margin-bottom: 6px;
}

.life-makeover-page p {
    line-height: 1.4;
    margin-bottom: 15px;
}

.life-makeover-page a {
    color: var(--lm-dark);
}

.life-makeover-page a:hover {
    color: var(--lm-dark);
    transition: color 0.2s ease;
}

/* big tab nav */
.lm-tab-navigation {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
    border-bottom: 2px solid var(--lm-mauve);
}

.lm-tab-link {
    padding: 10px 18px;
    text-decoration: none;
    color: var(--lm-dark);
    background-color: var(--lm-blue-opacity);
    border-right: 1px solid var(--lm-pink);
    border-top: 1px solid var(--lm-pink);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.lm-tab-link:hover {
    background-color: var(--lm-mauve);
    color: var(--lm-light);
}

.lm-tab-navigation a, .lm-subtab-navigation a {
    text-decoration: none;
}

.lm-tab-link.active {
    background-color: var(--lm-lavender);
    color: var(--lm-dark);
    font-weight: bold;
    border-bottom: 2px solid var(--lm-pink);
}

/* child tab nav */
.lm-subtab-navigation {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    margin-top: -2px;
    padding: 5px 0;
    border-bottom: 1px solid var(--lm-blue);

}

.lm-subtab-link {
    padding: 6px 14px;
    text-decoration: none;
    color: var(--lm-dark);
    background-color: var(--lm-blue-opacity);
    border-right: 1px solid var(--lm-blue);
    transition: all 0.2s ease;
    font-size: 0.9em;
    border-radius: 10px;
}

.lm-subtab-link:hover {
    background-color: var(--lm-blue);
    color: var(--lm-dark);
}

.lm-subtab-link.active {
    background-color: var(--lm-lavender);
    color: var(--lm-dark);
    font-weight: bold;
}

/* content */
.lm-tab-content {
    padding: 20px;
    background-color: var(--lm-blue-opacity);
    border: 1px solid var(--lm-gray);
    min-height: 400px;
    border-radius: 10px;
    color: var(--lm-dark);
}


/* images */
.lm-tab-content img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--lm-mauve);
    margin: 10px 0;
}

.lm-tab-content figure {
    margin: 20px 0;
    text-align: center;
}

.lm-tab-content figcaption {
    font-style: italic;
    margin-top: 5px;
    font-size: 0.9em;
}

/* lists */
.lm-tab-content ul,
.lm-tab-content ol {
    margin: 15px 0;
    padding-left: 30px;
    line-height: 1.8;
}

.lm-tab-content li {
    margin-bottom: 8px;
}

/* quotes */
.lm-tab-content blockquote {
    border-left: 4px solid var(--lm-mauve);
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: var(--lm-cream);
}


/* outfit gallery */
.outfits-gallery-container {
    margin: 20px 0;
    width: 100%;
}

.outfits-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;  
    justify-content: center;
}

.outfits-gallery .thumbnail {
    flex: 0 0 auto;
    max-width: 100px;
    border: 2px solid var(--lm-mauve);
    overflow: hidden;
    transition: all 0.2s ease;
    background: var(--lm-off-white);
}

.outfits-gallery .thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--lm-pink);
    box-shadow: 0 4px 8px var(--lm-dark);
}

.outfits-gallery .thumbnail a {
    display: block;
    text-decoration: none;
}

.outfits-gallery .thumbnail img {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0;
    border: none;
}

/* lm diary entries */
.lm-diary-entries {
    margin: 20px 0;
}

.lm-diary-item {
    background-color: rgba(212, 165, 165, 0.1);
    border: 2px solid var(--lm-pink);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.lm-diary-item:hover {
    background-color: rgba(212, 165, 165, 0.2);
    border-color: var(--lm-mauve);
    transform: translateX(5px);
}

.lm-diary-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.lm-diary-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid var(--lm-mauve);
    flex-shrink: 0;
}

.lm-diary-info {
    flex: 1;
}

.lm-diary-title {
    font-size: 1.3em;
    margin: 0 0 8px 0;
    color: var(--lm-dark) !important;
}

.lm-diary-date {
    font-size: 0.9em;
    color: var(--lm-dark) !important;
    opacity: 0.8;
}

/* grid for gallery */
.lm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.lm-gallery-item {
    border: 2px solid var(--lm-mauve);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.lm-gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--lm-pink);
}

.lm-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border: none;
}

/* responsivity  */
@media all and (max-width: 768px) {
    .lm-tab-navigation {
        flex-direction: column;
    }
    
    .lm-tab-link,
    .lm-subtab-link {
        border-right: none;
        border-bottom: 1px solid var(--lm-dark);
    }
    
    .life-makeover-page h1 {
        font-size: 2em;
    }
    
    .lm-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .outfits-gallery .thumbnail {
        max-width: 120px;
    }
    
    .outfits-gallery .thumbnail img {
        max-width: 120px;
    }
}

/* table styles */
.lm-tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.lm-tab-content th,
.lm-tab-content td {
    border: 1px solid var(--lm-gray);
    padding: 10px;
    text-align: left;
}

.lm-tab-content th {
    background-color: var(--lm-mauve);
    color: var(--lm-light);
    font-weight: bold;
}

.lm-tab-content tr:nth-child(even) {
    background-color: rgba(212, 165, 165, 0.1);
}

/* OOTD Gallery Styles */
.lm-ootd-gallery {
    padding: 20px;
}

.lm-ootd-gallery h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--lm-dark);
}

.lm-ootd-counter {
    text-align: center;
    font-size: 1.1em;
    color: var(--lm-mauve);
    margin-bottom: 20px;
    font-weight: 500;
}

.lm-ootd-main {
    max-width: 800px;
    margin: 0 auto;
}

.lm-ootd-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.lm-ootd-image {
    max-height: 60vh;
    border: none !important;
    filter: drop-shadow(1em 1em 0 var(--lm-mauve));
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}



.lm-ootd-image:hover {
    transform: translateY(-10px);
    filter: drop-shadow(1.5em 1.5em 0 var(--lm-mauve));
}

.lm-ootd-description {
    border-radius: 8px;
    margin: 15px;
    line-height: 1.6;
}

.lm-ootd-description p {
    font-size: 0.9em;
}

.lm-ootd-date {
    text-align: center;
    font-size: 0.8em;
    color: var(--lm-dark);
    opacity: 0.8;
    margin-bottom: 30px;
}

.lm-ootd-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    text-decoration: none;
}


.lm-ootd-nav-button {
    padding: 10px 25px;
    background-color: var(--lm-lavender);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    box-shadow: 0.3em 0.3em 0 var(--lm-mauve);
    transition: box-shadow 0.3s ease-in-out !important;
}


.lm-ootd-nav-button:hover {
    box-shadow: 0.6em 0.6em 0 var(--lm-mauve);
}

.lm-ootd-nav-button.disabled {
    background-color: var(--lm-gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.lm-ootd-empty {
    text-align: center;
    padding: 40px;
    color: var(--lm-dark);
}

@media (max-width: 768px) {
    .lm-ootd-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lm-ootd-nav-button {
        width: 100%;
        text-align: center;
    }
}

/* character list */ 

.char-avatar img {
    height: auto;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    border-radius: 50%;
    filter: drop-shadow(1em 0 0 var(--lm-mauve));
    border: none;
}

.char-avatar:hover img {
    transform: translatex(10px);
    filter: drop-shadow(-1em -0em 0 var(--lm-mauve));
}

.char-avatar {
    max-width: 15vw;
    position: relative;
    display: flex;
    align-items: center;
    margin: auto;
}

.char-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    line-height: 1.1;
}

.char-desc{
    text-align: center;
    font-size: 0.8em;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

.char-name{
    text-align: center;
    font-size: 1.2em;
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

.char-info-text{
    max-width: 200px;
    line-height: 1.1;
    margin: 2px 0;
    padding: 0;
}

.character-update{
    font-size: 0.8em;
    color: var(--lm-dark);
}

.chars-intro{
    font-size: 0.9em;
    line-height: 1.4;
}