/* Life Makeover Shrine Styles */

/* Comfortaa Font - Self-hosted */
@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 300;
    src: url('/assets/fonts/Comfortaa-Light.woff2') format('woff2'),
         url('/assets/fonts/Comfortaa-Light.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/Comfortaa-Regular.woff2') format('woff2'),
         url('/assets/fonts/Comfortaa-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/Comfortaa-Medium.woff2') format('woff2'),
         url('/assets/fonts/Comfortaa-Medium.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/fonts/Comfortaa-Bold.woff2') format('woff2'),
         url('/assets/fonts/Comfortaa-Bold.woff') format('woff');
    font-display: swap;
}

: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 {
    background-color: var(--lm-blue-opacity);
    border-color: var(--lm-pink);
    border-radius: 10px;
}

.navbar a {
    color: var(--text);
}

.navbar a:hover {
    color: 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 */
.main-content {
    background-image: url('/assets/images/shrines/lm-background-main-content.png');
    background-position: left bottom;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: 70%;
}

/* 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: 'Comfortaa', cursive;
    font-weight: 300;
}

.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-blue);
    font-size: 1.4em;
    margin-top: 15px;
    margin-bottom: 8px;
}

.life-makeover-page h4 {
    color: var(--lm-cream);
    font-size: 1.2em;
    margin-top: 12px;
    margin-bottom: 6px;
}

.life-makeover-page p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.life-makeover-page a {
    color: var(--lm-dark);
    text-decoration: underline;
}

.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: 10px;
    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 rgba(0, 0, 0, 0.2);
}

.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);
}


