/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: #2c3e50;
}

h1 {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Card styles */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

.form-group.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}

.form-group .col {
  flex: 1;
  padding: 0 10px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input[type="file"],
input[type="text"],
select {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

input[type="text"] {
  font-size: 16px;
}

.giphy-section {
  margin-bottom: 15px;
}

.trending-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
}

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

.btn-success {
  background-color: #2ecc71;
  color: white;
}

.btn-success:hover {
  background-color: #27ae60;
}

.btn-info {
  background-color: #9b59b6;
  color: white;
}

.btn-info:hover {
  background-color: #8e44ad;
}

/* QR code styles */
.qr-code-container {
  text-align: center;
  margin: 20px 0;
}

.qr-code-container img {
  max-width: 250px;
  border: 1px solid #ddd;
  padding: 10px;
  background-color: white;
}

.collection-info {
  margin: 20px 0;
  text-align: center;
}

/* Actions section */
.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* GIF grid styles */
.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.gif-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gif-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gif-item .btn-danger {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 5px 10px;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gif-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}