/*
 * My Account Page Styles for Boncugum Theme
 */

.woocommerce-account .site-main {
    padding: 0;
    background-color: #f9fafb;
    min-height: 100vh;
}

.woocommerce-account .entry-header {
    background-color: #ffffff;
    padding: 4rem 1.25rem 3rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.woocommerce-account .entry-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.025em;
}

@media (max-width: 768px) {
    .woocommerce-account .entry-title {
        font-size: 2rem;
    }

    .woocommerce-account .entry-header {
        padding: 3rem 1.25rem 2rem;
    }
}

.boncuk-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .boncuk-account-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Sidebar Navigation */
.boncuk-account-nav {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .boncuk-account-nav {
        width: 280px;
        position: sticky;
        top: 100px;
    }
}

.boncuk-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.boncuk-account-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.boncuk-account-nav li.is-active a,
.boncuk-account-nav li a:hover {
    background-color: rgba(212, 163, 115, 0.1);
    color: var(--primary);
}

.boncuk-account-nav li.is-active a {
    background-color: var(--primary);
    color: #ffffff;
}

/* Main Content Area */
.boncuk-account-content {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.boncuk-account-content h2,
.boncuk-account-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

/* Welcome Dashboard */
.boncuk-welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, #b88a5e 100%);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.boncuk-welcome-card h2 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.boncuk-welcome-card p {
    opacity: 0.9;
    font-size: 1.125rem;
}

/* Stats Grid */
.boncuk-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.boncuk-stat-item {
    background: #fdfaf7;
    border: 1px solid rgba(212, 163, 115, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.boncuk-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

.boncuk-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333333;
}

/* WooCommerce Overrides */
.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background-color: rgba(212, 163, 115, 0.1);
    color: var(--primary);
}

.woocommerce-MyAccount-navigation li.is-active a {
    background-color: var(--primary);
    color: #ffffff;
}

@media (max-width: 768px) {
    .woocommerce-account .site-main {
        padding-bottom: 5rem;
    }

    .boncuk-account-container {
        padding-bottom: 0;
    }

    .boncuk-account-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        border-radius: 1.25rem 1.25rem 0 0;
        border-top: 1px solid rgba(17, 24, 39, 0.06);
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 0.5rem 0.75rem;
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.2);
        z-index: 50;
        background: #ffffff;
        margin: 0;
    }

    .boncuk-account-nav ul,
    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.25rem;
    }

    .boncuk-account-nav li a,
    .woocommerce-MyAccount-navigation li a {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }

    .woocommerce-MyAccount-navigation li a span.material-symbols-outlined {
        font-size: 1.4rem;
    }

    .boncuk-account-content {
        padding-bottom: 5.5rem;
    }
}

/* Forms Styling */
.boncuk-account-content input[type="text"],
.boncuk-account-content input[type="email"],
.boncuk-account-content input[type="password"],
.boncuk-account-content textarea,
.boncuk-account-content select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    outline: none;
    transition: all 0.3s ease;
}

.boncuk-account-content input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

.boncuk-account-content button.button {
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.boncuk-account-content button.button:hover {
    background-color: #333333;
}

/* Addresses Section */
.u-columns.addresses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .u-columns.addresses {
        grid-template-columns: 1fr 1fr;
    }
}

.woocommerce-Address {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-size: 1.125rem;
}

.edit {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Orders Table */
.shop_table_responsive {
    width: 100%;
    border-collapse: collapse;
}

.shop_table_responsive thead {
    background: #f9fafb;
}

.shop_table_responsive th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop_table_responsive td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}

.woocommerce-button.view {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #333333;
    font-weight: 600;
    text-decoration: none;
}

/* Login & Register Wrapper */
.boncuk-login-register-wrapper {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .boncuk-login-register-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.boncuk-login-card,
.boncuk-register-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.05);
}

.boncuk-login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.boncuk-login-header .login-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.boncuk-login-header h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.5rem;
}

.boncuk-login-header p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.boncuk-login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.boncuk-login-actions .lost-password {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-form-row label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.woocommerce-form-row input[type="text"],
.woocommerce-form-row input[type="email"],
.woocommerce-form-row input[type="password"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 1rem;
    background: #f9fafb;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.woocommerce-form-row input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.1);
}

.woocommerce-form-row.form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-button.button {
    width: 100%;
    padding: 1rem !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 1rem !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.woocommerce-button.button:hover {
    background: #333333 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
}
