/**
 * Profile Master Frontend Styles
 */

.social-master-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2d3748;
}

.social-master-loading {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.social-master-error {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #feb2b2;
}

.social-master-success {
    background: #c6f6d5;
    color: #22543d;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #9ae6b4;
}

/* Button Styles */
.sm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
}

.sm-btn-primary {
    background: #667eea;
    color: white;
}

.sm-btn-primary:hover {
    background: #5a67d8;
    color: white;
    transform: translateY(-1px);
}

.sm-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.sm-btn-secondary:hover {
    background: #667eea;
    color: white;
}

.sm-btn-small {
    padding: 6px 12px;
    font-size: 0.8em;
}

.sm-btn-large {
    padding: 12px 24px;
    font-size: 1em;
}

/* Form Styles */
.sm-form-group {
    margin-bottom: 20px;
}

.sm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3748;
}

.sm-form-control {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

.sm-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sm-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.sm-form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Card Styles */
.sm-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.sm-card-header {
    padding: 20px 20px 0 20px;
}

.sm-card-body {
    padding: 20px;
}

.sm-card-footer {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
    padding-top: 20px;
}

.sm-card-title {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    font-weight: 600;
    color: #2d3748;
}

.sm-card-subtitle {
    margin: 0;
    color: #718096;
    font-size: 0.9em;
}

/* Grid Styles */
.sm-grid {
    display: grid;
    gap: 20px;
}

.sm-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.sm-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sm-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Utility Classes */
.sm-text-center { text-align: center; }
.sm-text-left { text-align: left; }
.sm-text-right { text-align: right; }

.sm-mb-0 { margin-bottom: 0; }
.sm-mb-1 { margin-bottom: 10px; }
.sm-mb-2 { margin-bottom: 20px; }
.sm-mb-3 { margin-bottom: 30px; }

.sm-mt-0 { margin-top: 0; }
.sm-mt-1 { margin-top: 10px; }
.sm-mt-2 { margin-top: 20px; }
.sm-mt-3 { margin-top: 30px; }

.sm-p-0 { padding: 0; }
.sm-p-1 { padding: 10px; }
.sm-p-2 { padding: 20px; }
.sm-p-3 { padding: 30px; }

.sm-text-primary { color: #667eea; }
.sm-text-secondary { color: #718096; }
.sm-text-success { color: #38a169; }
.sm-text-warning { color: #d69e2e; }
.sm-text-error { color: #e53e3e; }

.sm-bg-primary { background-color: #667eea; color: white; }
.sm-bg-secondary { background-color: #f7fafc; }
.sm-bg-success { background-color: #c6f6d5; }
.sm-bg-warning { background-color: #faf089; }
.sm-bg-error { background-color: #fed7d7; }

.sm-border-radius { border-radius: 8px; }
.sm-border-radius-lg { border-radius: 12px; }

.sm-shadow { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.sm-shadow-lg { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

/* Animation */
.sm-fade-in {
    animation: pmFadeIn 0.3s ease-in-out;
}

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

.sm-spin {
    animation: pmSpin 1s linear infinite;
}

@keyframes pmSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .sm-grid-2,
    .sm-grid-3,
    .sm-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .sm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* WooCommerce My Account Integration */
.woocommerce-account .social-master-container {
    margin-top: 0;
}

/* Profile Page Styles */
.social-master-page-container {
    padding: 20px 0;
    min-height: 500px;
}

.social-master-page-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Profile Navigation Styles */
.profile-nav {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.profile-nav a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    font-weight: 500;
}

.profile-nav a:hover,
.profile-nav a.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.profile-share {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.profile-share input {
    margin-left: 10px;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    border-radius: 3px !important;
    min-width: 200px;
}

@media (max-width: 768px) {
    .profile-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-share {
        width: 100%;
        justify-content: center;
    }
    
    .profile-share input {
        min-width: 250px;
    }
}
