/*
 * LocalBuzz Video Contest Platform - Main Styles
 * Version: 3.2.0
 */

/* Global Styles */
.localbuzz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Button Styles */
.localbuzz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1;
}

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

.localbuzz-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.localbuzz-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.localbuzz-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e1e1e1;
}

.localbuzz-btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

.localbuzz-btn-info {
    background: #17a2b8;
    color: white;
}

.localbuzz-btn-info:hover {
    background: #138496;
    color: white;
}

.localbuzz-btn-success {
    background: #28a745;
    color: white;
}

.localbuzz-btn-success:hover {
    background: #218838;
    color: white;
}

.localbuzz-btn-warning {
    background: #ffc107;
    color: #212529;
}

.localbuzz-btn-warning:hover {
    background: #e0a800;
    color: #212529;
}

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

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

.localbuzz-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.localbuzz-btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Loading Spinner */
.localbuzz-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: localbuzz-spin 1s linear infinite;
}

@keyframes localbuzz-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Styles */
.localbuzz-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.localbuzz-form-row {
    margin-bottom: 20px;
}

.localbuzz-form-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.localbuzz-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.localbuzz-form-input,
.localbuzz-form-textarea,
.localbuzz-form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.localbuzz-form-input:focus,
.localbuzz-form-textarea:focus,
.localbuzz-form-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.localbuzz-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.localbuzz-form-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* Card Styles */
.localbuzz-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.localbuzz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.localbuzz-card-header {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.localbuzz-card-body {
    padding: 25px;
}

.localbuzz-card-footer {
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

.localbuzz-card-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.localbuzz-card-text {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Grid System */
.localbuzz-grid {
    display: grid;
    gap: 20px;
}

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

.localbuzz-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.localbuzz-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Alert Messages */
.localbuzz-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.localbuzz-alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.localbuzz-alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.localbuzz-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.localbuzz-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Badge Styles */
.localbuzz-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.localbuzz-badge-primary {
    background: #667eea;
    color: white;
}

.localbuzz-badge-success {
    background: #28a745;
    color: white;
}

.localbuzz-badge-warning {
    background: #ffc107;
    color: #212529;
}

.localbuzz-badge-danger {
    background: #dc3545;
    color: white;
}

.localbuzz-badge-secondary {
    background: #6c757d;
    color: white;
}

/* Progress Bar */
.localbuzz-progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.localbuzz-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.localbuzz-progress-sm {
    height: 6px;
}

.localbuzz-progress-lg {
    height: 12px;
}

/* Modal Styles */
.localbuzz-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.localbuzz-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: localbuzz-modal-fadeIn 0.3s ease;
}

@keyframes localbuzz-modal-fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.localbuzz-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.localbuzz-modal-title {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.localbuzz-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.localbuzz-modal-close:hover {
    color: #333;
    background: #f8f9fa;
}

.localbuzz-modal-body {
    padding: 30px;
}

.localbuzz-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e1e1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Table Styles */
.localbuzz-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.localbuzz-table th,
.localbuzz-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.localbuzz-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.localbuzz-table tbody tr:hover {
    background: #f8f9fa;
}

.localbuzz-table tbody tr:last-child td {
    border-bottom: none;
}

/* Utility Classes */
.localbuzz-text-center { text-align: center; }
.localbuzz-text-left { text-align: left; }
.localbuzz-text-right { text-align: right; }

.localbuzz-mb-0 { margin-bottom: 0; }
.localbuzz-mb-1 { margin-bottom: 10px; }
.localbuzz-mb-2 { margin-bottom: 20px; }
.localbuzz-mb-3 { margin-bottom: 30px; }
.localbuzz-mb-4 { margin-bottom: 40px; }

.localbuzz-mt-0 { margin-top: 0; }
.localbuzz-mt-1 { margin-top: 10px; }
.localbuzz-mt-2 { margin-top: 20px; }
.localbuzz-mt-3 { margin-top: 30px; }
.localbuzz-mt-4 { margin-top: 40px; }

.localbuzz-hidden { display: none; }
.localbuzz-visible { display: block; }

/* Loading States */
.localbuzz-loading {
    opacity: 0.7;
    pointer-events: none;
}

.localbuzz-loading .localbuzz-spinner {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .localbuzz-container {
        padding: 15px;
    }
    
    .localbuzz-grid-2,
    .localbuzz-grid-3,
    .localbuzz-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .localbuzz-modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .localbuzz-modal-header,
    .localbuzz-modal-body,
    .localbuzz-modal-footer {
        padding: 20px;
    }
    
    .localbuzz-form-group {
        grid-template-columns: 1fr;
    }
    
    .localbuzz-table {
        font-size: 14px;
    }
    
    .localbuzz-table th,
    .localbuzz-table td {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .localbuzz-btn {
        width: 100%;
        justify-content: center;
    }
    
    .localbuzz-modal-footer {
        flex-direction: column;
    }
    
    .localbuzz-modal-footer .localbuzz-btn {
        margin: 0;
    }
}

/* Generic Button Classes for Marketplace */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    color: white;
}