/* ===================================
   AI FAMA HOMEPAGE - SPROUT SOCIAL STYLE
   Exact visual replication with AI Fama colors
   Ultra-light, fast, professional
   =================================== */

:root {
  --color-primary: #1C1C1E;
  --color-background: #F6F5F2;
  --color-secondary: #8E8E93;
  --color-accent: #9C7A4B;
  --color-white: #FFFFFF;
  --color-border: #E5E5E5;
  --color-hover: #736045;
  --color-light-bg: #FAFAF9;
}

/* Global Reset */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--color-primary);
  background: var(--color-background);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.aifama-homepage {
  background: var(--color-white);
}

/* Section Spacing - Sprout Social tightness */
section {
  padding: 48px 0;
  background: var(--color-white);
}

section:nth-child(even) {
  background: var(--color-background);
}

/* Section Headers */
.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-description {
  font-size: 15px;
  color: var(--color-secondary);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.section-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1C1C1E;
  margin-bottom: 18px;
  display: block;
}

.section-footer {
  margin-top: 28px;
  text-align: right;
}

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.2s ease;
  display: inline-block;
}

.link-arrow:hover {
  color: var(--color-hover);
}

/* ===================================
   SECTION 1: HERO 
   Sprout Social exact structure:
   - Left: Featured (60%)
   - Right: Editor's Picks (40%)
   =================================== */

.hero-section {
  padding: 32px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Featured Post - Sprout Social style */
.featured-post {
  background: var(--color-white);
  border-radius: 4px;
  overflow: visible;
}

.featured-card {
  display: flex;
  flex-direction: column;
}

.featured-image {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
}

.featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-post:hover .featured-image img {
  transform: scale(1.02);
}

.featured-content {
  padding: 0;
}

/* Categories wrapper for multiple pills */
.categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.featured-content .categories-wrapper {
  margin-bottom: 12px;
}

.pick-content .categories-wrapper {
  margin-bottom: 6px;
}

.card-content-small .categories-wrapper {
  margin-bottom: 6px;
}

/* Category Label - Sprout Social filled pill style */
.category-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F6F5F2;
  background: #1C1C1E;
  padding: 5px 11px;
  border-radius: 12px;
  margin-bottom: 0;
  margin-right: 0;
  transition: background 0.2s ease;
}

.category-label:hover {
  color: #F6F5F2;
  background: #1C1C1E;
  text-decoration: underline;
}

.featured-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.featured-title a {
  color: var(--color-primary);
  transition: color 0.2s;
}

.featured-title a:hover {
  color: var(--color-accent);
}

.featured-excerpt {
  display: none; /* Sprout doesn't show excerpt in featured */
}

.post-meta {
  display: none; /* Sprout doesn't show meta in featured */
}

/* Editor's Picks - Clean vertical list */
.editors-picks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pick-card {
  display: flex;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: none;
  transition: transform 0.2s ease;
}

.pick-card:hover {
  transform: translateX(3px);
}

.pick-thumbnail {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-light-bg);
}

.pick-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.pick-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
 color: #F6F5F2;
  background: #1C1C1E;
  padding: 4px 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.pick-category:hover {
   color: #F6F5F2;
  background: #1C1C1E;
  text-decoration: underline;
}

.pick-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.pick-title a {
  color: var(--color-primary);
  transition: color 0.2s;
}

.pick-title a:hover {
  color: var(--color-accent);
}

.pick-meta {
  font-size: 12px;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

/* ===================================
   POST GRIDS - Sprout Social style
   No borders, subtle shadows only
   =================================== */

.post-grid {
  display: grid;
  gap: 28px;
}

.post-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Small Post Card - even more minimal */
.post-card-small {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
  transition: transform 0.2s ease;
}

.post-card-small:hover {
  transform: translateY(-2px);
}

.card-image-small {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-light-bg);
  margin-bottom: 10px;
}

.card-image-small img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card-small:hover .card-image-small img {
  transform: scale(1.03);
}

.card-content-small {
  padding: 0;
}

.card-category-small {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
   color: #F6F5F2;
  background: #1C1C1E;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 0;
  transition: background 0.2s ease;
}

.card-category-small:hover {
   color: #F6F5F2;
  background: #1C1C1E;
  text-decoration: underline;
}

.card-title-small {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.card-title-small a {
  color: var(--color-primary);
  transition: color 0.2s;
}

.card-title-small a:hover {
  color: var(--color-accent);
}

.card-meta-small {
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: 400;
}

.separator {
  color: var(--color-border);
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */

.newsletter-section {
  background: #1C1C1E !important;
  color: var(--color-white);
  padding: 64px 0;
}

.newsletter-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  color: var(--color-white);
  line-height: 1.2;
}

.newsletter-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px 0;
  font-weight: 400;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: all 0.2s ease;
  font-family: inherit;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.newsletter-button:hover {
  background: var(--color-hover);
}

.newsletter-footer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-weight: 400;
}

/* ===================================
   LIBRARY / TOPICS SECTION
   Sprout Social simple text grid
   =================================== */

.library-section {
  background: var(--color-background);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  row-gap: 12px;
}

.topic-card {
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topic-card:hover {
  border-bottom-color: var(--color-accent);
}

.topic-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
  transition: color 0.2s;
}

.topic-card:hover .topic-name {
  color: var(--color-accent);
}

.topic-count {
  font-size: 13px;
  color: var(--color-secondary);
  font-weight: 400;
}

/* ===================================
   RESPONSIVE - Sprout Social flow
   =================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
  
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
  }

  .featured-title {
    font-size: 32px;
  }

  .post-grid.four-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }

  .container {
    padding: 0 20px;
  }

  .hero-section {
    padding: 24px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .editors-picks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-grid.four-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-title {
    font-size: 28px;
  }

  .newsletter-section {
    padding: 48px 0;
  }

  .featured-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-footer {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .featured-title {
    font-size: 22px;
  }

  .pick-thumbnail {
    width: 80px;
    height: 80px;
  }

  .pick-title {
    font-size: 14px;
  }
}