/* Global Styles */
:root {
    --primary-bg: #101E06;
    --primary-text: #E6D5B8;
    --accent-color: #C4A484;
    --hover-color: #b39476;
}

body {
    font-family: 'Cabin', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
}

/* Responsive Container */
.container {
    padding: 1rem;
}

/* Form Controls */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(230, 213, 184, 0.2);
    color: var(--primary-text);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--primary-text);
    box-shadow: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border: none;
    color: var(--primary-bg);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    color: var(--primary-bg);
}

/* Cards */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(230, 213, 184, 0.1);
    margin-bottom: 1rem;
}

/* Cafe Grid */
.cafe-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1rem;
}

@media (min-width: 576px) {
    .cafe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cafe-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .cafe-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cafe-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--primary-text);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cafe-card:hover {
    transform: translateY(-5px);
}

.cafe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Filter Form */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-form > div {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .filter-form > div {
        flex: 100%;
    }
    
    .filter-form button {
        width: 100%;
    }
}

/* Rating Stars */
.rating-stars {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Reviews Section */
.review-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .review-card {
        padding: 0.75rem;
    }
}

/* Login/Register Forms */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

@media (max-width: 576px) {
    .auth-container {
        margin: 1rem;
        padding: 1rem;
    }
}

/* Profile Page */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Navbar */
.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }
}

/* Admin Dashboard */
.admin-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .admin-controls {
        flex-direction: column;
    }
    
    .admin-controls > * {
        width: 100%;
    }
}

/* Toast Messages */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1050;
}

@media (max-width: 576px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
    }
    
    .toast {
        width: 100%;
    }
}

/* Pagination */
.pagination {
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.375rem 0.75rem;
    }
}

/* Like Button */
.like-btn {
    background: none;
    border: none;
    color: var(--primary-text);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.like-btn:hover {
    transform: scale(1.1);
}

.like-btn.liked {
    color: #ff4136;
}

/* Common styles for BrewKada */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
    color: var(--primary-text);
}

.form-label {
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
    color: var(--primary-text);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-text);
}

.nav-link {
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
}

.dropdown-item {
    font-family: 'Cabin', sans-serif;
    color: var(--primary-text) !important;
}

.dropdown-item:hover {
    background-color: rgba(245, 230, 211, 0.1);
}

.text-muted {
    color: rgba(245, 230, 211, 0.7) !important;
}
