/**
 * Hesabım sayfası – Geniş layout, animasyonlar, zengin görünüm
 * Desktop: ekrana yayılmış, mobil: uyumlu
 *
 * @package KutayTheme
 */

/* ========== GENİŞ CONTAINER (DESKTOP) ========== */
.woocommerce-account .woocommerce-account-container.kutay-account-wide {
    max-width: 100%;
    width: 100%;
    padding: 0 32px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .woocommerce-account .woocommerce-account-container.kutay-account-wide {
        padding: 0 48px;
    }
}

@media (min-width: 1280px) {
    .woocommerce-account .woocommerce-account-container.kutay-account-wide {
        padding: 0 64px;
    }
}

/* ========== MAIN WRAPPER ========== */
.kutay-myaccount-main {
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    padding: 24px 0 48px !important;
    min-height: 60vh;
}

.kutay-account-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    animation: kutay-account-fadeIn 0.5s ease-out;
}

@keyframes kutay-account-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 769px) {
    .kutay-account-wrapper {
        flex-direction: row;
        gap: 32px;
        align-items: flex-start;
    }
}

/* ========== NAVİGASYON – SIDEBAR ========== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 auto;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    animation: kutay-account-slideRight 0.4s ease-out;
}

@keyframes kutay-account-slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 769px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 300px;
        min-width: 300px;
        position: sticky;
        top: 100px;
    }
}

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

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 4px;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    margin-bottom: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(245, 124, 0, 0.08);
    color: #f57c00;
    padding-left: 22px;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.35);
}

.woocommerce-MyAccount-navigation ul li.is-active a:hover {
    padding-left: 18px;
    background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
}

/* ========== İÇERİK ALANI ========== */
.kutay-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: kutay-account-slideLeft 0.4s ease-out 0.1s both;
}

@keyframes kutay-account-slideLeft {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 769px) {
    .kutay-MyAccount-content,
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 40px;
    }
}

/* Başlıklar */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.kutay-MyAccount-content h2,
.kutay-MyAccount-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.woocommerce-MyAccount-content p,
.kutay-MyAccount-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

/* Mesajlar */
.woocommerce-MyAccount-content .woocommerce-Message {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content .woocommerce-info {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    color: #084298;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content .woocommerce-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
}

/* Form alanları */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content form {
    max-width: 560px;
}

.woocommerce-MyAccount-content .form-row {
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content .form-row label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.woocommerce-MyAccount-content .form-row input[type="text"],
.woocommerce-MyAccount-content .form-row input[type="email"],
.woocommerce-MyAccount-content .form-row input[type="password"],
.woocommerce-MyAccount-content .form-row input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-MyAccount-content .form-row input:focus {
    outline: none;
    border-color: #f57c00;
    box-shadow: 0 0 0 4px rgba(245, 124, 0, 0.12);
}

.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content .button {
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35);
}

.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content .button:hover {
    background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.4);
}

/* Adres kutuları */
.woocommerce-Address {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.25s ease;
}

.woocommerce-Address:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.woocommerce-Address-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.woocommerce-Address address {
    font-style: normal;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

.woocommerce-Address .edit {
    display: inline-block;
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
}

.woocommerce-Address .edit:hover {
    background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
    transform: translateY(-2px);
    color: #fff;
}

/* Siparişler tablosu */
.woocommerce-orders-table {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.woocommerce-orders-table thead {
    background: #333;
    color: #fff;
}

.woocommerce-orders-table thead th {
    padding: 16px 14px;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
}

.woocommerce-orders-table tbody tr {
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: background 0.2s;
}

.woocommerce-orders-table tbody tr:hover {
    background: #fafafa;
}

.woocommerce-orders-table tbody td {
    padding: 16px 14px;
    color: #555;
}

.woocommerce-orders-table tbody td a {
    color: #f57c00;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-orders-table tbody td a:hover {
    text-decoration: underline;
}

/* Dashboard hızlı linkler (WooCommerce varsayılan dashboard metnini zenginleştirir) */
.woocommerce-MyAccount-content .woocommerce-info a,
.woocommerce-MyAccount-content p a {
    color: #f57c00;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-info a:hover,
.woocommerce-MyAccount-content p a:hover {
    text-decoration: underline;
}

/* ========== MOBİL ========== */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-account-container.kutay-account-wide {
        padding: 0 16px;
    }

    .kutay-myaccount-main {
        padding: 16px 0 32px !important;
    }

    .kutay-MyAccount-content,
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 24px 20px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        padding: 20px;
    }

    .woocommerce-orders-table {
        font-size: 13px;
    }

    .woocommerce-orders-table thead th,
    .woocommerce-orders-table tbody td {
        padding: 12px 8px;
    }
}
