/* RentMoto - Estilos principais */

/* Variáveis CSS */
:root {
  --primary-color: #0056b3;
  --secondary-color: #ff6600;
  --accent-color: #ffc107;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #222222;
  --light-bg: #f8f9fa;
  --gray-bg: #e9ecef;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
  --transition: all 0.3s ease;
  --font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container e grid */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
header {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 1rem 0;
  width: 100%;
  margin: 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

header h1 {
  font-size: 1.8rem;
  margin: 0;
}

header nav ul {
  display: flex;
  list-style: none;
}

header nav ul li {
  margin-left: 1.5rem;
}

header nav ul li a {
  color: var(--light-text);
  font-weight: 500;
}

header nav ul li a:hover {
  color: var(--accent-color);
}

/* Hero section */
.hero {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 4rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

/* Features section */
.features {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature {
  background-color: var(--light-text);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Motos section */
.motos {
  padding: 4rem 0;
}

.motos h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.moto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.moto {
  background-color: var(--light-text);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.moto h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.moto .price {
  font-weight: bold;
  color: var(--secondary-color);
  margin: 1rem 0;
}

/* About section */
.about {
  padding: 4rem 0;
}

.about h2 {
  margin-bottom: 2rem;
}

.about h3 {
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

.about p {
  margin-bottom: 1rem;
}

/* Contact section */
.contact {
  padding: 4rem 0;
}

.contact h2 {
  margin-bottom: 2rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 2rem 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  
  header {
    width: 100%;
    padding: 0.75rem 0;
  }
  
  header .container {
    flex-direction: column;
    padding: 0 0.75rem;
    width: 100%;
  }
  
  header nav {
    margin-top: 1rem;
    width: 100%;
  }
  
  header nav ul {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  
  header nav ul li {
    margin: 0.5rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 0.75rem;
    width: 100%;
  }
}
/* Estilos para formulários de autenticação */
.auth-form {
    padding: 4rem 0;
}

.auth-form .container {
    max-width: 500px;
}

.auth-form h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check input {
    margin-right: 0.5rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.alert-success {
    background-color: var(--success-color);
    color: var(--light-text);
}

.alert-danger {
    background-color: var(--danger-color);
    color: var(--light-text);
}

.alert-info {
    background-color: var(--info-color);
    color: var(--light-text);
}

/* Estilos para perfil */
.profile {
    padding: 4rem 0;
}

.profile-info {
    background-color: var(--light-text);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.profile-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.profile-info p {
    margin-bottom: 0.5rem;
}

.profile-tabs {
    background-color: var(--light-text);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: var(--gray-bg);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}
/* Estilos para formulário de cadastro de motos */
.form-section {
    padding: 4rem 0;
}

.form-section h2 {
    margin-bottom: 2rem;
}

.form-section-title {
    margin: 2rem 0 1rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section-title h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group small {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: white;
}

/* Preview de fotos */
.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.photo-item {
    position: relative;
    width: 150px;
    height: 150px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.photo-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem;
    text-align: center;
    font-size: 0.8rem;
}

/* Lista de motos */
.action-bar {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.motorcycle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.motorcycle-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.motorcycle-image {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.no-image {
    color: #999;
    font-style: italic;
}

.motorcycle-info {
    padding: 1rem;
}

.motorcycle-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.motorcycle-info p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.status-available {
    color: var(--success-color);
    font-weight: bold;
}

.status-unavailable {
    color: var(--danger-color);
    font-weight: bold;
}

.motorcycle-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-danger {
    background-color: var(--danger-color);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .motorcycle-list {
        grid-template-columns: 1fr;
    }
}

/* Efeito hover para links de motos */
.hover-primary:hover {
    color: #007bff !important;
    transition: color 0.3s ease;
}

.hover-primary:hover .fa-external-link-alt {
    color: #007bff !important;
    transition: color 0.3s ease;
}
