/**
 * NetSpeedCheck - Global Platform 3-Column Layout & Sidebars
 * Desktop: Left Sidebar (About Me) | Main Content | Right Sidebar (Advertise With Us)
 * Tablet & Mobile: Responsive sequential reflow (Main Content First)
 */

/* Main Platform Container */
.platform-container {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* 3-Column Grid System */
.platform-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Column Elements */
.platform-sidebar-left {
  position: sticky;
  top: calc(var(--header-height, 72px) + 20px);
  max-height: calc(100vh - var(--header-height, 72px) - 30px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-highlight, #2c3e5a) transparent;
  order: 1;
}

.platform-main-content {
  min-width: 0;
  order: 2;
}

.platform-main-content .container {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.platform-sidebar-right {
  position: sticky;
  top: calc(var(--header-height, 72px) + 20px);
  max-height: calc(100vh - var(--header-height, 72px) - 30px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-highlight, #2c3e5a) transparent;
  order: 3;
}

/* Custom Sleek Scrollbars for Sidebars */
.platform-sidebar-left::-webkit-scrollbar,
.platform-sidebar-right::-webkit-scrollbar {
  width: 5px;
}
.platform-sidebar-left::-webkit-scrollbar-thumb,
.platform-sidebar-right::-webkit-scrollbar-thumb {
  background: var(--border-highlight, #2c3e5a);
  border-radius: 4px;
}

/* ==========================================================================
   LEFT SIDEBAR: ABOUT ME / JOB PROFILE CARD (PAPOLU SATEESH)
   ========================================================================== */
.aboutme-card {
  background: var(--bg-card, #131d31);
  border: 1px solid var(--border-color, #1e2d42);
  border-radius: var(--radius-lg, 16px);
  padding: 22px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aboutme-card:hover {
  border-color: var(--accent-cyan, #00e5ff);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.12);
}

.aboutme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color, #1e2d42);
}

.aboutme-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan, #00e5ff);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.work-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full, 9999px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.aboutme-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.aboutme-age {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
  margin-bottom: 8px;
}

.aboutme-role {
  display: inline-block;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan, #00e5ff);
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 14px;
}

.aboutme-location-box {
  background: rgba(30, 45, 70, 0.5);
  border: 1px solid var(--border-color, #1e2d42);
  border-radius: var(--radius-sm, 6px);
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
}

.aboutme-location-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted, #94a3b8);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.aboutme-location-val {
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.aboutme-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94a3b8);
  margin-top: 14px;
  margin-bottom: 8px;
}

.aboutme-edu-item {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary, #cbd5e1);
  margin-bottom: 12px;
}

.aboutme-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.skill-pill {
  background: var(--bg-elevated, #1e293b);
  border: 1px solid var(--border-color, #1e2d42);
  color: var(--text-primary, #f8fafc);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-full, 9999px);
  transition: all 0.2s ease;
}

.skill-pill:hover {
  border-color: var(--accent-cyan, #00e5ff);
  color: var(--accent-cyan, #00e5ff);
}

.aboutme-roles-list {
  font-size: 0.8rem;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.5;
  margin-bottom: 14px;
  padding-left: 16px;
  list-style: disc;
}

.aboutme-quote {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary, #cbd5e1);
  background: rgba(15, 23, 42, 0.7);
  border-left: 3px solid var(--accent-cyan, #00e5ff);
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  margin-bottom: 16px;
  font-style: italic;
}

.aboutme-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-profile-linkedin {
  background: #0a66c2;
  color: #ffffff;
}
.btn-profile-linkedin:hover {
  background: #084e96;
}

.btn-profile-github {
  background: var(--bg-elevated, #1e293b);
  border: 1px solid var(--border-color, #1e2d42);
  color: var(--text-primary, #ffffff);
}
.btn-profile-github:hover {
  border-color: var(--accent-cyan, #00e5ff);
  color: var(--accent-cyan, #00e5ff);
}

.btn-profile-contact {
  background: transparent;
  border: 1px solid var(--accent-cyan, #00e5ff);
  color: var(--accent-cyan, #00e5ff);
}
.btn-profile-contact:hover {
  background: rgba(0, 229, 255, 0.1);
}

/* ==========================================================================
   RIGHT SIDEBAR: JAVA FULL STACK COURSE PROMO CARD
   ========================================================================== */
.course-promo-card {
  background: var(--bg-card, #131d31);
  border: 1px solid var(--border-color, #1e2d42);
  border-radius: var(--radius-lg, 16px);
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-promo-card:hover {
  border-color: var(--accent-cyan, #00e5ff);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.12);
}

.course-image-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0f1d;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.course-promo-img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.course-promo-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-promo-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

.course-promo-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary, #cbd5e1);
  margin: 0;
}

.course-promo-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 4px;
  border-radius: var(--radius-sm, 8px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop, Laptop, Tablet, Mobile)
   ========================================================================== */

/* Laptop (992px to 1279px) */
@media (max-width: 1279px) and (min-width: 992px) {
  .platform-grid {
    grid-template-columns: 260px minmax(0, 1fr) 270px;
    gap: 16px;
  }
  .aboutme-card,
  .course-promo-card {
    padding: 16px;
  }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .platform-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .platform-main-content {
    order: 1;
    width: 100%;
  }
  .platform-sidebar-left {
    order: 2;
    position: static;
    max-height: none;
    overflow: visible;
    width: 100%;
  }
  .platform-sidebar-right {
    order: 3;
    position: static;
    max-height: none;
    overflow: visible;
    width: 100%;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  .platform-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .platform-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 12px;
    margin-bottom: 24px;
  }
  .platform-main-content {
    order: 1;
    width: 100%;
  }
  /* Main content first, then About Me, then Java Course Card */
  .platform-sidebar-left {
    order: 2;
    position: static;
    max-height: none;
    overflow: visible;
    width: 100%;
  }
  .platform-sidebar-right {
    order: 3;
    position: static;
    max-height: none;
    overflow: visible;
    width: 100%;
  }
  .aboutme-card,
  .course-promo-card {
    padding: 16px;
  }
}
