/* ============================================
   COMPONENTS STYLESHEET
   Ð¡Ð¿ÐµÑ†Ð¸Ñ„Ð¸Ñ‡Ð½Ñ‹Ðµ ÐºÐ¾Ð¼Ð¿Ð¾Ð½ÐµÐ½Ñ‚Ñ‹ Ð´Ð»Ñ Balloon Game
   ============================================ */

/* Casino Cards */
.casinos-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.casino-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.casino-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.casino-card.featured {
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(244, 162, 97, 0.05) 100%);
}

.casino-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.casino-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.casino-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.casino-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.casino-name {
    font-size: 1.5rem;
    margin: 0;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: var(--gold);
    font-size: 1.25rem;
}

.rating-value {
    font-weight: 700;
    color: var(--gold);
}

.casino-bonus {
    background: var(--gradient-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 1rem 0;
}

.bonus-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.bonus-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-top: 0.5rem;
}

.casino-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-tag {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--success);
}

.casino-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.casino-cta .btn {
    flex: 1;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255,255,255,0.05);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Review Cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.review-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.review-rating {
    color: var(--gold);
    font-size: 1.25rem;
}

.review-content {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Live Statistics Ticker */
.live-ticker {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    overflow: hidden;
}

.ticker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ticker-item:last-child {
    border-bottom: none;
}

.ticker-multiplier {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}

.ticker-amount {
    color: var(--success);
}

/* Calculator Component */
.calculator {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    max-width: 600px;
    margin: 2rem auto;
}

.calculator-input-group {
    margin-bottom: 1.5rem;
}

.calculator-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gold);
}

.calculator-input-group input,
.calculator-input-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 1rem;
}

.calculator-input-group input:focus,
.calculator-input-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.calculator-result {
    background: var(--gradient-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 2rem;
}

.calculator-result-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.calculator-result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

/* Tabs Component */
.tabs {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent);
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.tab-button:hover {
    color: var(--text);
}

.tab-button.active {
    color: var(--gold);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-dark);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-success);
    transition: width var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.badge-info {
    background: rgba(52, 152, 219, 0.2);
    color: var(--info);
    border: 1px solid var(--info);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--primary);
    color: var(--text);
    text-align: center;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    position: absolute;
    z-index: var(--z-tooltip);
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity var(--transition-base);
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

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

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}
