/* Common styles shared across all pages */

/* Common responsive breakpoints */
@media (max-width: 768px) {
    /* Common mobile container adjustments */
    .container,
    .error-container,
    .success-container {
        padding: 1rem;
    }
    
    /* Common mobile icon sizes */
    .error-icon,
    .success-icon {
        font-size: 3rem;
    }
    
    /* Common mobile title sizes */
    .error-title,
    .success-title {
        font-size: 2rem;
    }
    
    /* Common mobile form adjustments */
    .buy-form-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Common mobile hero adjustments */
    .buy-hero,
    .error-hero,
    .success-hero {
        min-height: 70vh;
    }
    
    /* Common mobile message adjustments */
    .error-message,
    .payment-details {
        padding: 1rem;
        margin: 1.5rem 0;
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* Common mobile detail row adjustments */
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .detail-label {
        margin-bottom: 0.25rem;
    }
    
    .detail-value {
        text-align: right;
        width: 100%;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Common mobile result adjustments */
    .star-result {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .star-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .star-result-details {
        margin-top: 1rem;
    }
    
    /* Common mobile help adjustments */
    .error-help {
        margin-top: 1.5rem !important;
        padding: 1rem !important;
    }
    
    .error-help ul {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    /* Common mobile button adjustments */
    .error-buttons,
    .success-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .error-buttons .btn,
    .success-buttons .btn {
        margin: 0 !important;
        width: 100%;
    }
}

/* Common button styles */
.error-buttons .btn,
.success-buttons .btn {
    margin-right: 1rem;
}

/* Common container styles */
.error-container,
.success-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

/* Common icon styles */
.error-icon,
.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-icon {
    color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

.success-icon {
    color: #27ae60;
    animation: bounce 1s ease-in-out;
}

/* Common title styles */
.error-title,
.success-title {
    margin-bottom: 2rem;
}

/* Common subtitle styles */
.error-subtitle,
.success-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Common button container styles */
.error-buttons,
.success-buttons {
    margin-top: 2rem;
}

/* Common card/background styles */
.error-help,
.payment-details {
    background: var(--background-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.error-help {
    padding: 1rem;
    margin-top: 2rem;
    border-radius: var(--radius-lg);
}

/* Common text styles */
.error-help h3,
.payment-details h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.error-help h3 {
    margin-bottom: 1rem;
}

.payment-details h3 {
    margin-bottom: 1.5rem;
}

.error-help ul {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

/* Common animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Common loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

/* Common status colors */
.status-success { 
    color: #27ae60; 
}

.status-error { 
    color: #e74c3c; 
}

.status-loading {
    color: var(--primary-color);
}

.queue-status-error {
    color: #e74c3c !important;
}

.queue-status-warning {
    color: #ffc107 !important;
}

.queue-status-success {
    color: #27ae60 !important;
}

/* Common text colors */
.price-error {
    color: #e74c3c;
}

/* Common hero styles */
.buy-hero,
.error-hero,
.success-hero {
    min-height: 60vh;
}

/* Common form container styles */
.buy-form-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Common price display styles */
.buy-price-display {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

/* Common price text styles */
.price-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Common profile styles */
.profile-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    margin-left: 0.5rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.username-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    min-height: 2.5rem;
}

.status-icon {
    font-size: 1.5rem;
    vertical-align: middle;
}

/* Common buy page styles */
.buy-container {
    z-index: 2;
    position: relative;
}

.buy-form-title {
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.buy-price-label {
    margin-bottom: 0.5rem;
}

.buy-price-label span {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.buy-price-info {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.buy-price-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.buy-payment-modes {
    margin-bottom: 1rem;
}

.buy-payment-mode {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.9rem;
}

.buy-submit-button {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Common payment details styles */
.payment-details {
    background: var(--background-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    min-width: fit-content;
}

.detail-value {
    color: var(--primary-color);
    font-weight: 600;
    text-align: left;
    word-break: break-all;
    overflow-wrap: break-word;
    flex: 1;
}

/* Common star result styles */
.star-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    word-break: break-word;
    overflow-wrap: break-word;
}

.star-result.success {
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.star-result.error {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.star-result-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.star-result-details {
    font-size: 0.9rem;
    opacity: 0.8;
}

.star-result-transaction {
    direction: ltr;
    display: inline-block;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

.star-result-manual {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.star-result-manual a {
    color: inherit;
    text-decoration: underline;
}

/* Common error message styles */
.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 2rem 0;
    color: #e74c3c;
}

/* Common contact form centered styles */
.contact-form-centered {
    display: flex;
    align-items: center;
    height: 100%;
}

.contact-form-content-centered {
    text-align: center;
    width: 100%;
}

.contact-form-content-centered h3 {
    margin-bottom: 1rem;
}

.contact-form-content-centered p {
    margin-bottom: 1.5rem;
}

.contact-form-content-centered .btn {
    margin: 0 auto;
}

.contact-telegram {
    text-align: right;
} 