/* =============================================================================
   Vixul — app.css
   Styles for the authenticated app area: login, dashboard, tool pages.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Login page
   --------------------------------------------------------------------------- */
.app-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.login-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
  color: var(--dark);
}

.login-subtitle {
  text-align: center;
  color: #6b7280;
  margin: 0 0 28px;
  font-size: 15px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: var(--white);
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-google:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-full {
  width: 100%;
  display: block;
  text-align: center;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #9ca3af;
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.login-error {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Dashboard
   --------------------------------------------------------------------------- */
.app-dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6b7280;
}

.dash-user-name {
  font-weight: 600;
  color: var(--dark);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.dash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  color: var(--dark);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(7, 55, 99, 0.1);
}

.dash-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f0f4f8;
  font-size: 22px;
}

.dash-card-name {
  font-size: 16px;
  font-weight: 600;
}

.dash-card-desc {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   App tool page (shared layout for blog, video, etc.)
   --------------------------------------------------------------------------- */
.app-tool {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.app-tool h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--dark);
}

.app-tool-placeholder {
  padding: 60px 20px;
  text-align: center;
  color: #6b7280;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  margin-top: 24px;
}

/* ---------------------------------------------------------------------------
   Auth-required notice (shown when group check fails)
   --------------------------------------------------------------------------- */
.app-denied {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  padding: 40px 20px;
}

.denied-card {
  text-align: center;
  max-width: 400px;
}

.denied-card h1 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--dark);
}

.denied-card p {
  color: #6b7280;
  margin: 0 0 24px;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .login-card {
    padding: 28px 20px;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }
}
