/**
 * Indie Music Platform - Common Styles
 * Базовые стили, используемые во всех шаблонах
 */

/* Убираем огромные заголовки темы */
.entry-content h2, 
.comment-body h2 {
    font-size: 1em !important;
    margin: 20px 0 15px !important;
}

/* Фон для всей страницы (включая Safe Area) */
body {
    background-color: #141423 !important;
    margin: 0;
    padding: 0;
}

/* Скрываем стандартный заголовок страницы */
.page-title-section {
    display: none !important;
}
.aux-content-top-margin .aux-primary {
    padding-top: 5px;
}

.elementor-shortcode h1,
.elementor-shortcode {
    color: #4fc3f7 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* === CSS VARIABLES === */
:root {
    --imp-primary: #007cba;
    --imp-primary-light: #4fc3f7;
    --imp-primary-dark: #005a87;
    --imp-success: #4caf50;
    --imp-warning: #ff9800;
    --imp-danger: #f44336;
    --imp-bg-dark: #1a1a1a;
    --imp-bg-card: #1e1e1e;
    --imp-bg-hover: #2d2d2d;
    --imp-text: #e0e0e0;
    --imp-text-muted: #888;
    --imp-border: rgba(255, 255, 255, 0.05);
    --imp-radius: 16px;
    --imp-radius-sm: 8px;
    --imp-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* === BASE === */
.imp-auth-container,
.imp-dashboard,
.imp-public-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--imp-text);
    padding: 0 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .imp-auth-container, 
    .imp-dashboard, 
    .imp-public-container {
        padding: 0;
        margin: 0 auto;
    }
}

/* === COMPONENTS === */

/* Cards */
.imp-card {
    background: linear-gradient(135deg, var(--imp-bg-card) 0%, #2a2a2a 100%);
    border-radius: var(--imp-radius);
    padding: 10px;
    margin-bottom: 24px;
    box-shadow: var(--imp-shadow);
    border: 1px solid var(--imp-border);
}

.imp-card h3 {
    margin: 0 0 20px;
    font-size: 1.2em;
    color: #ffffff;
}

/* Alerts */
.imp-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.imp-alert-success {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: #c8e6c9;
    border: 1px solid var(--imp-success);
}

.imp-alert-error {
    background: linear-gradient(135deg, #5e1b1b 0%, #7d2e2e 100%);
    color: #ffcdd2;
    border: 1px solid var(--imp-danger);
}

/* Forms */
.imp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.imp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.imp-field label {
    font-weight: 600;
    color: #bbbbbb;
    font-size: 0.9em;
}

.imp-field input[type="text"],
.imp-field input[type="email"],
.imp-field input[type="password"],
.imp-field select {
    padding: 12px 16px;
    background: var(--imp-bg-hover);
    border: 2px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
    width: 100%;
}

.imp-field input:focus,
.imp-field select:focus {
    outline: none;
    border-color: var(--imp-primary);
    background: #333;
}

/* File input */
.imp-file-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.imp-file-label input[type="file"] {
    display: none;
}

.imp-file-button {
    display: block;
    padding: 14px;
    background: var(--imp-bg-hover);
    border: 2px dashed #555;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.imp-file-button:hover {
    background: #333;
    border-color: var(--imp-primary);
}

.imp-file-info {
    font-size: 0.85em;
    color: var(--imp-text-muted);
    text-align: center;
}

/* Buttons */
.imp-btn-primary,
.imp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.imp-btn-primary {
    background: linear-gradient(135deg, var(--imp-primary) 0%, var(--imp-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.imp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.imp-btn {
    background: #333;
    color: #fff;
}

.imp-btn:hover {
    background: #444;
}

.imp-btn-full {
    width: 100%;
}

.imp-btn-delete {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.3em;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.imp-btn-delete:hover {
    color: #ff6666;
    transform: scale(1.2);
}

.imp-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.imp-btn-icon:hover {
    transform: scale(1.2);
}

.imp-btn-icon-small {
    background: none;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    padding: 2px 6px;
    transition: all 0.2s ease;
    color: var(--imp-text-muted);
}

.imp-btn-icon-small:hover {
    transform: scale(1.2);
    color: var(--imp-primary-light);
}

.imp-btn-danger:hover {
    color: #ff4444;
}

/* Checkbox */
.imp-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.imp-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.imp-checkbox label {
    cursor: pointer;
    color: #bbb;
}

/* Badges */
.imp-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.imp-badge-public {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid var(--imp-success);
}

.imp-badge-private {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid var(--imp-warning);
}

.imp-badge-no-download {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid var(--imp-danger);
}

/* Empty states */
.imp-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.imp-empty-icon {
    font-size: 5em;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.imp-empty-state h3,
.imp-empty-state h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.1em;
}

.imp-empty-state p {
    margin: 0;
    color: var(--imp-text-muted);
}

/* Error */
.imp-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--imp-danger);
    color: #ffcdd2;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.2em;
}

/* Avatars */
.imp-avatar {
    width: 80px;
    height: 80px;
    background: #607d8b33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
}

.imp-avatar i,
.imp-public-avatar i,
.imp-public-avatar-small i {
    color: var(--imp-primary-light);
}

.imp-public-avatar {
    width: 60px;
    height: 60px;
    background: #ffffff0a;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.imp-public-avatar-small {
    width: 40px;
    height: 40px;
    background: #607d8b33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

/* Modals */
.imp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.imp-modal-content {
    background: linear-gradient(135deg, var(--imp-bg-card) 0%, #2a2a2a 100%);
    border-radius: var(--imp-radius);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.imp-modal-content h3 {
    margin: 0 0 24px;
    color: #fff;
    font-size: 1.2em;
}

.imp-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.imp-modal-buttons button {
    flex: 1;
}

/* Sorting */
.imp-sorting {
    background: var(--imp-bg-card);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.imp-sorting span {
    color: var(--imp-text-muted);
    font-weight: 600;
    font-size: .8em;
}

.imp-sorting a {
    color: var(--imp-primary-light);
    text-decoration: none;
    padding: 4px 5px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: .8em;
    line-height: 1;
}

.imp-sorting a:hover {
    background: rgba(79, 195, 247, 0.1);
}

.imp-sorting a.active {
    background: rgba(79, 195, 247, 0.2);
    font-weight: 600;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}