/* --- Global Styles --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; 
    color: #333;
    line-height: 1.6;
}

main {
    padding-top: 70px; 
    padding-bottom: 50px;
}

/* --- Header & Navigation --- */
header {
    background-color: #1a73e8; 
    color: white;
    padding: 10px 0;
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-and-title {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px; 
    height: 40px;
    border-radius: 50%; 
    margin-right: 10px;
}

.site-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #3f51b5; 
}

/* --- Hero Section (Home Page) --- */
.hero {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9); 
    color: #004d40;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 5px solid #4caf50; 
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.5em;
    margin-top: 0;
    font-weight: 800;
    color: #1a73e8; 
}

.hero p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 15px auto 0;
}

/* --- Posts Preview (Home Page) --- */
section h2 {
    text-align: center;
    color: #37474f;
    font-size: 2.2em;
    margin-bottom: 30px;
    text-transform: uppercase;
}

#posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-preview {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    padding: 25px;
    width: calc(50% - 15px); 
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
}

.post-preview:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.post-preview h3 {
    margin: 5px 0 10px 0;
    font-size: 1.5em;
    font-weight: 700;
}

.post-preview h3 a {
    color: #1a73e8; 
    text-decoration: none;
}
.post-preview h3 a:hover {
    text-decoration: underline;
}

.post-preview .date {
    display: block;
    color: #78909c;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #4caf50; 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.read-more:hover {
    color: #388e3c;
}

/* --- Contact Form Section (Home Page) --- */

.contact-form-section {
    max-width: 700px;
    margin: 60px auto 40px auto; 
    padding: 40px; 
    background: #ffffff; 
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    border-top: 5px solid #1a73e8; 
    text-align: left;
}

.contact-form-section h2 {
    color: #1a73e8;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.2em;
}

.contact-form-section p {
    text-align: center;
    color: #546e7a;
    margin-bottom: 30px;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #263238;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #b0bec5; 
    border-radius: 8px; 
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2); 
    outline: none;
}

/* --- စာပို့မည် (Submit Button) အတွက် CSS (စာသားပါသော Button) --- */
.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #4caf50; 
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px #388e3c; 
}

.contact-form button[type="submit"]:hover {
    background-color: #388e3c;
    box-shadow: 0 2px #1b5e20;
    transform: translateY(2px); 
}

.contact-form button[type="submit"]:active {
    transform: translateY(4px);
    box-shadow: none;
}
/* ---------------------------------------------------------------- */

/* --- Footer --- */
footer {
    background-color: #263238; 
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* ####################################################### */
/* --- posts.html (စာရင်းအသစ်) အတွက် ပုံစံများ (ဤ Code များသည် posts.html တွင်သာ အကျိုးသက်ရောက်မည်) --- */

.new-post-list-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.numbered-list-with-line {
    list-style: none;
    padding-left: 0;
    position: relative;
    border-left: 3px solid #b0bec5; 
}

.numbered-list-with-line li {
    margin-bottom: 35px; 
    padding-left: 35px; 
    position: relative;
    background-color: white;
    padding: 15px 15px 15px 45px; 
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); 
    transition: box-shadow 0.3s;
}
.numbered-list-with-line li:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.list-number {
    position: absolute;
    left: 2px; 
    top: 15px; 
    background: #1a73e8; 
    color: white;
    font-weight: 700;
    padding: 5px 8px; 
    border-radius: 50%; 
    font-size: 0.9em;
    border: 3px solid #f0f4f8; 
    min-width: 30px;
    text-align: center;
}

.list-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.list-content h3 a {
    color: #263238;
    text-decoration: none;
}

.list-content h3 a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.list-content p {
    color: #546e7a;
    margin-bottom: 5px;
}

.list-content .date {
    display: block;
    font-size: 0.85em;
    color: #78909c;
}

/* --- Mobile Responsiveness --- */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        margin: 0 10px;
        padding: 5px;
    }
    
    .post-preview {
        width: 100%; 
    }
    
    .numbered-list-with-line {
        margin-left: 5px; 
    }
    
    .numbered-list-with-line li {
        padding: 15px 15px 15px 45px;
    }
}
/* --- free.html (အခမဲ့ အကြောင်းအရာများ စာမျက်နှာ) အတွက် ပုံစံများ --- */

/* --- free.html (Copy/Paste Tool) အတွက် ပုံစံများ --- */

.copy-tool-section {
    max-width: 800px;
    margin: 40px auto; /* Page အလယ်မှာ နေရာယူရန် */
    padding: 0 20px;
    text-align: center;
}

.copy-tool-section h2 {
    color: #1a73e8;
    margin-bottom: 10px;
}

.copy-tool-section p {
    color: #546e7a;
    margin-bottom: 30px;
}

.copy-container {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative; /* Message အတွက် */
}

#copyTextarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #b0bec5;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: monospace; /* စာသားကို ဖတ်ရလွယ်အောင် */
    resize: vertical; /* အကွက်အရွယ်အစားကို ဆွဲဆန့်နိုင်စေရန် */
    margin-bottom: 15px;
}

.copy-button {
    width: 100%;
    padding: 12px;
    background-color: #4caf50; 
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 3px #388e3c; 
}

.copy-button:hover {
    background-color: #388e3c;
    box-shadow: 0 1px #1b5e20;
    transform: translateY(2px);
}

.copy-message {
    position: absolute;
    bottom: 8px; /* Button နဲ့ နည်းနည်းကွာပြီး ပေါ်စေရန် */
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a73e8;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    opacity: 0; /* ပုံမှန်အားဖြင့် ဖျောက်ထားသည် */
    transition: opacity 0.5s;
    font-size: 0.9em;
    z-index: 10;
}
/* ======================================================= */
/* --- နေရာတိုင်းရှိ Content Section အတွက် အလှဆင်ခြင်း --- */
/* ======================================================= */

/* posts.html, free.html, buy.html တို့ရှိ အဓိက Content Section များ */
.posts-section, /* posts.html မှာ အသုံးပြုမယ့် Section Class */
.copy-tool-section, /* free.html မှာ အသုံးပြုမယ့် Section Class */
.product-list-section, /* buy.html မှာ အသုံးပြုမယ့် Section Class */
.basic-page-content { /* အခြားရိုးရှင်းသော Page များအတွက် */
    /* Home Page မှ post-preview-section နှင့် ဆင်တူသော အရောင်နှင့် ပုံစံ ပေးခြင်း */
    background-color: #f7f9fc; /* နူးညံ့သော အပြာနုရောင်/ခရင်မ်ရောင် */
    border-radius: 15px; /* အဝိုင်းပုံစံ အနားကွပ် */
    padding: 30px;
    margin-bottom: 40px; /* အောက်ဘက် ခြားရန် */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* အနည်းငယ် အရိပ်ပေးခြင်း */
    border-top: 5px solid #4CAF50; /* အစိမ်းရောင် Border အပေါ်က ထည့်ခြင်း (KP Theme အရောင်) */
    
    /* စာသားတွေ အလယ်မှာ စုနေရင် ကောင်းအောင် အကျယ်ဆုံး သတ်မှတ်ခြင်း */
    max-width: 850px; 
    margin-left: auto;
    margin-right: auto;
}

/* ======================================================= */
/* --- posts.html စာသား အရွယ်အစား ချိန်ညှိခြင်း (New Styles) --- */
/* ======================================================= */

/* posts.html မှ Post ခေါင်းစဉ်များ (Post Titles) ကို အရွယ်အစား လျှော့ချခြင်း */
.post-list .post-item h3 {
    font-size: 1.35em; /* ကြည့်ကောင်းသော အရွယ်အစား (ပုံမှန်ထက် နည်းငယ်ကြီး) */
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #1a73e8; /* (KP Theme အရောင်) */
    line-height: 1.3;
}

/* Post အတိုချုပ် (စာသား/Description) များ */
.post-list .post-item p {
    font-size: 1em; /* ပုံမှန် စာဖတ်အရွယ်အစား (16px ခန့်) */
    color: #37474f;
    line-height: 1.6; /* စာဖတ်ရလွယ်ကူစေရန် စာကြောင်းကြား ခြားနားမှု */
    margin-bottom: 10px;
}

/* Post ရက်စွဲ (Date) များကို ပုံစံချခြင်း */
.post-list .post-item .date-info {
    font-size: 0.85em; /* သေးငယ်သော အရွယ်အစား */
    color: #78909c;
    display: block; 
    margin-top: 5px;
    font-weight: 500;
}
/* ======================================================= */
/* --- Copy Button (စာသား ကူးယူမည် ခလုတ်) အလှဆင်ခြင်း --- */
/* (Home Page မှ Submit Button ပုံစံအတိုင်း) */
/* ======================================================= */

#copyButton { /* free.html မှာရှိတဲ့ Copy Button ID */
    /* အဓိက အရောင်နှင့် ပုံစံ */
    background-color: #4CAF50; /* အဓိက အစိမ်းရောင် (KP Theme) */
    color: white; /* စာသားအရောင် */
    font-size: 1.1em;
    font-weight: 600;
    padding: 12px 30px; 
    border: none;
    border-radius: 8px; /* အနားကွပ်ဝိုင်းခြင်း */
    cursor: pointer;
    transition: box-shadow 0.1s, transform 0.1s;
    width: 100%; /* Copy Area အောက်ခြေ အပြည့် ယူထားခြင်း */
    max-width: 300px; /* အရမ်းမကြီးစေရန် ကန့်သတ်ခြင်း */
    margin-top: 20px;
    
    /* 3D ပုံစံ အရိပ် (Home Page Submit ခလုတ်နှင့် တူအောင်) */
    box-shadow: 0 5px #388e3c; /* ပိုမိုနက်သော အစိမ်းရောင် အရိပ် */
    display: flex;
    align-items: center;
    justify-content: center;
}

#copyButton:hover {
    background-color: #5cb85c; /* Hover Effect */
}

#copyButton:active {
    /* နှိပ်လိုက်တဲ့အခါ အောက်ဘက် အရိပ် ပျောက်ပြီး အပေါ်ကို တက်သွားသော ပုံစံ */
    box-shadow: 0 2px #388e3c; 
    transform: translateY(3px);
}

/* Icon (✅) အတွက် ပုံစံ */
.button-icon {
    margin-right: 8px;
    font-size: 1.2em;
}
/* ======================================================= */
/* --- File Upload (ဖိုင်တင်ရန်) Section ပုံစံ --- */
/* ======================================================= */

.file-upload-section {
    max-width: 850px; /* content section ရဲ့ အကျယ်အတိုင်း ယူထားခြင်း */
    margin: 40px auto 20px auto; 
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Home Page box-shadow ပုံစံ */
}

.upload-container {
    margin-top: 15px;
    text-align: center;
}

/* input type="file" အစစ်အမှန်ကို ဝှက်ထားခြင်း */
.hidden-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1; /* Screen ပေါ်မှ လုံးဝ ဖျောက်ထားခြင်း */
}

/* ======================================================= */
/* --- Upload Button (Label) ကို ပုံစံချခြင်း (Copy ခလုတ်နှင့် ပုံစံတူ) --- */
/* ======================================================= */

.styled-upload-button {
    /* အဓိက အရောင်နှင့် ပုံစံ */
    background-color: #4CAF50; /* အဓိက အစိမ်းရောင် */
    color: white; 
    font-size: 1.1em;
    font-weight: 600;
    padding: 12px 30px; 
    border: none;
    border-radius: 8px; /* အနားကွပ်ဝိုင်းခြင်း */
    cursor: pointer;
    transition: box-shadow 0.1s, transform 0.1s;
    
    /* 3D ပုံစံ အရိပ် */
    box-shadow: 0 5px #388e3c; 
    display: inline-flex; /* display: flex အစား label အတွက် inline-flex */
    align-items: center;
    justify-content: center;
    
    max-width: 300px;
    margin-bottom: 10px;
    /* width: 100%; (လိုအပ်ပါက ဖွင့်နိုင်သည်) */
}

.styled-upload-button:hover {
    background-color: #5cb85c; 
}

.styled-upload-button:active {
    /* နှိပ်လိုက်တဲ့အခါ အပေါ်ကို တက်သွားသော ပုံစံ */
    box-shadow: 0 2px #388e3c; 
    transform: translateY(3px);
}

.styled-upload-button .button-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* ဖိုင်အမည်ပြသရန် ပုံစံ */
.file-name-display {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}
/* ======================================================= */
/* --- input type="file" ကို ဝှက်ထားသော CSS (Mobile-Friendly) --- */
/* ======================================================= */
.hidden-input {
    /* အမြင်ဖျောက်ခြင်း */
    opacity: 0; 
    
    /* အရွယ်အစား အနီးဆုံး ဖြစ်အောင်ထားခြင်း */
    width: 0.1px;
    height: 0.1px;
    
    /* စာမျက်နှာ အပြင်အဆင်မှ လုံးဝဖယ်ထားခြင်း */
    position: absolute;
    overflow: hidden;
    z-index: -1; 
}
