/*
Theme Name: Botym iOS16
Description: 专业的iOS16风格源码销售平台主题，具备毛玻璃效果、现代极简设计和USDT支付功能
Version: 1.0.0
Author: Botym Development Team
Text Domain: botym-ios16
Domain Path: /languages
License: GPL v2 or later
*/

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* iOS16 Design System Colors */
  --primary-bg: rgba(255, 255, 255, 0.85);
  --secondary-bg: rgba(242, 242, 247, 0.75);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --accent-blue: #007aff;
  --accent-green: #30d158;
  --accent-orange: #ff9500;
  --accent-red: #ff3b30;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-xxl: 24px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-bg: rgba(28, 28, 30, 0.85);
    --secondary-bg: rgba(44, 44, 46, 0.75);
    --glass-bg: rgba(0, 0, 0, 0.15);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f2f2f7;
    --text-secondary: #8e8e93;
  }
}

body {
  font-family: var(--font-system);
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Glass Morphism Components
   ======================================== */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px var(--shadow-medium),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: var(--primary-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow:
    0 20px 40px var(--shadow-light),
    0 8px 16px var(--shadow-medium),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 48px var(--shadow-medium),
    0 12px 24px var(--shadow-light),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ========================================
   Layout Components
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(45deg, #00ff7f, #39ff14);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 255, 127, 0.5);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.main-nav a:hover {
  background: rgba(0, 255, 127, 0.1);
  color: #00ff7f;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 127, 0.3);
}

/* ========================================
   Main Content Layout
   ======================================== */

.site-main {
  padding: var(--spacing-xl) 0;
}

.content-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* ========================================
   Post Cards
   ======================================== */

.post-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.post-content {
  padding: var(--spacing-lg);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.post-category {
  background: var(--accent-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-price {
  font-weight: 700;
  color: var(--accent-green);
  font-size: 1.125rem;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--accent-blue);
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.post-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-blue), #0056b3);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-border);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(45deg, var(--accent-green), #28a745);
  color: white;
  box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(48, 209, 88, 0.4);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
  text-align: center;
  color: #cccccc;
}

.footer-section p {
  color: #cccccc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: var(--spacing-xs);
}

.footer-menu a {
  color: #cccccc;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-menu a:hover {
  color: #00ff7f;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.footer-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-categories li {
  margin-bottom: var(--spacing-xs);
}

.footer-categories a {
  color: #cccccc;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-categories a:hover {
  color: #00ff7f;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

/* Telegram Support Form */
.telegram-form {
  margin-top: var(--spacing-sm);
}

.telegram-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.telegram-form .input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  transition: all 0.3s ease;
}

.telegram-form .input-wrapper:focus-within {
  border-color: #00ff7f;
  box-shadow: 0 0 0 2px rgba(0, 255, 127, 0.2);
}

.telegram-form .input-prefix {
  color: #cccccc;
  padding: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-sm);
  font-weight: 500;
}

.telegram-form .telegram-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
}

.telegram-form .telegram-input::placeholder {
  color: #888888;
}

.telegram-form .telegram-submit {
  background: linear-gradient(45deg, #00ff7f, #39ff14);
  color: #000000;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}

.telegram-form .telegram-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 127, 0.3);
}

.telegram-form .form-message {
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

.telegram-form .form-message.success {
  background: rgba(0, 255, 127, 0.1);
  color: #00ff7f;
  border: 1px solid rgba(0, 255, 127, 0.3);
}

.telegram-form .form-message.error {
  background: rgba(255, 59, 59, 0.1);
  color: #ff3b3b;
  border: 1px solid rgba(255, 59, 59, 0.3);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--spacing-lg);
  font-size: 0.875rem;
  color: #cccccc;
}

.footer-bottom p {
  color: #cccccc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .header-content {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .post-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  .glass-card {
    padding: var(--spacing-md);
  }

  .post-content {
    padding: var(--spacing-md);
  }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Loading States
   ======================================== */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  border-top-color: var(--accent-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Scroll to Top Button
   ======================================== */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(0, 255, 127, 0.1);
  border-color: rgba(0, 255, 127, 0.3);
  color: #00ff7f;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}