/* =============================================
   COZY CORNER - Main Stylesheet
   Colors: Pastel Sky Blue, Light Green, Lotus Pink
   Compatible with Neocities (pure CSS/HTML)
   ============================================= */

/* --- Google Fonts fallback --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --sky-blue:    #AED9E0;
  --sky-light:   #D6F0F5;
  --sky-pale:    #EEF8FA;
  --green:       #B8DDB0;
  --green-light: #D9F0D4;
  --green-pale:  #F0F8EE;
  --pink:        #F2B5C8;
  --pink-light:  #FAD9E5;
  --pink-pale:   #FEF0F4;
  --text-dark:   #4A3F3F;
  --text-mid:    #6B5B5B;
  --text-light:  #9B8888;
  --white:       #FEFEFE;
  --shadow:      rgba(150, 120, 120, 0.15);
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Lato', Helvetica, Arial, sans-serif;
  --radius:      14px;
  --radius-sm:   8px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background-color: var(--sky-pale);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(174,217,224,0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(242,181,200,0.20) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(184,221,176,0.15) 0%, transparent 60%);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* --- TOP BANNER --- */
.top-banner {
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--pink-light) 50%, var(--green-light) 100%);
  border-bottom: 3px solid var(--white);
  text-align: center;
  padding: 24px 20px 0;
  position: relative;
  box-shadow: 0 4px 16px var(--shadow);
}

.banner-inner {
  padding-bottom: 16px;
}

.banner-deco {
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 10px;
  opacity: 0.8;
}

.site-title {
  font-family: var(--font-head);
  font-size: 2.8rem;
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(150,100,100,0.2);
  letter-spacing: 2px;
  margin: 6px 0 4px;
}

.site-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 10px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.5);
}

.top-nav a {
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  transition: background 0.2s;
}

.top-nav a:hover {
  background: rgba(255,255,255,0.5);
}

/* --- PAGE WRAPPER --- */
.page-wrapper {
  display: flex;
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 16px;
  gap: 22px;
  align-items: flex-start;
}

/* --- SIDEBAR --- */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 18px 14px;
  border: 2px solid var(--pink-light);
  position: sticky;
  top: 20px;
}

.sidebar-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--text-dark);
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--pink-light);
  margin-bottom: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 5px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.sidebar-link:hover {
  background: var(--pink-pale);
  transform: translateX(3px);
}

.link-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.link-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.link-desc {
  font-size: 0.72rem;
  color: var(--text-light);
}

.sidebar-divider {
  border: none;
  border-top: 2px dashed var(--green-light);
  margin: 14px 0;
}

.sidebar-widget {
  background: var(--sky-pale);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.sidebar-widget.mood {
  background: var(--pink-pale);
}

.widget-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.mood-bar {
  background: var(--green-light);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
}

.mood-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sky-blue), var(--pink));
  border-radius: 20px;
}

/* --- MAIN CONTENT --- */
.main-content {
  flex: 1;
  min-width: 0;
}

.welcome-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 26px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 2px solid var(--sky-light);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sky-blue), var(--pink), var(--green));
}

.welcome-text h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.welcome-text p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 8px;
  line-height: 1.7;
}

.welcome-deco {
  font-size: 3.5rem;
  opacity: 0.25;
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-left: 6px;
  border-left: 4px solid var(--pink);
  padding-left: 10px;
}

/* --- HOBBY CARDS GRID --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.hobby-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 3px 14px var(--shadow);
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid transparent;
  cursor: pointer;
}

.hobby-card.blue  { border-top-color: var(--sky-blue); }
.hobby-card.pink  { border-top-color: var(--pink); }
.hobby-card.green { border-top-color: var(--green); }

.hobby-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.card-icon { font-size: 2rem; margin-bottom: 8px; }

.hobby-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.hobby-card p {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 12px;
}

.card-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  transition: color 0.2s;
}

.hobby-card:hover .card-btn { color: var(--text-dark); }

/* --- BOTTOM QUOTE --- */
.bottom-quote {
  background: linear-gradient(135deg, var(--pink-pale), var(--sky-pale));
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-mid);
  border: 1px solid var(--pink-light);
  margin-bottom: 10px;
}

/* --- FOOTER --- */
.site-footer {
  text-align: center;
  padding: 22px 16px;
  background: var(--white);
  border-top: 3px solid var(--sky-light);
  font-size: 0.82rem;
  color: var(--text-light);
}

.site-footer a { color: var(--sky-blue); font-weight: 700; }
.site-footer a:hover { color: var(--pink); }

/* =============================================
   INNER PAGE STYLES
   ============================================= */

.page-hero {
  background: linear-gradient(135deg, var(--sky-light), var(--pink-light), var(--green-light));
  padding: 32px 30px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 3px 14px var(--shadow);
}

.page-hero .hero-icon { font-size: 3rem; margin-bottom: 10px; }

.page-hero h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.page-hero p {
  font-size: 0.92rem;
  color: var(--text-mid);
  font-style: italic;
}

/* Content blocks on inner pages */
.content-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px var(--shadow);
  border-left: 4px solid var(--sky-blue);
}

.content-block.pink-border  { border-left-color: var(--pink); }
.content-block.green-border { border-left-color: var(--green); }

.content-block h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.content-block p, .content-block li {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Upload Section */
.upload-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px var(--shadow);
}

.upload-section h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.upload-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.upload-tab {
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: var(--sky-pale);
  color: var(--text-dark);
}

.upload-tab:hover, .upload-tab.active {
  background: var(--sky-blue);
  border-color: var(--sky-blue);
  color: var(--white);
}

/* Hidden upload content panels */
.upload-panel { display: none; }
.upload-panel.active { display: block; }

.upload-drop-zone {
  border: 2px dashed var(--pink);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  background: var(--pink-pale);
  color: var(--text-mid);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.upload-drop-zone:hover { background: var(--pink-light); }

.upload-drop-zone .drop-icon { font-size: 2.5rem; margin-bottom: 10px; }

.upload-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 22px;
  background: var(--pink);
  color: var(--white);
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.upload-btn:hover { background: var(--pink-light); color: var(--text-dark); }

/* Real file input hidden, label acts as button */
.file-input-real {
  display: none;
}

/* Media Gallery Grid */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.media-thumb {
  background: var(--sky-pale);
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-light);
  border: 2px solid var(--sky-light);
  overflow: hidden;
  position: relative;
}

.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb video { width: 100%; height: 100%; object-fit: cover; }

.media-placeholder {
  text-align: center;
  color: var(--text-light);
  font-size: 0.78rem;
  padding: 10px;
}

/* Video embed input */
.embed-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--sky-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.embed-input:focus { border-color: var(--sky-blue); }

.embed-preview {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 12px;
}

.embed-preview iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-sm);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: color 0.2s, background 0.2s;
}

.back-link:hover { color: var(--text-dark); background: var(--pink-pale); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 780px) {
  .page-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }
  .sidebar-title { width: 100%; }
  .sidebar-link { width: calc(50% - 3px); }
  .sidebar-widget { width: 100%; }
  .sidebar-divider { width: 100%; }
  .site-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-link { width: 100%; }
}
