/* ================================================
   Dahinet - Hosting Paket Detay Sayfası Stilleri
   product-details.css
   ================================================ */

.dn-product-detail-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Alerts ── */
.dn-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
}
.dn-alert-success  { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.dn-alert-danger   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.dn-alert-warning  { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.dn-alert-info     { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.dn-alert-btn {
    margin-left: auto;
    padding: 5px 14px;
    border-radius: 7px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #fff;
    border: 1.5px solid currentColor;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
}
.dn-alert-btn:hover { opacity: 0.8; text-decoration: none; }

/* ── Page subtitle link ── */
.dn-subtitle-link { color: #0066CC; text-decoration: none; font-weight: 500; }
.dn-subtitle-link:hover { text-decoration: underline; }

/* ── Top Info Grid (2 cards side by side) ── */
.dn-pd-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Card base ── */
.dn-pd-status-card,
.dn-pd-billing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.dn-pd-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}
.dn-pd-card-header i { color: #0066CC; font-size: 1rem; }
.dn-pd-card-body { padding: 4px 0; }
.dn-pd-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

/* ── Info rows ── */
.dn-pd-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.dn-pd-status-label { font-size: 0.8125rem; font-weight: 600; color: #6b7280; }
.dn-pd-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.dn-pd-info-row:last-child { border-bottom: none; }
.dn-pd-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}
.dn-pd-info-label i { color: #9ca3af; font-size: 0.875rem; width: 16px; }
.dn-pd-info-val {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}
.dn-pd-info-val a { color: #0066CC; text-decoration: none; }
.dn-pd-info-val a:hover { text-decoration: underline; }
.dn-pd-mono { font-family: 'Courier New', monospace; font-size: 0.8rem; }
.dn-pd-danger { color: #dc2626; font-weight: 600; }

/* ── Cancel button ── */
.dn-pd-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #fee2e2;
    border: 1.5px solid #fca5a5;
    color: #dc2626;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
}
.dn-pd-cancel-btn:hover:not(.disabled) { background: #dc2626; color: #fff; border-color: #dc2626; text-decoration: none; }
.dn-pd-cancel-btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Billing grid ── */
.dn-pd-billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.dn-pd-billing-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
}
.dn-pd-billing-item:nth-child(even) { border-right: none; }
.dn-pd-billing-label { font-size: 0.75rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }
.dn-pd-billing-val   { font-size: 0.9375rem; font-weight: 600; color: #111827; }
.dn-pd-billing-amount { font-size: 1.125rem; font-weight: 700; color: #0066CC; }

/* ── Section header ── */
.dn-pd-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.dn-pd-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}
.dn-pd-section-header i { color: #0066CC; }
.dn-pd-last-update { margin-left: auto; font-size: 0.75rem; color: #9ca3af; font-weight: 400; }

/* ── Resource usage bars ── */
.dn-pd-usage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.dn-pd-usage-card {
    padding: 20px 24px;
    border-right: 1px solid #f3f4f6;
}
.dn-pd-usage-card:last-child { border-right: none; }
.dn-pd-usage-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}
.dn-pd-usage-label i { color: #0066CC; }
.dn-pd-usage-bar-wrap {
    height: 8px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.dn-pd-usage-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.8s ease;
    min-width: 4px;
}
.dn-pd-usage-nums {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 4px;
}
.dn-pd-usage-used { font-weight: 600; color: #111827; }
.dn-pd-usage-pct  { font-size: 1.25rem; font-weight: 700; color: #111827; }

/* ── Tabs ── */
.dn-pd-tabs-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.dn-pd-tab-nav {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}
.dn-pd-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.dn-pd-tab-btn:hover { color: #0066CC; background: #f0f7ff; }
.dn-pd-tab-btn.active { color: #0066CC; border-bottom-color: #0066CC; font-weight: 600; background: #fff; }
.dn-pd-tab-content { padding: 20px; }
.dn-pd-tab-pane { display: none; }
.dn-pd-tab-pane.active { display: block; }

/* Info table inside tabs */
.dn-pd-info-table .dn-pd-info-row {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.dn-pd-info-table .dn-pd-info-row:last-child { border-bottom: none; }
.dn-pd-info-table .dn-pd-info-label { min-width: 160px; }

.dn-pd-visit-btn-wrap { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.dn-pd-module-area { padding: 16px 0; }

/* ── Downloads ── */
.dn-pd-downloads { padding: 4px 0; }
.dn-pd-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.dn-pd-download-item:last-child { border-bottom: none; }
.dn-pd-download-title { font-size: 0.9375rem; font-weight: 600; color: #111827; margin-bottom: 4px; }
.dn-pd-download-desc  { font-size: 0.8125rem; color: #6b7280; }

/* ── Addons ── */
.dn-pd-addons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 16px 20px; }
.dn-pd-addon-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.dn-pd-addon-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.dn-pd-addon-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid #f3f4f6;
}
.dn-pd-addon-name { font-size: 0.875rem; font-weight: 700; color: #111827; }
.dn-pd-addon-body { padding: 4px 0; }
.dn-pd-addon-body .dn-pd-info-row { padding: 8px 16px; }
.dn-pd-addon-footer { padding: 10px 16px; border-top: 1px solid #f3f4f6; background: #fafafa; font-size: 0.8125rem; }

/* ── Change Password Form ── */
.dn-pd-changepw-form { padding: 20px; }
.dn-pd-form-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.dn-pd-form-label { min-width: 160px; font-size: 0.875rem; font-weight: 600; color: #374151; padding-top: 8px; }
.dn-pd-form-field { flex: 1; min-width: 200px; }
.dn-pd-input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dn-pd-input:focus { border-color: #0066CC; box-shadow: 0 0 0 3px rgba(0,102,204,0.12); }
.dn-pd-form-actions { display: flex; gap: 10px; margin-top: 8px; padding-left: 172px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .dn-pd-top-grid   { grid-template-columns: 1fr; }
    .dn-pd-billing-grid { grid-template-columns: 1fr; }
    .dn-pd-billing-item { border-right: none; }
    .dn-pd-usage-grid { grid-template-columns: 1fr; }
    .dn-pd-usage-card { border-right: none; border-bottom: 1px solid #f3f4f6; }
    .dn-pd-form-row   { flex-direction: column; }
    .dn-pd-form-label { min-width: unset; padding-top: 0; }
    .dn-pd-form-actions { padding-left: 0; }
    .dn-pd-info-table .dn-pd-info-label { min-width: 100px; }
}
@media (max-width: 576px) {
    .dn-pd-tab-btn { padding: 10px 14px; font-size: 0.8rem; }
    .dn-pd-addons-grid { grid-template-columns: 1fr; }
}
