/**
 * Page-Specific Styles
 *
 * Styles for specific pages and templates
 * This file will be expanded as pages are implemented
 *
 * @package Ithawk_Theme
 * @version 1.0.0
 */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  padding: var(--spacing-12) 0;
  background-color: var(--color-bg-primary);
}

.hero-section__container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
}

.hero-section__logo {
  flex-shrink: 0;
}

.hero-section__description {
  flex: 1;
}

.hero-section__description p {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-section__container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-8);
  }

  .hero-section__logo {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: var(--spacing-8) 0;
  }

  .hero-section__description p {
    font-size: var(--font-size-xs);
  }
}

/* ========================================
   HOME PAGE
   ======================================== */

/* Tapas de Revista */
.tapa-revista__container {
  width: 100%;
  overflow: hidden;
}

.tapa-revista__imagen {
  width: 100%;
  height: 628px;
  margin: 0;
}

.tapa-revista__imagen > a,
.tapa-revista__imagen > a > img,
.tapa-revista__imagen > img {
  width: 100% !important;
  max-width: 420px !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .tapa-revista__imagen {
    height: 250px;
  }
}

/* Hero Section (Legacy - puede ser eliminado) */
.hero {
  position: relative;
  padding: var(--spacing-24) 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--color-primary-light) 0%,
    var(--color-white) 100%
  );
}

.hero-title {
  font-size: var(--font-size-6xl);
  margin-bottom: var(--spacing-6);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-16) 0;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* Features Section */
.features {
  padding: var(--spacing-20) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-8);
  margin-top: var(--spacing-12);
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  border-radius: var(--border-radius-full);
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
}

/* ========================================
   SUBSCRIPTION PAGE
   ======================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-8);
  margin-top: var(--spacing-12);
}

.pricing-card {
  position: relative;
  border: var(--border-width-thick) solid var(--color-border);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-8);
  text-align: center;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-amount {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  margin: var(--spacing-4) 0;
}

.pricing-period {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: var(--spacing-6) 0;
}

.pricing-features li {
  padding: var(--spacing-2) 0;
}

/* ========================================
   BLOG ARCHIVE
   ======================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 320px));
  gap: var(--spacing-12);
  justify-content: center;
}

/* Responsive grid */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
  }
}

/* ========================================
   SINGLE POST
   ======================================== */

.single-post-header {
  margin-bottom: var(--spacing-12);
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.single-post-content img {
  margin: var(--spacing-8) 0;
  border-radius: var(--border-radius-lg);
}

.single-post-content h2,
.single-post-content h3 {
  margin-top: var(--spacing-10);
  margin-bottom: var(--spacing-4);
}

/* ========================================
   CATEGORY/TAG ARCHIVES
   ======================================== */

.archive-header {
  text-align: center;
  padding: var(--spacing-12) 0;
  background-color: var(--color-gray-50);
  margin-bottom: var(--spacing-12);
}

.archive-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-4);
}

.archive-description {
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-8) 0;
  background-color: var(--color-bg-primary);
}

.login-page__container {
  width: 100%;
  max-width: 440px;
  padding: 0 var(--content-padding);
}

.login-page__card {
  background: var(--color-white);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-10);
  box-shadow: var(--shadow-lg);
}

.login-page__header {
  text-align: center;
  margin-bottom: var(--spacing-8);
}

.login-page__header .site-logo {
  margin: 0 auto var(--spacing-6);
  justify-content: center;
  align-items: center;
}

.login-page__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
}

.login-form {
  margin-bottom: var(--spacing-6);
}

.form-group--checkbox {
  display: flex;
  align-items: center;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  cursor: pointer;
  margin: 0;
}

.form-checkbox input[type="checkbox"] {
  cursor: pointer;
}

.btn-block {
  width: 100%;
}

.site-footer .container {
  background-color: var(--color-gray-900);
}
.login-page__footer {
  text-align: center;
  padding-top: var(--spacing-6);
  border-top: 1px solid var(--color-border);
}

.login-page__register,
.login-page__lost-password {
  margin: var(--spacing-3) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.login-page__register a,
.login-page__lost-password a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.login-page__register a:hover,
.login-page__lost-password a:hover {
  text-decoration: underline;
}

/* Loading state for login button */
.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  color: var(--color-white);
}

@media (max-width: 767px) {
  .login-page__card {
    padding: var(--spacing-8);
  }
}

/* Additional styles for register and lost password pages */
.login-page__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: var(--spacing-4);
  line-height: var(--line-height-relaxed);
}

.form-hint {
  display: block;
  margin-top: var(--spacing-1);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.alert-success {
  background-color: var(--color-success-light);
  border-color: var(--color-success);
  color: var(--color-success);
}

/* ========================================
   SINGLE POST PAGE
   ======================================== */

.single-post-layout {
  padding: var(--spacing-12) var(--content-padding);
}

/* Grid Layout: 2 columns (content + sidebar) */
.single-post-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--spacing-12);
  max-width: var(--container-xl);
  margin: 0 auto;
}

/* Main Content */
.single-post-main {
  min-width: 0; /* Prevent grid overflow */
}

/* Post Header */
.single-post-header {
  margin-bottom: var(--spacing-16);
}

.single-post-header .entry-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  color: #000000;
  margin: 0 0 var(--spacing-6) 0;
  font-weight: var(--font-weight-normal);
  text-transform: uppercase;
}

/* Separator Wrappers */
.separator-wrapper {
  display: flex;
  justify-content: flex-start;
  margin: var(--spacing-6) 0;
}

.separator-wrapper--50 {
  width: 50%;
  margin: var(--spacing-6) 0 var(--spacing-8) 0;
}
.separator-wrapper--60 {
  width: 60%;
  margin: var(--spacing-6) 0 var(--spacing-8) 0;
}

.separator-wrapper--100 {
  width: 100%;
  margin: 0 0 var(--spacing-2) 0;
}

/* Post Excerpt */
.post-excerpt {
  font-family: var(--font-fraunces);
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  color: var(--color-text-secondary);
  margin: 0 0 var(--spacing-6) 0;
  font-weight: var(--font-weight-normal);
}

.post-excerpt p {
  margin: 0;
}

/* Post Meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.post-author strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-heading);
  text-transform: uppercase;
}

/* Post Content */
.single-post-content {
  font-family: var(--font-verdana);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-10);
}

.single-post-content h2,
.single-post-content h3 {
  font-family: var(--font-verdana);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: var(--spacing-8) 0 var(--spacing-4) 0;
}

.single-post-content h2 {
  font-size: var(--font-size-xl);
}

.single-post-content h3 {
  font-size: var(--font-size-lg);
}

.single-post-content p {
  margin-bottom: var(--spacing-6);
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: var(--spacing-8) 0;
}

.single-post-content ul,
.single-post-content ol {
  margin: var(--spacing-6) 0;
  padding-left: var(--spacing-8);
}

.single-post-content li {
  margin-bottom: var(--spacing-3);
}

/* Post Footer */
.post-footer {
  padding-top: var(--spacing-8);
  border-top: 1px solid var(--color-border);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-2);
  margin-top: var(--spacing-6);
}

.tags-label {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-right: var(--spacing-2);
}

.tag-link {
  display: inline-block;
  padding: var(--spacing-1) var(--spacing-3);
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: var(--font-size-xs);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.tag-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Sidebar */
.post-sidebar {
  /* position: sticky; */
  top: var(--spacing-8);
  /* max-height: calc(100vh - var(--spacing-16)); */
  /* overflow-y: auto; */
}

.sidebar-widgets {
  margin-bottom: var(--spacing-8);
}

.sidebar-widgets .widget {
  background-color: var(--color-bg-secondary);
  padding: var(--spacing-6);
  margin-bottom: var(--spacing-6);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.sidebar-widgets .widget-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-4) 0;
  text-transform: uppercase;
}

/* Ad Blocks */
.sidebar-ad-block {
  margin: var(--spacing-2) 0 var(--spacing-12) 0;
  padding: 0;
  display: block;
  line-height: 0;
}

.sidebar-ad-block a {
  display: block;
  line-height: 0;
}

.sidebar-ad-block img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* Responsive - Tablet */
@media (max-width: 1023px) {
  .single-post-grid {
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-8);
  }

  .single-post-header .entry-title {
    font-size: var(--font-size-2xl);
  }

  .post-excerpt {
    font-size: var(--font-size-2xl);
  }

  .separator-wrapper--60 {
    width: 70%;
  }

  .post-sidebar {
    max-height: none;
    position: static;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .single-post-layout {
    padding: var(--spacing-8) var(--content-padding);
  }

  .single-post-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-10);
  }

  .single-post-header .entry-title {
    font-size: var(--font-size-xl);
  }

  .post-excerpt {
    font-size: var(--font-size-xl);
  }

  .separator-wrapper--60 {
    width: 80%;
  }

  .single-post-content {
    font-size: var(--font-size-sm);
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-2);
  }

  .sidebar-widgets {
    margin-bottom: var(--spacing-6);
  }
}
