/*	------------------------------------------------------------------	*/
/* 	CSS for the User pages of ADailyInspiration							*/
/*	Table of Contents:													*/
/*		Globals															*/
/*		Media Types														*/
/*		Typography														*/
/*		Utility 														*/
/*		Components														*/
/*			ButtonShadow												*/
/*			Legends														*/
/*		Page Specific													*/
/*																		*/
/*	Conventions:														*/
/* 		Classes     - kebab-case                                        */
/*      IDs         - camelCase                                         */
/*      Variables   - UPPER_CASE (PHP constants)                        */
/*                  --kebab-case (CSS custom properties)                */
/*	------------------------------------------------------------------	*/

/*	------------------------------------------------------------------	*/
/*	Globals																*/
/*	------------------------------------------------------------------	*/
:root {

    --color-background: #070608;
    --color-surface: #15141B;

    --color-purple: #5D2EA8;
    --color-violet: #8E63D8;

    --color-gold: #F59A16;
    --color-gold-light: #FFD04B;
	
	--color-cream: #f5de9d;

    --color-text: #F6F1E8;
    --color-text-secondary: #B8AFA3;

    --color-border: #35254E;

}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {

    margin: 0;

    background: var(--color-background);

    color: var(--color-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

}

section {

    padding:90px 0;

}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
}

/* ------- */
/* HEADER: */
/* ------- */

.site-header .container {
  display: flex;
  align-items: center;            /* Vertically centers the logo and nav */
  justify-content: center; 
}

.container {
    max-width: 	1100px;
    margin: 	0 auto;
    padding: 	0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.logo:hover {
    color: var(--color-gold);
}

.logo span {
  font-size: 1.75rem; /* Makes the text larger */
  line-height: 1;     /* Prevents invisible font padding from pushing text down */
  margin-top: 4px;    /* Manually aligns the text baseline with the sphere core */
}


/* ------- */
/* FOOTER: */
/* ------- */
.footer-tagline {
	margin: 0 0 0 0; /* top right bottom left */
	color: var(--color-violet); /* Uses your lighter violet accent color */
	font-style: italic;         /* Distinguishes it immediately from standard text */
	font-size: 1.1rem;          /* Bumps size up slightly from normal body text */
	letter-spacing: 0.02em;     /* Adds a tiny bit of breathing room between characters */
}

.footer-nav ul {
  display: flex;
  justify-content: center; /* Centers the links horizontally */
  gap: 1.5rem;             /* Adds clean spacing between the links */
  list-style: none;        /* Removes the bullet points */
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;    /* Removes standard underlines from links */
  color: var(--color-cream); /* Uses the existing text color variable */
  padding-bottom: 2px;      /* Creates a tiny gap between text and your border line */
  border-bottom: 2px solid transparent; /* Invisible placeholder prevents layout shift */
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-gold); /* Uses the existing gold hover variable */
  border-bottom: 2px solid var(--color-gold); /* Smoothly reveals line below */
}

.site-footer .container {
  display: flex;
  flex-direction: column;  /* Stacks footer elements vertically */
  align-items: center;     /* Centers everything horizontally */
  gap: 1rem;               /* Adds spacing between the text and links */
  text-align: center;
}

.footer-copyright {
  font-size: 0.70rem;       /* Reduces the text size smaller than the body font */
  color: var(--color-text); /* Uses the existing text variable */
  opacity: 0.65;            /* Dims the text to 65% brightness so it looks muted */
  margin: 0 0 0 0; /* top right bottom left */
}

.site-footer hr {
	width:	70%;
	border: none;
	border-top: 1px solid #e0e0e0; border-top: 1px solid var(--color-border); /* Uses the deep purple border token */
	margin: 20px 0 5px 0; /* top right bottom left */
}

/* ------- */
/* HERO:   */
/* ------- */

/* 1. Target the outer section to establish the vertical height */
.hero {
  min-height: 50vh;       /* Forces the section to span 65% of the viewport height */
  display: flex;          /* Allows flexbox alignment */
  align-items: center;    /* Vertically centers the inner container within this tall space */
  justify-content: center;
  padding: 40px 0;        /* Protects spacing if viewed on very short screens */
}

/* 2. The container handles the internal column layout */
.hero .container {
  width: 100%;            /* Ensures full-width access inside the flex parent */
  display: flex;
  flex-direction: column; /* Stacks everything vertically */
  align-items: center;    /* Centers elements horizontally */
  text-align: center;     /* Centers text lines inside tags */
}

.hero-tagline {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* Optional: Adds clean spacing between the heading and the paragraph */
.hero h1 {
  margin-bottom: 1.5rem;
}


/* Construction Notice Styling */
.construction-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-surface); /* Dark contrasting gray background box */
  border: 1px solid var(--color-border);    /* Muted purple stroke line */
  color: var(--color-text-secondary);       /* Softer gray text color */
  padding: 8px 16px;
  border-radius: 30px;                       /* Pills container look */
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

/* Pulsing Status Dot Indicator Animation */
.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);     /* Amber brand accent dot */
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* App Download Badges Layout */
.app-badges {
  display: flex;
  flex-wrap: wrap;       /* Flows buttons into rows neatly on small viewports */
  justify-content: center;
  gap: 1.25rem;          /* Distinct separation gutters */
  margin-top: 1rem;
}

.badge-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); 
}

/* Explicit scaling limits for the App Store icon button wrapper */
.app-store-btn {
  max-width: 135px;
}

/* 
  Slightly downscales the Google Play button width by roughly 4.5% 
  to counteract its wider built-in asset layout padding box.
*/
.google-play-btn {
  max-width: 129px; 
}

/* Ensures the inner SVGs stay bounded to their explicit wrapper limits */
.badge-link svg {
  display: block;
  width: 100%;
  height: auto;
}


/* Interactive Feedback Hover Treatments */
.badge-link:hover {
  transform: translateY(-2px); /* Gentle vertical lift */
  opacity: 0.95;               /* Slight lightning pop feedback */
}

.badge-link:active {
  transform: translateY(0);    /* Normal bounce back down when clicked */
}

/* -------------- */
/* Legal Pages:   */
/* -------------- */
/* Shared container for all legal documents */
.legal-content {
  max-width: 750px;
  margin: 40px auto;
  padding: 0 24px;       /* Aligns with the 24px container padding */
  line-height: 1.6;
  /* Removed duplicate font-family so it inherits Inter from the body */
}

/* Shared typography styling */
.legal-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--color-gold); /* Gives the main title the signature branding color */
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 16px 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border); /* Swapped for the deep purple border color */
  padding-bottom: 8px;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: var(--color-violet); /* Highlights subheadings with the lighter violet */
}

.legal-content p {
  margin: 0 0 16px 0;
  color: var(--color-text-secondary); /* Mutes long paragraphs slightly for better readability */
}

.legal-content ul, .legal-content ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
  color: var(--color-text-secondary); /* Matches paragraphs */
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--color-gold-light); /* Highly visible cream-gold links */
  text-decoration: underline;
  transition: color 0.2s ease; /* Smooth transition when hovering */
}

.legal-content a:hover {
  color: var(--color-gold); /* Darker gold shifts on hover */
}

/* ------- */
/* FAQ:    */
/* ------- */

.faq-title {
  font-size: 2.5rem;
  color: var(--color-gold);
  text-align: center;
  margin: 0 0 10px 0;
}

.faq-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Two-column layout grid on desktop */
.faq-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Accordion Item Styling */
.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: var(--color-violet);
}

/* The Clickable Header */
.faq-item summary {
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none; /* Hides standard browser arrow marker */
  position: relative;
}

/* Custom interactive indicator arrow */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  color: var(--color-gold);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "—";
  color: var(--color-violet);
}

/* Animated Answer Container */
.faq-answer {
  padding: 0 24px 24px 24px;
  color: var(--color-text-secondary);
  border-top: 1px solid rgba(53, 37, 78, 0.4); /* Faint accent separator line */
  padding-top: 16px;
}

.faq-answer p {
  margin: 0;
}

/* App Screenshot Wrapper */
.faq-preview-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.preview-heading {
  margin: 0 0 1.5rem 0;
  color: var(--color-violet);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

/* Phone Framing Wrapper to lift images off dark backgrounds */
.phone-mockup {
  background: #000000;
  border: 8px solid #222;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.7);
  display: inline-block;
  max-width: 240px; /* Forces a smartphone-proportional bounding width */
}

.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  background-color: #111; /* Keeps placeholder space dark before loading */
}

/* Mobile Responsiveness Viewport Rules */
@media (max-width: 768px) {
  .faq-layout {
    grid-template-columns: 1fr; /* Stacks the screenshot column under the text questions on phone viewports */
    gap: 2rem;
  }
}

/* ------- */
/* CONTACT:*/
/* ------- */

.contact-page {
  padding: 60px 0;
}

.contact-card {
  max-width: 550px;
  margin: 0 auto;
  background-color: var(--color-surface); 
  border: 1px solid var(--color-border); 
  border-radius: 12px;
  padding: 40px 20px; /* CHANGED FROM 40px to 40px 20px: Frees up side room inside the card on mobile */
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;        /* Forces card container scaling */
}

.contact-title {
  font-size: 2.25rem;
  color: var(--color-gold);
  margin: 0 0 12px 0;
}

.contact-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-instruction {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Call to Action Button Style */
.email-support-btn {
  display: inline-block;
  background-color: var(--color-purple);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 100%;       
  box-sizing: border-box; 
}

.email-support-btn:hover {
  background-color: var(--color-surface);
  border-color: var(--color-gold); 
  color: var(--color-gold);
  transform: translateY(-2px);
}

.email-support-btn:active {
  transform: translateY(0);
}

/* Combined Mobile Optimization: Covers all smartphone widths under 768px */
@media (max-width: 768px) {
  .email-support-btn {
    padding: 12px 14px !important;  /* Sharp reduction in internal side-padding padding */
    font-size: 0.88rem !important;  /* Safely scales text down so 29 characters stay on one line */
  }
}
