/* Add your custom styles here */

/* Custom CSS for the landing page */
:root {
    --primary-color: #1c1c1c;
    --secondary-color: #5d5d5d;
    --accent-color: #67C090;
    --background-color: #ffffff;
    --text-color: #333333;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header styles */
header {
    transition: all 0.3s ease;
}

.header-links {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-links:hover {
    color: var(--accent-color);
}

/* Button styles */
.btn {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Input styles */
.input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: white;
}

.input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(240, 83, 28, 0.1);
}

/* Footer link styles */
.footer-link {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Primary text color utility */
.primary-text-color {
    color: var(--accent-color);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Spinner animation for AuthModal */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* AddReviewModal styles */
.add-review-container {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.add-review-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
    color: #333;
}

.add-review-section {
    margin-bottom: 20px;
}

.add-review-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #555;
}

.rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.star-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.star-button:hover {
    transform: scale(1.1);
}

.star-icon {
    font-size: inherit;
    color: #ccc;
    transition: color 0.2s ease;
}

.star-icon.filled {
    color: #FFD700;
}

.star-icon.empty {
    color: #ccc;
}

.add-review-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    min-height: 100px;
    background-color: #fff;
    color: #333;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.add-review-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(240, 83, 28, 0.1);
}

.add-review-textarea:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.add-review-button-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.add-review-button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-review-cancel-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.add-review-cancel-button:hover:not(:disabled) {
    background-color: #e5e5e5;
}

.add-review-submit-button {
    background-color: #007AFF;
    color: #fff;
}

.add-review-submit-button:hover:not(:disabled) {
    background-color: #0056CC;
}

.add-review-button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.add-review-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.add-review-loading-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-review-submit-button-text {
    color: inherit;
}

/* Header collapse animation */
.collapsible-header {
    transition: all 0.3s ease;
}

.animated-collapse {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .input {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.input:focus,
.header-links:focus,
.footer-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Hover effects for interactive elements */
.btn:hover,
.header-links:hover,
.footer-link:hover {
    transform: translateY(-1px);
}

/* Transition utilities */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Border radius utilities */
.rounded-sm {
    border-radius: 0.125rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

/* Spacing utilities */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* Flexbox utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Color utilities */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

/* Hover state utilities */
.hover\:bg-primary:hover {
    background-color: var(--primary-color);
}

.hover\:bg-accent:hover {
    background-color: var(--accent-color);
}

.hover\:text-white:hover {
    color: white;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Focus state utilities */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:ring-accent:focus {
    box-shadow: 0 0 0 3px rgba(240, 83, 28, 0.5);
}
