/* Components CSS for Banki-tut.ru */

/* Card Components */
.article-card,
.category-card,
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Form Components */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Button Variants */
.btn--sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.125rem;
    min-height: 56px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(46, 134, 171, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 300ms ease, opacity 300ms ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification__content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification__close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

/* Accordion */
.accordion {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 1.25rem 1.25rem;
    max-height: 1000px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--text-primary);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag:hover {
    background-color: var(--primary-light);
    color: white;
}

/* Rating Stars */
.rating {
    display: inline-flex;
    align-items: center;
}

.rating-stars {
    color: #FFD700;
    font-size: 1.2rem;
}

.rating-value {
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.vk:hover { background-color: #4C75A3; color: white; border-color: #4C75A3; }
.share-btn.telegram:hover { background-color: #0088cc; color: white; border-color: #0088cc; }
.share-btn.whatsapp:hover { background-color: #25D366; color: white; border-color: #25D366; }