/* ============================================
   LEAP LOVE - Global Stylesheet
   Centralized styles for all pages
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   HEADERS & TYPOGRAPHY
   ============================================ */
header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

h1 {
    color: #333;
    border-bottom: 2px solid #0d9488;
    padding-bottom: 10px;
}

h2 {
    color: #0d9488;
    margin-bottom: 20px;
}

h3 {
    color: #333;
}

h4 {
    color: #0d9488;
    margin-bottom: 5px;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.search-panel {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.search-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group.full {
    grid-template-columns: 1fr;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.section-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0d9488;
    padding-bottom: 10px;
}

/* ============================================
   BUTTONS
   ============================================ */
button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search {
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    color: white;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 148, 136, 0.4);
}

.btn-clear {
    background: #f0f0f0;
    color: #333;
}

.btn-clear:hover {
    background: #e0e0e0;
}

.btn-primary {
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 148, 136, 0.4);
}

.btn {
    background: #0d9488;
    color: white;
}

.btn:hover {
    background: #0a7566;
}

/* ============================================
   SEARCH CONTROLS
   ============================================ */
.search-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #0d9488;
    border-bottom-color: #0d9488;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   RESULTS & PRODUCTS
   ============================================ */
.results-container {
    display: grid;
    gap: 20px;
}

.result-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-header {
    background: linear-gradient(135deg, #e4e4e4 0%, #d5d5d5 100%);
    color: black;
    padding: 25px;
    border-top-left-radius: 8px;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
    margin-bottom: 15px;
    border-top-right-radius: 8px;
}

.product-header h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.product-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    font-size: 0.9em;
    opacity: 0.9;
}

.product-info span {
    display: block;
}

.product-info strong {
    display: block;
    font-size: 0.85em;
    opacity: 0.8;
    margin-bottom: 2px;
}

.price {
    font-size: 1.3em;
    font-weight: bold;
    color: #0d9488;
}

/* ============================================
   BUSINESSES & STORES
   ============================================ */
.businesses {
    padding: 20px;
}

.business-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #0d9488;
}

.business-item:last-child {
    margin-bottom: 0;
}

.product-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #0d9488;
}

.business-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.business-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 0.95em;
    color: #666;
}

.detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

/* ============================================
   FEEDBACK MESSAGES
   ============================================ */
.loading {
    text-align: center;
    color: white;
    padding: 40px;
    font-size: 1.2em;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    color: #666;
    font-size: 1.1em;
}

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success-message {
    background: #51cf66;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* ============================================
   ADMIN & MANAGEMENT STYLES
   ============================================ */
.content {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #0d9488;
}

.menu-item {
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    color: white;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #0d9488;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background: #0d9488;
    color: white;
    font-weight: bold;
    padding: 12px;
    text-align: left;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background: #f5f5f5;
}

/* ============================================
   VERIFICATION & SETUP STYLES
   ============================================ */
.check-item.pass {
    border-left-color: #0d9488;
    background: #f0fdf9;
}

.next-steps {
    margin-top: 40px;
    padding: 20px;
    background: #f0fdf9;
    border-radius: 5px;
    border-left: 4px solid #0d9488;
}

.next-steps h3 {
    color: #0d9488;
    margin-bottom: 15px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .search-buttons {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        grid-template-columns: 1fr;
    }
    
    .business-details {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .product-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .search-panel {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .product-header {
        padding: 15px;
    }
    
    .product-header h3 {
        font-size: 1.2em;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.features {
    display: grid;
    gap: 30px;
}

.features h2 {
    color: #0d9488;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-text h4 {
    color: #0d9488;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   CARD & LINK STYLES
   ============================================ */
.card-button {
    display: inline-block;
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 148, 136, 0.4);
}

a {
    color: #0d9488;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
