/* Custom Styles for CircleUp */

:root {
    --primary-color: #40e0d0;
    --secondary-color: #20b2aa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --purple: #6f42c1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Greeting Card */
.greeting-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.greeting-card .card-body {
    padding: 2rem;
}

/* Greeting Buttons */
.btn-greeting {
    border-radius: 15px;
    transition: all 0.3s ease;
    padding: 1rem;
    font-size: 1rem;
    border-width: 2px;
}

.btn-greeting:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-greeting:active {
    transform: translateY(0);
}

/* Custom Greeting Styles */
.custom-greeting {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.custom-greeting:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0fdfc 0%, #e6fffe 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.2);
}

.custom-greeting .input-group {
    width: 100%;
    max-width: 280px;
    margin-bottom: 0.5rem;
}

.custom-greeting .input-group-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 10px 0 0 10px;
}

.custom-greeting .form-control {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.custom-greeting .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.custom-greeting .btn {
    border: 2px solid var(--primary-color);
    border-left: none;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.custom-greeting .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: none;
}

.custom-greeting small {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Activity Cards */
.activity-card {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.activity-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

.activity-card .card-body {
    padding: 1.25rem;
}

.activity-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.activity-contact {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Chat Styles */
.chat-container {
    max-width: 600px;
}

.chat-bubble {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 25px 25px 25px 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    position: relative;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--secondary-color);
}

.chat-response {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 25px 25px 8px 25px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.chat-response::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #e9ecef;
}

.chat-button {
    margin: 0.25rem;
    min-width: 120px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.chat-button:hover {
    transform: translateY(-1px);
}

/* Form Section Animations */
.form-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.form-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar */
.progress-indicator {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Feature Icons */
.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.feature-icon:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* Community Event Styles */
.bg-light-green {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.border-success {
    border-color: var(--success-color) !important;
}

/* Admin Styles */
.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    margin-right: 0.5rem;
}

.nav-tabs .nav-link.active {
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Share Page Styles */
.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .greeting-card .card-body {
        padding: 1.5rem;
    }
    
    .chat-bubble {
        padding: 1rem 1.5rem;
        border-radius: 20px 20px 20px 5px;
    }
    
    .chat-response {
        padding: 1.5rem;
        border-radius: 20px 20px 5px 20px;
    }
    
    .chat-button {
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .activity-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-greeting {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .chat-bubble {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .chat-response {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
}

/* Animation Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

/* Venue Voting Component Styles */
.vote-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vote-section:hover {
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.1);
    border-color: var(--primary-color);
}

.vote-btn {
    border-radius: 20px;
    font-weight: 600;
    min-width: 70px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.vote-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.vote-btn.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    border: none;
}

.vote-count {
    font-weight: bold;
    margin-left: 4px;
}

.tag-btn {
    border-radius: 15px;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tag-btn.btn-secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
}

.tag-btn.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.tag-btn.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.review-note {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.review-note:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(64, 224, 208, 0.25);
}

.save-review-btn {
    border-radius: 20px;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    border: none;
}

.save-review-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
}

.save-review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.save-review-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.save-review-btn.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.total-reviews {
    font-weight: 600;
    color: #6c757d;
}

/* Responsive adjustments for voting */
@media (max-width: 768px) {
    .vote-btn {
        min-width: 60px;
        font-size: 0.9rem;
    }
    
    .tag-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.3rem;
    }
    
    .vote-section {
        padding: 1rem !important;
    }
}

/* Animation for vote submissions */
@keyframes voteSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.vote-success-animation {
    animation: voteSuccess 0.6s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Focus States */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s ease infinite;
}

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

/* Utility Classes */
.text-purple {
    color: var(--purple) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.rounded-large {
    border-radius: 20px !important;
}

.border-soft {
    border: 1px solid #e9ecef !important;
}

/* Fix dropdown visibility issues */
.dropdown-menu {
    z-index: 1055 !important;
    position: absolute !important;
    min-width: 200px !important;
}

.dropdown.show .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Ensure share dropdowns are always visible */
.activity-card .dropdown-menu,
.card .dropdown-menu {
    z-index: 1060 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
}
