/* ===================================
   Publisher Pages Styles
   =================================== */

/* My Websites Page */
.websites-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.websites-toolbar .search-box {
    max-width: 400px;
}

.publisher-websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.publisher-website-card {
    background: var(--dark-card-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.publisher-website-card:hover {
    border-color: var(--border-hover);
}

.publisher-website-header {
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.publisher-website-body {
    padding: 16px;
}

.publisher-website-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.website-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-suspended {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Add Website Form */
.add-website-form {
    max-width: 800px;
}

.form-section {
    background: var(--dark-card-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.form-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row .form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group .help-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Pending Orders Page */
.pending-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pending-order-card {
    background: var(--dark-card-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.pending-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pending-order-info h4 {
    margin-bottom: 4px;
}

.pending-order-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pending-order-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-md);
}

.pending-order-details .detail-item {
    text-align: center;
}

.pending-order-details .detail-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.pending-order-details .detail-item span {
    font-weight: 600;
    color: var(--text-primary);
}

.pending-order-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Earnings Page */
.earnings-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.earnings-chart {
    background: var(--dark-card-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.earnings-chart h3 {
    margin-bottom: 20px;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

/* Withdraw Page */
.withdraw-form {
    max-width: 600px;
}

.withdraw-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.withdraw-method {
    padding: 20px;
    background: var(--dark-card-soft);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.withdraw-method:hover {
    border-color: var(--primary-color);
}

.withdraw-method.selected {
    border-color: var(--primary-color);
    background: rgba(34, 197, 94, 0.1);
}

.withdraw-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.withdraw-method h4 {
    margin-bottom: 4px;
}

.withdraw-method p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Publisher Tips */
.publisher-tips {
    margin-top: 40px;
}

.publisher-tips h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.publisher-tips h2 i {
    color: #f59e0b;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tip-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--dark-card-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.tip-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tip-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

.tip-card p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .earnings-overview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .pending-order-details { grid-template-columns: repeat(2, 1fr); }
    .withdraw-methods { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .pending-order-details { grid-template-columns: 1fr; }
    .pending-order-actions { flex-direction: column; }
    .earnings-overview { grid-template-columns: 1fr; }
}

/* Publisher app — light content area (icopify.co aligned) */
body.publisher-app .dashboard-main {
    background: #eef1f6;
}

body.publisher-app .dashboard-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

body.publisher-app .dashboard-content {
    color: #1e293b;
}

body.publisher-app .page-header h1,
body.publisher-app .stat-info h3 {
    color: #1e293b;
}

body.publisher-app .page-header p,
body.publisher-app .stat-info p {
    color: #64748b;
}

body.publisher-app .stat-card,
body.publisher-app .quick-actions,
body.publisher-app .recent-activity,
body.publisher-app .publisher-tips {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

body.publisher-app .header-user:hover {
    background: #f1f5f9;
}

body.publisher-app .user-dropdown {
    background: #fff;
    border-color: #e2e8f0;
}

body.publisher-app .user-dropdown a {
    color: #475569;
}