/* Music Publishing Service Styles */

.publishing-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.publishing-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.publishing-title p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
}

.credit-display .credit-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 280px;
}

.credit-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-info {
    flex: 1;
}

.credit-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.credit-amount {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.credit-period {
    font-size: 0.8rem;
    opacity: 0.7;
}

.buy-credits-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-credits-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Service Options */
.service-options {
    margin-bottom: 40px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.education-card {
    border-left: 4px solid #10B981;
}

.agent-card {
    border-left: 4px solid #8B5CF6;
}

.service-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F3F4F6;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.service-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
    margin: 8px 0;
}

.education-card .service-price {
    color: #10B981;
}

.agent-card .service-price {
    color: #8B5CF6;
}

.price-note {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6B7280;
}

.service-description {
    margin-bottom: 24px;
}

.service-description p {
    color: #4B5563;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.service-features h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px 0;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.service-features li {
    padding: 8px 0;
    color: #4B5563;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.agent-card .service-features li::before {
    background: #8B5CF6;
}

.service-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.primary-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.agent-card .primary-btn {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.agent-card .primary-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.secondary-btn {
    background: transparent;
    color: #6B7280;
    border: 2px solid #E5E7EB;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.secondary-btn:hover {
    border-color: #D1D5DB;
    color: #4B5563;
    background: #F9FAFB;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 40px;
}

.quick-actions h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 24px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.action-card:hover {
    border-color: #8B5CF6;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.15);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.action-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.action-card p {
    color: #6B7280;
    font-size: 0.95rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.credit-cost {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 16px;
    right: 16px;
}

/* Agent Status */
.agent-status {
    margin-bottom: 40px;
}

.status-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.status-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-indicator.online {
    background: #ECFDF5;
    color: #059669;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    color: #6B7280;
    font-weight: 500;
}

.status-value {
    color: #1F2937;
    font-weight: 600;
}

/* Recent Activity */
.recent-activity {
    margin-bottom: 40px;
}

.recent-activity h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 24px;
}

.activity-list {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #F3F4F6;
    transition: background-color 0.2s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: #F9FAFB;
}

.activity-icon {
    font-size: 1.5rem;
    margin-right: 16px;
    width: 40px;
    text-align: center;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.activity-description {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.activity-time {
    color: #9CA3AF;
    font-size: 0.8rem;
}

.activity-status {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.activity-status.ready {
    background: #ECFDF5;
    color: #059669;
}

.activity-status.processing {
    background: #FEF3C7;
    color: #D97706;
}

.activity-status.completed {
    background: #EFF6FF;
    color: #2563EB;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content.large {
    max-width: 1000px;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 32px;
}

/* Course Preview Styles */
.course-preview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.preview-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 16px 0;
}

.preview-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin: 24px 0 12px 0;
}

.preview-section ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.preview-section li {
    color: #4B5563;
    margin-bottom: 8px;
    line-height: 1.5;
}

.course-purchase {
    position: sticky;
    top: 0;
}

.purchase-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.purchase-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 16px 0;
}

.course-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 16px;
}

.course-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6B7280;
    display: block;
}

.course-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.course-benefits li {
    padding: 6px 0;
    color: #4B5563;
    font-size: 0.95rem;
}

.purchase-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Agent Interface Styles */
.agent-interface {
    max-width: 800px;
    margin: 0 auto;
}

.agent-welcome {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: #F8FAFC;
    border-radius: 12px;
}

.agent-welcome h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px 0;
}

.agent-welcome p {
    color: #4B5563;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.agent-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-option {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-option:hover {
    border-color: #8B5CF6;
    background: #F8FAFC;
    transform: translateY(-2px);
}

.service-option .service-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
}

.service-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.service-info p {
    color: #6B7280;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.service-info .cost {
    background: #8B5CF6;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .publishing-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .course-preview {
        grid-template-columns: 1fr;
    }
    
    .agent-services {
        grid-template-columns: 1fr;
    }
    
    .status-details {
        grid-template-columns: 1fr;
    }
}
