/* ========================================
   Responsive CSS (Mobile First)
   ======================================== */

/* Base Layout */
body {
  font-size: 14px;
}

.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header-logo {
  flex: 1;
}

.header-logo a,
.header-logo img {
  max-width: 150px;
  height: auto;
}

.header-nav {
  display: none;
}

.header-user {
  display: flex;
  gap: 10px;
}

.btn-login,
.btn-register,
.btn-logout {
  padding: 8px 15px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid #2c3e50;
  background-color: #ffffff;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover,
.btn-register:hover {
  background-color: #2c3e50;
  color: #ffffff;
}

.btn-logout:hover {
  background-color: #e74c3c;
  border-color: #e74c3c;
  color: #ffffff;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 30px 0 15px;
  margin-top: 50px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: #ecf0f1;
  margin-bottom: 15px;
}

.footer-section a {
  color: #bdc3c7;
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

.footer-legal p {
  margin-bottom: 8px;
  color: #95a5a6;
}

/* Store Cards */
.store-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.store-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-content {
  padding: 15px;
}

.store-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.store-card-title a {
  color: #2c3e50;
}

.store-card-title a:hover {
  color: #e74c3c;
}

.store-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.store-card-price {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 10px;
}

.store-card-rating {
  font-size: 13px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.store-card-footer {
  display: flex;
  gap: 10px;
}

.btn-view,
.btn-favorite {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view {
  background-color: #2c3e50;
  color: #ffffff;
}

.btn-view:hover {
  background-color: #34495e;
}

.btn-favorite {
  background-color: #f5f5f5;
  color: #2c3e50;
  border: 1px solid #e8e8e8;
}

.btn-favorite:hover {
  background-color: #e8e8e8;
}

/* Simulator */
.simulator-wrapper {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
}

.simulator-wrapper h3 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.help-text {
  font-size: 12px;
  color: #7f8c8d;
  margin-top: 5px;
}

.btn-calculate {
  width: 100%;
  padding: 12px;
  background-color: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-calculate:hover {
  background-color: #c0392b;
}

.simulator-result {
  background: #ecf0f1;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

.result-main {
  margin-bottom: 20px;
  text-align: center;
}

.result-label {
  font-size: 12px;
  color: #7f8c8d;
  margin: 0;
}

.result-amount {
  font-size: 28px;
  font-weight: bold;
  color: #e74c3c;
  margin: 8px 0 0 0;
}

/* Tabs */
.store-tabs {
  margin-top: 30px;
}

.tabs-nav {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #e8e8e8;
  overflow-x: auto;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 15px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #7f8c8d;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
  color: #2c3e50;
  border-bottom-color: #e74c3c;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  .container {
    padding: 0 30px;
  }

  .header-nav {
    display: block;
  }

  .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
  }

  .nav-list a {
    color: #2c3e50;
    font-weight: 500;
  }

  .nav-list a:hover {
    color: #e74c3c;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .store-card {
    display: flex;
    gap: 15px;
  }

  .store-card-image {
    width: 250px;
    height: 200px;
    flex-shrink: 0;
  }

  .store-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .tabs-nav {
    gap: 30px;
  }

  .tab-btn {
    padding: 15px 0;
    border-bottom-width: 2px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }
}


/* Cast Cards */
.category-casts-section {
  margin: 40px 0;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
}

.category-casts-section h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e74c3c;
  color: #2c3e50;
}

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

.cast-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.cast-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cast-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-info {
  padding: 15px;
}

.cast-info h4 {
  margin: 10px 0;
  font-size: 14px;
  color: #2c3e50;
  font-weight: 600;
}

.cast-instagram-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cast-instagram-link:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .casts-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }

  .category-casts-section {
    padding: 20px;
  }
}

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