/* Reverse Swear Jar - Custom Styles */

:root {
    --primary-color: #198754;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    min-height: 15vh;
    display: flex;
    align-items: center;
    color: white !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.bg-gradient {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%) !important;
    color: white !important;
}

/* Cards */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.payment-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.results-card {
    background: linear-gradient(145deg, #f8fff8 0%, #ffffff 100%);
    border: 2px solid var(--primary-color);
}

/* Examples */
/* .example-item styles removed to clean up examples section */

/* Expletives Display */
.expletive-item {
    background: linear-gradient(145deg, #ffffff 0%, #f0f8f0 100%);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expletive-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.2);
}

.expletive-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.expletive-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    font-style: italic;
    flex: 1;
    margin: 0;
}

.copy-button {
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-self: flex-start;
}

@media (max-width: 576px) {
    .expletive-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .copy-button {
        align-self: flex-end;
    }
}


.copy-button.copied {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.btn-success {
    background: linear-gradient(145deg, var(--primary-color) 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(145deg, #157347 0%, #1aa085 100%);
}

#pay-button {
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

#pay-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#pay-button:hover::before {
    left: 100%;
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Price Display */
.price-display {
    padding: 10px;
    background: linear-gradient(145deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 15px;
    border: 2px dashed var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

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

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Alert Customizations */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.alert-warning {
    background: linear-gradient(145deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(145deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        min-height: 10vh;
        padding: 0.5rem 0 !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    #pay-button {
        min-width: 100%;
    }
    
    .price-display .display-5 {
        font-size: 2rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-section {
        min-height: 8vh;
        padding: 0.25rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 0.9rem !important;
    }
}

/* Copy feedback */
.copy-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Ensure minimum height for the page */
html, body {
    height: 100%;
    background-color: #ffffff;
    color: var(--dark-color);
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

main {
    flex: 1;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* Results header responsive layout */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 576px) {
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .results-header h3 {
        order: 1;
        margin-bottom: 0.5rem;
    }
    
    .results-header button {
        order: 2;
    }
}
