/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* =================================================================== */
/* --- 1. Global Variables & Reset --- */
/* =================================================================== */
:root {
  --primary-color: coral;
  --background-color: rgb(240, 242, 245);
  --card-background: #ffffff;
  --text-color: #333333;
  --light-text-color: #555;
  --hover-color: #ff6347;
  --border-color: #e9ecef;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; }


/* =================================================================== */
/* --- 2. Sticky Footer & Core Layout --- */
/* =================================================================== */
html { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; background: var(--background-color); color: var(--text-color); }
main { flex-grow: 1; width: 100%; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }


/* =================================================================== */
/* --- 3. Reusable Components (Header & Footer) --- */
/* =================================================================== */
.site-header, .site-footer { width: 100%; flex-shrink: 0; }
.site-header { background: var(--card-background); padding: 1rem 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-header .logo { font-size: 1.5rem; font-weight: 600; color: var(--primary-color); }
.site-header nav ul { list-style: none; display: flex; gap: 1.5rem; }
.site-header nav a { text-decoration: none; color: var(--text-color); font-weight: 500; }
.site-header nav a:hover { color: var(--primary-color); }

.site-footer { background: #343a40; color: #fff; padding: 40px 0; text-align: center; }
.site-footer a { color: #fff; text-decoration: none; margin: 0 15px; }
.site-footer a:hover { color: var(--primary-color); }
.site-footer .footer-links { margin-bottom: 20px; }
.site-footer .disclaimer { font-size: 0.8rem; color: #adb5bd; margin-top: 10px; max-width: 600px; margin-left: auto; margin-right: auto; }


/* =================================================================== */
/* --- 4. Homepage Tool Styles --- */
/* =================================================================== */
.tool-section { padding: 50px 0; }
form.thumbnail-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--card-background);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.thumbnail-form header { text-align: center; margin-bottom: 20px; }
.thumbnail-form header h1 { font-size: 28px; font-weight: 600; color: var(--primary-color); margin-bottom: 5px; }
.thumbnail-form header p { font-size: 1rem; color: var(--light-text-color); }
.thumbnail-form .url-input { margin: 30px 0; }
.url-input .title { font-size: 18px; font-weight: 500; display: block; margin-bottom: 8px; }
.url-input .field { height: 50px; width: 100%; position: relative; }
.url-input .field input { width: 100%; height: 100%; border: none; outline: none; padding: 0 15px; font-size: 15px; background: #F1F1F7; border-bottom: 2px solid #ccc; }
.url-input .field .bottom-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--primary-color); transform: scale(0); transition: transform 0.3s ease; }
.url-input .field input:focus ~ .bottom-line, .url-input .field input:valid ~ .bottom-line { transform: scale(1); }
.preview-area { border-radius: 5px; height: 220px; display: flex; overflow: hidden; align-items: center; justify-content: center; flex-direction: column; border: 2px dashed var(--primary-color); }
.preview-area.active { border-style: solid; border-color: transparent; height: auto; }
.preview-area .thumbnail { width: 100%; display: none; border-radius: 5px; }
.preview-area.active .thumbnail { display: block; }

/* Styles for the icon and text when NO preview is active */
.preview-area .icon { color: var(--primary-color); font-size: 70px; margin-bottom: 20px; }
.preview-area span { color: var(--light-text-color); font-size: 1rem; font-weight: 500; text-align: center; }

/* This hides the icon and text WHEN a preview IS active */
.preview-area.active .icon, .preview-area.active span { display: none; }

.download-btn { color: #fff; height: 53px; width: 100%; outline: none; border: none; font-size: 17px; cursor: pointer; margin: 30px 0 10px 0; border-radius: 5px; background: var(--primary-color); transition: background 0.3s ease; pointer-events: none; }
.download-btn:hover { background: var(--hover-color); }


/* =================================================================== */
/* --- 5. Informational Pages & FAQ Content Styles --- */
/* =================================================================== */
.content-section { padding: 50px 0 60px 0; }
.content-wrapper { background: var(--card-background); padding: 30px 40px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.content-wrapper h1, .content-wrapper h2 { color: var(--text-color); margin-bottom: 15px; }
.content-wrapper h1 { padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.content-wrapper h2 { margin-top: 30px; }
.content-wrapper p, .content-wrapper li { line-height: 1.7; color: var(--light-text-color); margin-bottom: 1rem; }
.content-wrapper a { color: var(--primary-color); font-weight: 500; }
.content-wrapper ol, .content-wrapper ul { padding-left: 20px; }

.faq-item { border-bottom: 1px solid var(--border-color); padding: 15px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { font-weight: 500; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; font-size: 1.5rem; color: var(--primary-color); }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] > p { margin-top: 10px; }


/* =================================================================== */
/* --- 6. Blog Page Styles (Index & Individual Post) --- */
/* =================================================================== */
.blog-intro { text-align: center; margin-bottom: 2.5rem; }
.blog-intro h1 { color: var(--primary-color); font-size: 2.5rem; }
.blog-intro p { font-size: 1.1rem; color: var(--light-text-color); max-width: 600px; margin: 0.5rem auto 0; }
.blog-image { width: 100%; height: auto; border-radius: 8px; margin-bottom: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.blog-post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.post-card { background: var(--card-background); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.post-card-image { width: 100%; height: 200px; object-fit: cover; }
.post-card-content { padding: 20px 25px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card-content h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.post-card-content h2 a { text-decoration: none; color: var(--text-color); }
.post-card-content h2 a:hover { color: var(--primary-color); }
.post-excerpt { color: var(--light-text-color); line-height: 1.6; flex-grow: 1; }
.read-more-btn { display: inline-block; margin-top: 1rem; font-weight: 500; color: var(--primary-color); text-decoration: none; }
.read-more-btn::after { content: ' →'; }