/* ⚠️ READ _Spec_Starsoft_StyleGuide.md BEFORE making ANY changes */

/* ============================================================================
   INDIVIDUAL POST VIEW - Content, Images, Author Info
   ============================================================================ */

/* Post Navigation */
.NEWS_Navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(221, 221, 221);
    gap: 8px;
}

/* Navigation buttons - shared properties */
.Button_PostNav_Prev, .Button_PostNav_Next {
    background: rgb(60, 170, 220);
    border: none;
    cursor: pointer;
    min-width: 48px;
    width: 48px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Left button - rounded left corners only */
.Button_PostNav_Prev {
    border-radius: 16px 0 0 16px;
}

/* Right button - rounded right corners only */
.Button_PostNav_Next {
    border-radius: 0 16px 16px 0;
}

.Button_PostNav_Prev:hover, .Button_PostNav_Next:hover {
    background: rgb(157, 212, 237);
}

.Button_PostNav_Prev:focus, .Button_PostNav_Next:focus {
    outline: none;
}

.Button_PostNav_Prev:active, .Button_PostNav_Next:active {
    outline: none;
}

.Button_PostNav_Prev:hover .chevron, .Button_PostNav_Next:hover .chevron {
    border-color: var(--color-highlight);
}

.Button_PostNav_Prev:disabled, .Button_PostNav_Next:disabled {
    background: rgb(204, 204, 204);
    cursor: not-allowed;
    opacity: 0.5;
}

.Back_to_List {
    background: rgb(60, 170, 220);
    color: var(--color-highlight);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.Back_to_List:hover {
    background: rgb(157, 212, 237);
    color: var(--color-highlight);
}

/* Post Content */
.Post_Container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5vw;
}

.Post {
    margin-bottom: 120px;
    padding-bottom: 10vh;
}

.Post_Text_Block {
    position: relative;
    text-align: left;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    font-size: 20px;
}

/* Post subtitle - standalone section headers */
.Post_Subtitle {
    text-align: left;
    max-width: 648px;
    margin: 0px auto 0px 0px;
    font-size: 24px;
    font-weight: bold;
    font-family: Trebuchet MS, Arial, sans-serif;
    color: var(--White);
    filter: brightness(0.4);
    line-height: 1.3;
}

.Post_List {
    position: relative;
    text-align: left;
    margin: 24px 0 24px 0;
    padding: 0;
    max-width: 648px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.Post_List li {
    text-align: left;
    margin-bottom: 8px;
    margin-left: 16px;
    line-height: 1.6;
	font-size: 20px;
}

ol.Post_List li {
    list-style-type: decimal;
}

/* Button Block */
.Post_Button_Block {
    margin: 16px 0;
    text-align: left;
}

.Post_Button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgb(60, 170, 220) 0%, rgb(40, 150, 200) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(60, 170, 220, 0.3);
}

.Post_Button:hover {
    background: linear-gradient(135deg, rgb(40, 150, 200) 0%, rgb(30, 130, 180) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 170, 220, 0.4);
}

.Post_Button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(60, 170, 220, 0.3);
}

/* TLDR Section */
.Post_TLDR_Container {
    background-color: rgb(240, 240, 240);
    padding: 20px 24px;
    margin: 16px 0;
    border-radius: 32px;
    border-left: 4px solid rgb(60, 170, 220);
}

/* Log Post Blocks */
.Log_Block_Container {
    background-color: rgb(245, 245, 245);
    padding: 20px 24px;
    margin: 16px 0;
    border-radius: 16px;
    border-left: 4px solid rgb(100, 100, 100);
}

.Log_Block_Header {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--Gray_120);
    text-transform: uppercase;
}

/* Linked Tasks Section */
.Post_Linked_Tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    padding: 0;
}

.Task_Pill_Reader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 48px;
    padding: 0 12px;
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.Task_Pill_Reader:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.Task_Pill_Reader:active {
    transform: translateY(0);
}

.Blog_TLDR_Header {
    font-weight: bold;
    font-size: 18px;
    color: rgb(60, 170, 220);
    cursor: pointer;
    user-select: none;
    font-family: Arial, sans-serif;
}

.Blog_TLDR_Header:hover {
    color: rgb(50, 150, 200);
}

.TLDR_Arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.Blog_TLDR {
    list-style-position: inside;
    display: none;
    padding-left: 0;
    margin: 12px 0 0 0;
}

.Blog_TLDR li {
    text-align: left;
	margin-bottom: 4px;
	line-height: 1.6;
	font-size: 14px;
	color: var(--Gray_70);
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Blog Images and Videos */
.Blog_Image {
    text-align: center;
    margin: 24px 0;
}

.Blog_Image img,
.Blog_Image video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Post Header Divider */
.Post_Header_Divider {
    border: none;
    border-top: 1px solid rgb(220, 220, 220);
    margin: 10px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Author Info Section */
.Author_Info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.Author_Name {
    font-size: 18px;
}

.Author_Portrait {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgb(221, 221, 221);
}

.Author_Details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Post Header Grid - all sizes */
.Post_Header {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 24fr 24px 64px;
}

.Post_Type_Container {
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    text-transform: uppercase;
}

.Post_Header_Title {
    grid-row: 2;
    text-align: center;
    font-size: clamp(24px, 5vw, 40px);
    margin: 0;
    color: var(--Gray_100);
}

.Post_Header_Date {
    grid-row: 3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Post_Header_Author_Info {
    grid-row: 4;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================================================
   MOBILE RESPONSIVE - Post View
   ============================================================================ */

@media (max-width: 768px) {
    .Post_Category, .Text_Body {
        font-size: 12px !important;
    }
    
    /* Reduce post header title size on mobile */
    .Post_Header_Title {
        font-size: 20px !important;
    }
    
    /* Hide edit mode button in mobile */
    .Blog_Edit_Toggle {
        display: none !important;
    }
    
    /* Reduce body text size in mobile */
    #Page_News_Content .Text_Body {
        font-size: 16px !important;
    }
    
    /* Override for Post_Subtitle - must come after general Text_Body rule */
    #Page_News_Content .Post_Subtitle {
        font-size: 20px !important;
    }
    
    .h3 {
        font-size: 20px !important;
    }
    
    /* Make list text in Post_Updates 14px */
    .Post_List li {
        font-size: 16px;
    }
    
    /* Post Type badge text */
    #Page_News_Content .Post_Type {
        font-size: 10px !important;
    }
}


/* ============================================================================
   LOCKED CONTENT - Badge Access Control
   ============================================================================ */

.Post_Locked_Overlay {
    position: relative;
    padding: 0;
    margin: 0;
    text-align: center;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Post_Locked_Icon {
    font-size: 48px;
    margin-bottom: 24px;
    opacity: 0.7;
}

.Post_Locked_Title {
    font-family: Tahoma, sans-serif;
    font-size: 36px;
    color: var(--Gray_100);
    font-weight: 600;
}

.Post_Locked_Description {
    font-family: Tahoma, sans-serif;
    font-size: 24px;
    color: var(--Gray_100);
    
    margin: 24px;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

/* Override Button_Pill styling when used in locked content */
.Button_Badge-Warning_Login {
    --Button_Height: 48px;
    --Button_Color: var(--White);
    background-color: var(--Azure);
    text-transform: uppercase;
    border: 0;
}

.Button_Badge-Warning_Login:hover {
    --Button_Color: var(--White);
    background-color: var(--Azure);
    filter: brightness(1.25);
}