/* ==================== DATASET DETAIL PAGE ==================== */

.dataset-detail {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
}

.dataset-detail-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 24px 20px;
}

.dataset-detail-type {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dataset-detail-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.dataset-detail-source {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dataset-detail-body {
    padding: 20px;
}

.detail-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-title i {
    color: var(--primary-blue);
}

.detail-description {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 16px;
}

.detail-info-grid {
    display: grid;
    gap: 12px;
}

.detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--light-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.detail-info-content {
    flex: 1;
}

.detail-info-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.detail-info-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ==================== SPECIFICATIONS TABLE ==================== */

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 0;
    font-size: 14px;
}

.specs-table td:first-child {
    color: var(--text-light);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* ==================== KEYWORDS/TAGS ==================== */

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

/* ==================== ACTION BUTTONS ==================== */

.dataset-actions-fixed {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 16px;
    right: 16px;
    background: var(--white);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 -2px 20px var(--shadow-dark);
    display: flex;
    gap: 12px;
    z-index: 90;
}

.btn-dataset-action {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: var(--font-primary);
}

.btn-dataset-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-dataset-primary:active {
    background: var(--dark-blue);
    transform: scale(0.98);
}

.btn-dataset-secondary {
    background: var(--background);
    color: var(--text-dark);
    border: 1px solid var(--border);
    flex: 0 0 auto;
    width: 52px;
}

.btn-dataset-secondary:active {
    background: var(--border);
    transform: scale(0.95);
}

.btn-dataset-secondary.favorited {
    background: #fff3e0;
    color: #ff9800;
    border-color: #ff9800;
}

/* ==================== INFO CARDS ==================== */

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.info-card {
    background: var(--background);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.info-card-icon {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.info-card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.info-card-label {
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== ALERT BOX ==================== */

.alert-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-box.info {
    background: var(--light-blue);
    border-left-color: var(--primary-blue);
}

.alert-box.success {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.alert-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-text {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ==================== EXTERNAL LINK BUTTON ==================== */

.external-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.external-link-btn:active {
    background: var(--light-blue);
    border-color: var(--primary-blue);
    transform: scale(0.98);
}

/* ==================== SHARE SHEET ==================== */

.share-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 24px 20px;
    box-shadow: 0 -4px 20px var(--shadow-dark);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
}

.share-sheet.active {
    transform: translateY(0);
}

.share-sheet-header {
    text-align: center;
    margin-bottom: 20px;
}

.share-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.share-sheet-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.3s;
}

.share-option:active {
    background: var(--background);
}

.share-option-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.share-option-label {
    font-size: 12px;
    color: var(--text-dark);
    text-align: center;
}

/* ==================== RESPONSIVE ==================== */

@media (min-width: 768px) {
    .dataset-detail {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .dataset-actions-fixed {
        max-width: 768px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .info-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .dataset-actions-fixed {
        bottom: 32px;
    }
}
