/* ============================================
   LocalPlanner.ai - Page-Specific Styles
   ============================================ */

/* ---- Hero Section (Landing Page - Architectural Sketch) ---- */
.hero-landing {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  background: linear-gradient(180deg, var(--white) 0%, var(--pebble-light) 100%);
  overflow: hidden;
}

.hero-sketch {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}

.hero-sketch svg {
  width: 100%;
  height: 100%;
}

.hero-landing .hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-title-dark {
  font-size: 48px;
  line-height: 56px;
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-subtitle-dark {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: var(--space-8);
  color: var(--text-secondary);
}

.hero-tabs-light {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-tab-light {
  padding: var(--space-3) var(--space-4);
  font-size: 14px;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  text-decoration: none;
}

.hero-tab-light:hover {
  background: var(--pebble-light);
  border-color: var(--bluestone);
  color: var(--text-primary);
}

.hero-tab-light.active {
  background: var(--rea-red);
  border-color: var(--rea-red);
  color: var(--white);
}

@media (max-width: 639px) {
  .hero-landing {
    min-height: 450px;
    padding: var(--space-10) var(--space-4);
  }

  .hero-title-dark {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-subtitle-dark {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-tabs-light {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .hero-tab-light {
    flex: 1 1 auto;
    text-align: center;
    padding: var(--space-3);
    font-size: 13px;
  }
}

/* ---- Hero Section (Original - for other pages if needed) ---- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover;
  color: var(--white);
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  line-height: 56px;
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: var(--space-8);
  opacity: 0.9;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto var(--space-6);
}

.hero-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero-tab {
  padding: var(--space-3) var(--space-4);
  font-size: 14px;
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  text-decoration: none;
}

.hero-tab:hover,
.hero-tab.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 639px) {
  .hero {
    min-height: 400px;
    padding: var(--space-10) var(--space-4);
  }

  .hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-tabs {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .hero-tab {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ---- Features Section ---- */
.features-section {
  padding: var(--space-16) 0;
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- How It Works Section ---- */
.how-it-works {
  background: var(--pebble-light);
  padding: var(--space-16) 0;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.how-it-works-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 40px);
  right: calc(16.67% + 40px);
  height: 2px;
  background: var(--pebble);
}

.how-step {
  text-align: center;
  position: relative;
}

.how-step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--rea-red);
  border-radius: var(--radius-full);
  font-size: 32px;
  font-weight: var(--font-bold);
  color: var(--rea-red);
  position: relative;
  z-index: 1;
}

.how-step-title {
  font-size: 20px;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.how-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .how-it-works-grid::before {
    display: none;
  }

  .how-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-4);
  }

  .how-step-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
    flex-shrink: 0;
    margin: 0;
  }
}

/* ---- Explorer: Address Lookup ---- */
.explorer-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.address-lookup {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-4);
  text-align: center;
}

.address-lookup-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-6);
  color: var(--bluestone);
}

.address-lookup h1 {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.address-lookup p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.address-search-wrapper {
  width: 100%;
  max-width: 600px;
  margin-bottom: var(--space-4);
}

.address-search {
  display: flex;
  gap: var(--space-2);
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-xl);
  padding: var(--space-2);
  box-shadow: var(--shadow-md);
}

.address-search .form-input {
  border: none;
  box-shadow: none;
}

.address-search .form-input:focus {
  box-shadow: none;
}

.use-location {
  font-size: 14px;
  color: var(--bluestone);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.use-location:hover {
  text-decoration: underline;
}

.recent-searches {
  margin-top: var(--space-8);
}

.recent-searches-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.recent-searches-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

@media (max-width: 639px) {
  .address-search {
    flex-direction: column;
  }

  .address-search .btn {
    width: 100%;
  }
}

/* ---- Explorer: Property Results ---- */
.property-results {
  padding: var(--space-8) 0;
}

.property-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-8);
  align-items: start;
}

.property-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.property-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 300px;
  background: var(--pebble-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.property-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

.property-card {
  padding: var(--space-6);
}

.property-address {
  font-size: 24px;
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.property-suburb {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.property-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.property-rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--pebble-light);
  border-radius: var(--radius-lg);
}

.property-rating-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.property-rating-value {
  font-size: 18px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.property-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (max-width: 1023px) {
  .property-layout {
    grid-template-columns: 1fr;
  }

  .property-sidebar {
    position: static;
  }
}

/* ---- Validator: Upload Page ---- */
.validator-page {
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-8) 0;
}

.validator-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.validator-header h1 {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.validator-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.upload-section {
  max-width: 800px;
  margin: 0 auto;
}

.upload-dropzone {
  margin-bottom: var(--space-8);
}

.requirements-card {
  padding: var(--space-6);
}

.requirements-title {
  font-size: 18px;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--text-secondary);
}

.requirement-icon {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

/* ---- Validator: Analysis Results ---- */
.analysis-page {
  padding: var(--space-8) 0;
}

.analysis-layout {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: var(--space-8);
  align-items: start;
}

.document-preview {
  background: var(--pebble-light);
  border-radius: var(--radius-xl);
  aspect-ratio: 1/1.414;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

.analysis-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.analysis-title {
  font-size: 24px;
  font-weight: var(--font-bold);
}

.analysis-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.analysis-stat {
  text-align: center;
  padding: var(--space-4);
  background: var(--pebble-light);
  border-radius: var(--radius-lg);
}

.analysis-stat-value {
  font-size: 24px;
  font-weight: var(--font-bold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.analysis-stat-value.success { color: var(--success); }
.analysis-stat-value.warning { color: #946F00; }
.analysis-stat-value.error { color: var(--error); }

.analysis-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.issue-card {
  padding: var(--space-4);
  border-left: 3px solid var(--pebble);
}

.issue-card.blocking {
  border-left-color: var(--error);
}

.issue-card.warning {
  border-left-color: var(--warning);
}

.issue-card.info {
  border-left-color: var(--info);
}

.issue-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.issue-severity {
  font-size: 12px;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.issue-card.blocking .issue-severity { color: var(--error); }
.issue-card.warning .issue-severity { color: #946F00; }
.issue-card.info .issue-severity { color: var(--info); }

.issue-title {
  font-size: 16px;
  font-weight: var(--font-semibold);
}

.issue-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--pebble);
  padding: var(--space-4);
  display: none;
  z-index: 50;
}

@media (max-width: 1023px) {
  .analysis-layout {
    grid-template-columns: 1fr;
  }

  .document-preview {
    position: static;
    aspect-ratio: 16/9;
  }

  .download-bar {
    display: block;
  }
}

/* ---- Council: Login ---- */
.login-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: var(--pebble-light);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: var(--space-8);
}

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

.login-logo {
  margin-bottom: var(--space-4);
}

.login-title {
  font-size: 24px;
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bluestone);
  color: var(--white);
  font-size: 12px;
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pebble);
}

.login-divider span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sso-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.forgot-password {
  text-align: center;
  margin-top: var(--space-4);
}

.forgot-password a {
  font-size: 14px;
  color: var(--bluestone);
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* ---- Council: Dashboard ---- */
.dashboard-page {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--pebble);
  padding: var(--space-6);
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: 14px;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-default);
}

.sidebar-link:hover {
  background: var(--pebble-light);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--rea-red);
  color: var(--white);
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
}

.sidebar-section {
  margin-top: var(--space-8);
}

.sidebar-section-title {
  font-size: 12px;
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding: 0 var(--space-4);
}

.dashboard-main {
  flex: 1;
  padding: var(--space-8);
  background: var(--pebble-light);
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.dashboard-title {
  font-size: 28px;
  font-weight: var(--font-bold);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.dashboard-stat-card {
  background: var(--white);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--pebble);
}

.dashboard-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.dashboard-stat-value {
  font-size: 28px;
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.dashboard-stat-change {
  font-size: 12px;
  margin-top: var(--space-1);
}

.dashboard-stat-change.positive {
  color: var(--success);
}

.dashboard-stat-change.negative {
  color: var(--error);
}

.dashboard-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--pebble);
  margin-bottom: var(--space-6);
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  border-bottom: 1px solid var(--pebble);
}

.dashboard-section-title {
  font-size: 18px;
  font-weight: var(--font-semibold);
}

.application-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--pebble);
  transition: background-color var(--duration-fast) var(--ease-default);
}

.application-row:last-child {
  border-bottom: none;
}

.application-row:hover {
  background: var(--pebble-light);
}

.application-priority {
  flex-shrink: 0;
}

.application-info {
  flex: 1;
  min-width: 0;
}

.application-id {
  font-size: 14px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.application-address {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.application-status {
  flex-shrink: 0;
}

.application-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 100px;
  text-align: right;
}

@media (max-width: 1023px) {
  .dashboard-sidebar {
    display: none;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .application-row {
    flex-wrap: wrap;
  }

  .application-date {
    width: 100%;
    text-align: left;
    margin-top: var(--space-2);
  }
}

/* ---- Mobile Bottom Navigation ---- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--pebble);
  padding: var(--space-2) 0;
  z-index: 100;
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  font-size: 10px;
  color: var(--text-secondary);
  text-decoration: none;
}

.bottom-nav-link.active {
  color: var(--rea-red);
}

.bottom-nav-link svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 639px) {
  .bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }
}
