/**
 * Account and Help Section Styles
 * All styles related to user account pages, order management, and help sections
 */

/* Order History Styles */
.incom-orders-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.incom-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.incom-orders-header h2 {
    margin: 0;
    color: var(--gcid-secondary-color, #333);
    font-size: 1.8rem;
}

.orders-filter {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-dropdown select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: var(--gcid-secondary-color, #333);
    font-size: 0.9rem;
}

.orders-grid {
    display: grid;
    gap: 1.5rem;
}

.order-card {
    background: var(--incom-bg-subtle);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--gcid-secondary-color, #007cba);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--gcid-secondary-color, #333);
    font-size: 1.2rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-total {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gcid-secondary-color, #333);
    margin-top: 1rem;
}

/* No Orders Message */
.incom-no-orders {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--incom-bg-subtle);
    border-radius: 12px;
    margin: 2rem 0;
}

.incom-no-orders h4 {
    color: var(--gcid-secondary-color, #333);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.incom-no-orders p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.incom-no-orders a {
    display: inline-block;
    background: var(--gcid-secondary-color, #007cba);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.incom-no-orders a:hover {
    background: #005a87;
    color: #fff;
}

/* WooCommerce Account Navigation Side Menu */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    background: var(--incom-bg-subtle);
    transition: background 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li:nth-child(even) {
    background: var(--incom-bg-light-mix);
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--gcid-secondary-color, #333);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--incom-hover-bg);
    color: var(--gcid-secondary-color, #007cba);
    padding-left: 2rem;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--gcid-secondary-color, #007cba);
    color: #ffffff;
    font-weight: 600;
}

.woocommerce-MyAccount-navigation ul li.is-active a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gcid-primary-color, #28a745);
}

/* Special styling for logout link */
.woocommerce-MyAccount-navigation ul li:last-child a {
    color: #dc3545;
    background: color-mix(in srgb, #dc3545 8%, white);
}

.woocommerce-MyAccount-navigation ul li:last-child a:hover {
    background: color-mix(in srgb, #dc3545 15%, white);
    color: color-mix(in srgb, #dc3545 90%, black);
}

/* My Account Content Area */
.woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Content lists in My Account area should have disc styling */
.woocommerce-MyAccount-content ul:not(.woocommerce-order-downloads):not(.woocommerce-order-download-links) {
    list-style: disc;
    padding-left: 1.5rem;
}

.woocommerce-MyAccount-content ul li {
    margin-bottom: 0.5rem;
}

/* Ensure specific WooCommerce lists don't get disc styling */
.woocommerce-MyAccount-content .woocommerce-order-downloads,
.woocommerce-MyAccount-content .woocommerce-order-download-links {
    list-style: none;
    padding-left: 0;
}

/* Help Section Styles */
.incom-help-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.incom-help-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--gcid-secondary-color, #333);
    font-size: 1.5rem;
}

/* Support Actions Grid */
.help-support-actions {
    margin-bottom: 2rem;
}

.help-support-actions h4 {
    margin: 0 0 1rem 0;
    color: var(--gcid-secondary-color, #333);
    font-size: 1.2rem;
}

.support-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.support-action {
    background: var(--incom-bg-subtle);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.support-action:hover {
    background: var(--incom-hover-bg);
    border-color: var(--gcid-secondary-color, #007cba);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--gcid-secondary-color, #007cba);
}

.action-text {
    color: var(--gcid-secondary-color, #333);
    font-weight: 500;
}

/* Recent Orders in Help Section */
.help-recent-orders {
    margin-bottom: 2rem;
}

.help-recent-orders h4 {
    margin: 0 0 1rem 0;
    color: var(--gcid-secondary-color, #333);
    font-size: 1.2rem;
}

.recent-orders-help {
    display: grid;
    gap: 1rem;
}

.order-help-item {
    background: var(--incom-bg-subtle);
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-basic-info {
    flex: 1;
}

.order-basic-info strong {
    color: var(--gcid-secondary-color, #333);
    font-size: 1.1rem;
}

.order-basic-info .order-date {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.5rem 1rem;
    background: var(--gcid-secondary-color, #007cba);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.btn-action:hover {
    background: #005a87;
    color: #fff;
}

.btn-cancel {
    background: #dc3545;
}

.btn-cancel:hover {
    background: #c82333;
}

/* FAQ Items */
.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h5 {
    margin: 0 0 0.5rem 0;
    color: var(--gcid-secondary-color, #333);
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-item a {
    color: var(--gcid-secondary-color, #007cba);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Contact Methods */
.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-method {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--gcid-secondary-color, #007cba);
}

.contact-method h5 {
    margin: 0 0 0.5rem 0;
    color: var(--gcid-secondary-color, #333);
    font-size: 1rem;
}

.contact-method p {
    margin: 0 0 0.25rem 0;
}

.contact-method small {
    color: #666;
    font-size: 0.8rem;
}

.contact-method a {
    color: var(--gcid-secondary-color, #007cba);
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline;
}

.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.help-category {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--gcid-secondary-color, #e0e0e0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.help-category h4 {
    margin: 0 0 1rem 0;
    color: var(--gcid-secondary-color, #333);
    font-size: 1.2rem;
}

.help-category ul {
    list-style: disc;
    padding: 0 0 0 1.5rem;
    margin: 0;
}

.help-category li {
    margin-bottom: 0.5rem;
}

.help-category a {
    color: var(--gcid-secondary-color, #007cba);
    text-decoration: none;
    transition: color 0.2s;
}

.help-category a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Contact Form */
.help-contact-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--gcid-secondary-color, #e0e0e0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.help-contact-form h4 {
    margin: 0 0 1.5rem 0;
    color: var(--gcid-secondary-color, #333);
    font-size: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--gcid-secondary-color, #333);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gcid-secondary-color, #ddd);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gcid-secondary-color, #007cba);
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 1rem;
}

.btn-submit {
    padding: 0.75rem 2rem;
    background: var(--gcid-secondary-color, #007cba);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #005a87;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}
