/* ============================================================
   Motion Studies — Aqua App Window Content Styles
   ============================================================ */

/* --- Shared --- */
.app-inner {
  padding: 16px;
  font-size: 13px;
  color: #333;
}

.app-inner h2 {
  font-size: 14px;
  margin-bottom: 8px;
}

/* Aqua gel button */
.aqua-gel-btn {
  display: inline-block;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(to bottom, #6eaadc 0%, #3a7bd5 45%, #2968bf 55%, #3478d0 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  text-decoration: none;
  text-align: center;
}

.aqua-gel-btn:hover {
  background: linear-gradient(to bottom, #7dbce8 0%, #4488e0 45%, #3578d0 55%, #4088dd 100%);
}

.aqua-gel-btn:active {
  background: linear-gradient(to bottom, #2968bf 0%, #1a5aaa 45%, #104a95 55%, #1a5aaa 100%);
}

/* --- Address Book (Contacts) --- */
.contacts-app {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.contacts-groups {
  width: 150px;
  min-width: 150px;
  background: #e8eef7;
  border-right: 1px solid #b0b0b0;
  overflow-y: auto;
  padding: 4px 0;
}

.contacts-groups-header {
  font-size: 10px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px 3px;
}

.contacts-group-item {
  padding: 4px 10px;
  font-size: 12px;
  cursor: default;
  color: #333;
}

.contacts-group-item:hover {
  background: rgba(59,130,246,0.1);
}

.contacts-group-item.selected {
  background: #3366cc;
  color: #fff;
}

.contacts-names {
  width: 180px;
  min-width: 180px;
  border-right: 1px solid #b0b0b0;
  overflow-y: auto;
  padding: 4px 0;
  background: #fff;
}

.contacts-names-header {
  font-size: 10px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 8px 3px;
}

.contacts-name-item {
  padding: 4px 8px;
  font-size: 12px;
  cursor: default;
  color: #333;
}

.contacts-name-item:hover {
  background: rgba(59,130,246,0.1);
}

.contacts-name-item.selected {
  background: #3366cc;
  color: #fff;
}

.contacts-detail {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6eaadc 0%, #3a7bd5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
}

.contact-card-name {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

.contact-card-role {
  font-size: 12px;
  color: #888;
  margin-top: -4px;
}

.contact-card-fields {
  width: 100%;
  margin-top: 12px;
  border-top: 1px solid #ddd;
  padding-top: 12px;
}

.contact-field {
  display: flex;
  padding: 4px 0;
  font-size: 12px;
}

.contact-field-label {
  width: 60px;
  text-align: right;
  color: #888;
  font-weight: bold;
  margin-right: 8px;
  flex-shrink: 0;
}

.contact-field-value {
  color: #333;
}

.contact-field-value a {
  color: #3366cc;
  text-decoration: none;
}

.contact-field-value a:hover {
  text-decoration: underline;
}

.contact-card-note {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: 6px;
  text-align: center;
}

.contact-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #aaa;
  font-size: 14px;
  font-style: italic;
}

/* --- Mail Signup --- */
.mail-app {
  padding: 20px;
  max-width: 340px;
}

.mail-app h2 {
  font-size: 15px;
  margin-bottom: 4px;
}

.mail-app p {
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
}

.mail-field {
  margin-bottom: 12px;
}

.mail-field label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: #555;
  margin-bottom: 3px;
}

.mail-field input[type="email"],
.mail-field input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  font-family: inherit;
}

.mail-field input:focus {
  outline: none;
  border-color: #3a7bd5;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 4px rgba(58,123,213,0.3);
}

.mail-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.mail-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
  cursor: default;
}

.mail-toggle input[type="checkbox"] {
  cursor: pointer;
}

.mail-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
}

.mail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mail-status {
  font-size: 11px;
  margin-top: 12px;
}

.mail-status.success { color: #388e3c; }
.mail-status.error { color: #d32f2f; }

.mail-fallback {
  margin-top: 12px;
  font-size: 11px;
  color: #888;
}

.mail-fallback a {
  color: #3366cc;
}

/* --- Latest Release --- */
.release-app {
  padding: 20px;
  text-align: center;
  max-width: 380px;
}

.release-cover {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  margin-bottom: 12px;
}

.release-title {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

.release-artist {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.release-desc {
  font-size: 12px;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.4;
}

.release-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.release-link-btn {
  display: inline-block;
  width: 200px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.release-link-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.15) 0px,
    rgba(255,255,255,0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}

.release-link-btn:hover {
  opacity: 0.9;
}

/* --- Streaming App --- */
.streaming-app {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.streaming-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.streaming-name {
  font-size: 16px;
  font-weight: bold;
  color: #222;
}

/* --- Photos (Finder icon view) --- */
.photos-app {
  padding: 12px;
  background: #fff;
}

.photos-toolbar {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: #f4f4f4;
  border-bottom: 1px solid #ccc;
  font-size: 11px;
  color: #666;
  margin: -12px -12px 12px -12px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.photos-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
  padding: 6px;
  border-radius: 4px;
}

.photos-item:hover {
  background: rgba(59,130,246,0.1);
}

.photos-item.selected {
  background: rgba(59,130,246,0.2);
}

.photos-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.photos-caption {
  font-size: 10px;
  color: #555;
  margin-top: 4px;
  line-height: 1.2;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Photo lightbox */
.photos-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  cursor: pointer;
}

.photos-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.photos-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* --- 3store --- */
.store-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

/* Toolbar (brushed-metal bar below titlebar) */
.store-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 10px;
  background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 45%, #c8c8c8 55%, #d4d4d4 100%);
  border-bottom: 1px solid #a0a0a0;
  flex-shrink: 0;
}

.store-tab {
  padding: 3px 14px;
  font-size: 11px;
  font-weight: bold;
  color: #444;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: default;
  background: transparent;
  position: relative;
  font-family: inherit;
}

.store-tab:hover {
  background: rgba(255,255,255,0.5);
}

.store-tab.active {
  background: linear-gradient(to bottom, #6eaadc 0%, #3a7bd5 45%, #2968bf 55%, #3478d0 100%);
  color: #fff;
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Cart badge */
.store-cart-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: bold;
  color: #fff;
  background: #e03030;
  border-radius: 8px;
  text-align: center;
  margin-left: 4px;
  vertical-align: middle;
}

.store-cart-badge.hidden {
  display: none;
}

/* Content area */
.store-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* --- Featured tab --- */
.store-hero {
  background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.store-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6eaadc 0%, #3a7bd5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(58,123,213,0.3);
}

.store-hero-info {
  flex: 1;
  min-width: 0;
}

.store-hero-name {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  margin-bottom: 2px;
}

.store-hero-cat {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
}

.store-hero-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 10px;
}

.store-hero-price {
  font-size: 18px;
  font-weight: bold;
  color: #2968bf;
  margin-bottom: 10px;
}

.store-section-title {
  font-size: 13px;
  font-weight: bold;
  color: #444;
  margin-bottom: 10px;
}

/* --- Product grid (shared between featured row & all-products) --- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.store-card {
  background: #f8f9fb;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: box-shadow 0.15s;
}

.store-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.store-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6eaadc 0%, #3a7bd5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.store-card-name {
  font-size: 13px;
  font-weight: bold;
  color: #222;
}

.store-card-cat {
  font-size: 10px;
  color: #888;
  margin-top: -4px;
}

.store-card-price {
  font-size: 14px;
  font-weight: bold;
  color: #2968bf;
}

.store-card .aqua-gel-btn {
  font-size: 11px;
  padding: 3px 12px;
  margin-top: 2px;
}

/* --- Cart tab --- */
.store-cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
  font-size: 13px;
  font-style: italic;
}

.store-cart-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.store-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8f9fb;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.store-cart-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6eaadc 0%, #3a7bd5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.store-cart-item-info {
  flex: 1;
  min-width: 0;
}

.store-cart-item-name {
  font-size: 12px;
  font-weight: bold;
  color: #222;
}

.store-cart-item-price {
  font-size: 11px;
  color: #666;
}

.store-cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #b0b0b0;
  background: #f0f0f0;
  font-size: 13px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}

.store-qty-btn:hover {
  background: #e0e0e0;
}

.store-cart-qty span {
  font-size: 13px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
}

.store-cart-remove {
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: #c0392b;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: bold;
  opacity: 0.6;
}

.store-cart-remove:hover {
  opacity: 1;
}

.store-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #ddd;
}

.store-cart-total {
  font-size: 16px;
  font-weight: bold;
  color: #222;
}

/* Checkout "coming soon" message */
.store-checkout-msg.hidden {
  display: none;
}

.store-checkout-msg {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #888;
  font-style: italic;
  padding: 10px;
  background: #f8f9fb;
  border-radius: 6px;
}

/* --- Product card clickable area --- */
.store-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.store-card-link:hover .store-card-name {
  color: #2968bf;
  text-decoration: underline;
}

/* --- Product detail view --- */
.store-detail {
  padding: 0;
}

.store-detail-back {
  display: inline-block;
  background: none;
  border: none;
  font-size: 12px;
  color: #3366cc;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  font-family: inherit;
}

.store-detail-back:hover {
  text-decoration: underline;
}

.store-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.store-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6eaadc 0%, #3a7bd5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(58,123,213,0.3);
}

.store-detail-meta {
  flex: 1;
  min-width: 0;
}

.store-detail-name {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  margin-bottom: 2px;
}

.store-detail-cat {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
}

.store-detail-price {
  font-size: 18px;
  font-weight: bold;
  color: #2968bf;
  margin-bottom: 10px;
}

.store-detail-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 16px;
}

.store-detail-features {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.store-detail-features li {
  font-size: 12px;
  color: #444;
  line-height: 1.6;
}

.store-detail-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin-top: 16px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.store-detail-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Checkout error message --- */
.store-checkout-error {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #c0392b;
  font-style: italic;
  padding: 10px;
  background: #fef2f2;
  border-radius: 6px;
}

/* --- Coming Soon --- */
.coming-soon-app {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.coming-soon-icon {
  font-size: 40px;
  opacity: 0.4;
}

.coming-soon-title {
  font-size: 16px;
  font-weight: bold;
  color: #222;
}

.coming-soon-msg {
  font-size: 12px;
  color: #888;
}
